uwu

hardware bitcoin wallet software and build system
git clone https://git.parazyd.org/uwu
Log | Files | Refs | README | LICENSE

kernel.mk (880B)


      1 .POSIX:
      2 
      3 # Copyright (c) 2020-2021 Ivan J. <parazyd@dyne.org>
      4 # This file is part of uwu.
      5 # See LICENSE file for copyright and license details.
      6 
      7 $(KERNEL_SIG):
      8 	wget -c https://cdn.kernel.org/pub/linux/kernel/v5.x/$@
      9 
     10 $(KERNEL_TAR):
     11 	wget -c https://cdn.kernel.org/pub/linux/kernel/v5.x/$@.xz
     12 	xz -d $@.xz
     13 
     14 $(KERNEL_SRC): $(KERNEL_TAR) $(KERNEL_SIG)
     15 	gpg --no-default-keyring --keyring=./verification_keyring.gpg \
     16 		--verify $(KERNEL_SIG)
     17 	tar xf $(KERNEL_TAR)
     18 
     19 $(KERNEL_SRC)/arch/arm/boot/dts/bcm2835-rpi-zero.dtb: $(KERNEL_SRC)
     20 	cp uwu_pizero_defconfig $(KERNEL_SRC)/arch/arm/configs
     21 	$(MAKE) -C $(KERNEL_SRC) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) \
     22 		uwu_pizero_defconfig $(shell basename $@)
     23 
     24 $(KERNEL_SRC)/arch/arm/boot/zImage: $(KERNEL_SRC)/arch/arm/boot/dts/bcm2835-rpi-zero.dtb
     25 	$(MAKE) -C $(KERNEL_SRC) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) \
     26 		$(shell basename $@)