From a9ef380662da3efa382017ff8423f1a894b31bfd Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 6 Feb 2024 13:22:04 +0100 Subject: dynamic linking application starts --- base.mk | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 base.mk (limited to 'base.mk') diff --git a/base.mk b/base.mk new file mode 100644 index 0000000..b3c8f4e --- /dev/null +++ b/base.mk @@ -0,0 +1,34 @@ +# NOTE: MLO MUST be copied first +BOOTLOADER_FILES += bootloader/MLO +BOOTLOADER_FILES += bootloader/u-boot.img +BOOTLOADER_FILES += bootloader/u-boot.dtb +bootloader/.config: state/submodules state/container_img + $(CTRIZE) $(MAKE) -C bootloader am335x_evm_config +$(BOOTLOADER_FILES)&: bootloader/.config state/container_img + $(CTRIZE) $(MAKE) -C bootloader + +BOOTLOADER_FILES += uboot.env +uboot.env: uboot.txt + $(CTRIZE) bootloader/tools/mkenvimage -p 0x00 -s 0x20000 -o $@ $< + +KERNEL_FILES += kernel/arch/$(ARCH)/boot/dts/am335x-boneblack.dtb +KERNEL_FILES += kernel/arch/$(ARCH)/boot/zImage +kernel/.config: state/submodules state/container_img + $(CTRIZE) $(MAKE) -C kernel bb.org_defconfig +$(KERNEL_FILES)&: kernel/.config state/container_img + $(CTRIZE) $(MAKE) -C kernel zImage am335x-boneblack.dtb + +busybox/.config: state/submodules state/container_img + $(CTRIZE) $(MAKE) -C busybox defconfig + sed -i 's/^[# ]*CONFIG_STATIC\>.*$$/CONFIG_STATIC=y/' $@ + sed -i 's/^[# ]*CONFIG_PREFIX\>.*$$/CONFIG_PREFIX=".\/rootfs"/' $@ +busybox/busybox: busybox/.config state/container_img + $(CTRIZE) $(MAKE) -C busybox +busybox/rootfs: busybox/busybox state/container_img + $(CTRIZE) $(MAKE) -C busybox install + +FILES_PART_BOOT += $(BOOTLOADER_FILES) +FILES_PART_BOOT += $(KERNEL_FILES) +FILES_PART_ROOTFS += $(shell find rootfs) +FILES_PART_ROOTFS += busybox/rootfs + -- cgit v1.2.3