uwu

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

commit a2c1873fddfa74ac2e92c293f400482e0e955e99
parent cd0c04cfbcb7c16e082db131ec23cc8d02e0c266
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 21 Nov 2020 01:49:07 +0100

Add kernel makefile.

Diffstat:
Akernel.mk | 37+++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+), 0 deletions(-)

diff --git a/kernel.mk b/kernel.mk @@ -0,0 +1,37 @@ +# Copyright (c) 2020 Ivan J. <parazyd@dyne.org> +# This file is part of uwu. +# See LICENSE file for copyright and license details. + +KERNEL_TAR = $(KERNEL_SRC).tar +KERNEL_SIG = $(KERNEL_SRC).tar.sign + +KERNEL_BINS = \ + $(KERNEL_SRC) $(KERNEL_TAR) $(KERNEL_SIG) \ + $(KERNEL_SRC)/arch/arm/configs/uwu_pizero_defconfig \ + $(KERNEL_SRC)/.config \ + $(KERNEL_SRC)/arch/arm/boot/dts/bcm2835-rpi-zero.dtb \ + $(KERNEL_SRC)/arch/arm/boot/zImage + +$(KERNEL_TAR): + wget -c https://cdn.kernel.org/pub/linux/kernel/v5.x/$@.xz + xz -dv $@.xz + +$(KERNEL_SIG): + wget -c https://cdn.kernel.org/pub/linux/kernel/v5.x/$@ + +$(KERNEL_SRC): $(KERNEL_TAR) $(KERNEL_SIG) + gpg --no-default-keyring --keyring=./verification_keyring.gpg \ + --verify $(KERNEL_SIG) + tar xf $(KERNEL_SRC).tar + +$(KERNEL_SRC)/arch/arm/configs/uwu_pizero_defconfig: $(KERNEL_SRC) + cp -f uwu_pizero_defconfig $@ + +$(KERNEL_SRC)/.config: $(KERNEL_SRC)/arch/arm/configs/uwu_pizero_defconfig + $(MAKE) -C $(KERNEL_SRC) ARCH=arm uwu_pizero_defconfig + +$(KERNEL_SRC)/arch/arm/boot/dts/bcm2835-rpi-zero.dtb: $(KERNEL_SRC)/.config + $(MAKE) -C $(KERNEL_SRC) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) bcm2835-rpi-zero.dtb + +$(KERNEL_SRC)/arch/arm/boot/zImage: $(KERNEL_SRC)/arch/arm/boot/dts/bcm2835-rpi-zero.dtb + $(MAKE) -C $(KERNEL_SRC) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) zImage