DoorPi/Makefile
2021-03-08 21:54:21 +01:00

24 lines
592 B
Makefile

all: sdcard.img
sdcard.img: buildroot/.config root_overlay/root/.ssh/authorized_keys
make -C buildroot all
cp buildroot/output/images/sdcard.img sdcard.img
root_overlay/root/.ssh/authorized_keys: ~/.ssh/id_rsa.pub
cp ~/.ssh/id_rsa.pub root_overlay/root/.ssh/authorized_keys
buildroot/.config: config
ln -sf ../config buildroot/.config
clean:
make -C buildroot clean
rm -f sdcard.img
rm -f root_overlay/root/.ssh/authorized_keys
rm -f root_overlay/bin/poll_desfire
rm -f root_overlay/bin/test.py
menuconfig:
make -C buildroot menuconfig
.PHONY: all clean sdcard.img menuconfig