aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-04 09:54:47 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-04 09:54:47 +0100
commit68d85131156484d88c9a9fb07aeb4d56043692c3 (patch)
tree3206f83962a5c92841b6d5ac70fd7d671ea281de /makefile
parent0813b957b906edda15d6582cb31c4a3d6243db51 (diff)
linux kernel compiling successfully
Diffstat (limited to 'makefile')
-rw-r--r--makefile25
1 files changed, 16 insertions, 9 deletions
diff --git a/makefile b/makefile
index ed5359e..102536b 100644
--- a/makefile
+++ b/makefile
@@ -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'