diff options
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 + |