diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -57,23 +57,30 @@ BOOTLOADER_FILES += bootloader/MLO BOOTLOADER_FILES += bootloader/u-boot.img BOOTLOADER_FILES += bootloader/u-boot.dtb bootloader/.config: state/submodules - +$(CTRIZE) $(MAKE) -C bootloader am335x_evm_config + $(CTRIZE) $(MAKE) -C bootloader am335x_evm_config $(BOOTLOADER_FILES): bootloader/.config - +$(CTRIZE) $(MAKE) -C bootloader + $(CTRIZE) $(MAKE) -C bootloader -KERNEL_FILES += kernel/ +KERNEL_FILES += kernel/arch/arm/boot/dts/am335x-boneblack.dtb +KERNEL_FILES += kernel/arch/arm/boot/zImage kernel/.config: state/submodules - +$(CTRIZE) $(MAKE) -C kernel bb.org_defconfig + $(CTRIZE) $(MAKE) -C kernel bb.org_defconfig $(KERNEL_FILES): kernel/.config - +$(CTRIZE) $(MAKE) -C kernel + $(CTRIZE) $(MAKE) -C kernel zImage -.PHONY: load_bootloader -load_bootloader: $(BOOTLOADER_FILES) - mkdir -p mnt/boot mnt/rootfs +.PHONY: load_boot load_rootfs +load_boot: $(BOOTLOADER_FILES) $(KERNEL_FILES) + mkdir -p mnt/boot $(MOUNT) $(SDCARD_PART_BOOT) mnt/boot - $(AS_ROOT) $(CP) $(BOOTLOADER_FILES) mnt/boot + $(AS_ROOT) $(CP) $^ mnt/boot $(UMOUNT) mnt/boot +load_rootfs: + mkdir -p mnt/rootfs + $(MOUNT) $(SDCARD_PART_ROOTFS) mnt/rootfs + # TODO + $(UMOUNT) mnt/rootfs + .PHONY: status status: @echo '### STATUS REPORT' |