diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-06 13:22:04 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-06 13:22:04 +0100 |
commit | a9ef380662da3efa382017ff8423f1a894b31bfd (patch) | |
tree | 26c160523c050945502408148faae6508712033b /base.mk | |
parent | ae327cc50fd9d3e59e9f60088243adfc69cb312e (diff) |
dynamic linking application starts
Diffstat (limited to 'base.mk')
-rw-r--r-- | base.mk | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -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 + |