diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-04 09:54:47 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-04 09:54:47 +0100 |
commit | 68d85131156484d88c9a9fb07aeb4d56043692c3 (patch) | |
tree | 3206f83962a5c92841b6d5ac70fd7d671ea281de /makefile | |
parent | 0813b957b906edda15d6582cb31c4a3d6243db51 (diff) |
linux kernel compiling successfully
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' |