2019-08-31 16:59:21 +08:00
|
|
|
# Hi maintainers!
|
2019-08-31 05:53:13 +08:00
|
|
|
|
|
|
|
Here are some tips how to integrate this repo in some nice package for your distro.
|
|
|
|
Feel free to contact us via Github issues for any question, suggestion or if you want to share useful tricks in this file for other maintainers.
|
|
|
|
|
|
|
|
Makefile
|
|
|
|
========
|
|
|
|
|
|
|
|
`PREFIX` and `UDEV_PREFIX` can be provided by environment variable, else it defaults to `/usr/local/share` and `/etc/udev/rules.d`.
|
|
|
|
|
|
|
|
`DESTDIR` can be provided by environment variable, it can be a relative path and it will be prepended to `PREFIX`, so you can use e.g.:
|
|
|
|
|
2019-08-31 06:26:35 +08:00
|
|
|
`make -j install DESTDIR=build PREFIX=/usr UDEV_PREFIX=/lib/udev/rules.d`
|
2019-08-31 05:53:13 +08:00
|
|
|
|
|
|
|
and it will be deployed as
|
|
|
|
|
|
|
|
```
|
|
|
|
./build/lib/udev/rules.d/77-pm3-usb-device-blacklist.rules
|
|
|
|
./build/usr/bin/proxmark3 ...
|
|
|
|
./build/usr/share/doc/proxmark3/...
|
2019-08-31 06:26:35 +08:00
|
|
|
./build/usr/share/proxmark3/firmware/fullimage.elf
|
|
|
|
etc.
|
2019-08-31 05:53:13 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
That should be a good start for you to create your package :)
|
|
|
|
|
2019-08-31 06:26:35 +08:00
|
|
|
It's possible to add other firmwares as well with tagged names (`FWTAG=<mytag>`), e.g. here we're compiling another image for non-RDV4 devices:
|
|
|
|
|
|
|
|
`make -j fullimage/install DESTDIR=build PREFIX=/usr PLATFORM=PM3OTHER PLATFORM_EXTRAS= FWTAG=other`
|
|
|
|
|
|
|
|
and it will be added along the other firmware as:
|
|
|
|
|
|
|
|
```
|
|
|
|
./build/usr/share/proxmark3/firmware/fullimage-other.elf
|
|
|
|
```
|
|
|
|
|
2019-08-31 05:53:13 +08:00
|
|
|
For verbose usage and see the actual commands being executed, add `V=1`.
|
|
|
|
|
|
|
|
`CFLAGS` and `LDFLAGS` can be overriden by environment variables.
|
|
|
|
|
|
|
|
Default compiler is gcc but you can use clang for the non-ARM parts with e.g. `make client CC=clang CXX=clang++ LD=clang++`.
|
|
|
|
|