X-Git-Url: http://git.plutz.net/?p=rpi_small;a=blobdiff_plain;f=Makefile;h=5616e00e0a2ff824e3061e8586189d8e7d4f5ae9;hp=0de0de261ee75ef2733be48f9a204363a2773d4e;hb=e2bb749edf30ce93daf9961c83bf823c37b74950;hpb=666a971407dbc61083273bf5b4d4463b999e89e1 diff --git a/Makefile b/Makefile index 0de0de2..5616e00 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ deb http://raspbian.raspberrypi.org/raspbian stretch main non-free firmware rpi\ deb http://archive.raspberrypi.org/debian stretch main\n endef -PACKAGES := apt apt-transport-https bluez bluez-firmware bluez-tools bridge-utils btrfs-tools busybox-static bzip2 ca-certificates cron deborphan dnsmasq firmware-atheros firmware-brcm80211 firmware-libertas firmware-linux-free firmware-misc-nonfree firmware-realtek gzip htop ifupdown init iptables iputils-ping irqbalance isc-dhcp-client less libraspberrypi-bin libraspberrypi0 make net-tools nmap ntpdate openbsd-inetd openssh-client openssh-server p7zip-full pi-bluetooth rpi-update rsync ssh sshfs sudo systemd traceroute unace unrar-free unzip vim wget wireless-tools wpasupplicant xz-utils zip +PACKAGES := apt bluez bluez-firmware bluez-tools bridge-utils btrfs-tools busybox-static bzip2 ca-certificates cron deborphan dnsmasq firmware-brcm80211 firmware-linux-free firmware-misc-nonfree gzip htop ifupdown init iptables iputils-ping irqbalance isc-dhcp-client less libraspberrypi-bin libraspberrypi0 make net-tools nmap ntpdate openbsd-inetd openssh-client openssh-server pi-bluetooth rpi-update rsync ssh sshfs sudo systemd traceroute unzip vim wget wireless-tools wpasupplicant xz-utils zip # Do not change, only override in config.mk WIFI-SSID = @@ -55,6 +55,7 @@ raspi_root/: raspi_root .FORCE chroot "$@" apt-get --yes --auto-remove purge chroot "$@" apt-get --yes --auto-remove upgrade chroot "$@" rpi-update || [ -f "$@/boot/bootcode.bin" ] + -[ -d "$@/boot.bak/" ] && rm -r "$@/boot.bak/" sync chroot "$@" apt-get clean chroot "$@" rm /usr/local/sbin/invoke-rc.d @@ -74,11 +75,12 @@ files/root/.ssh/authorized_keys: id_rsa.pub chmod 600 '$@' include gummikraken.mk +include teesock.mk -raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi files/srv/gummikraken/ +raspi.img: raspi_root/ files/ partitions files/root/.ssh/authorized_keys files/etc/network/interfaces.d/wifi files/srv/gummikraken/ files/usr/local/bin/teesock -rmdir "$@.mnt" mkdir "$@.mnt" # fail receipe if dir is nonempty - dd bs=1M count=0 seek=1024 of="$@" # set up sparse file + dd bs=1M count=0 seek=1792 of="$@" # set up sparse file sfdisk "$@"