diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-04 12:11:26 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-04 12:11:26 +0100 |
commit | 8742d700e6dd3efd7063c0aa31117bc4bbf7d868 (patch) | |
tree | 8e831586483730e12979036410508b57fbb6d3bc /makefile | |
parent | 8b13b14dfcd668c13df68d69c4d3b28027cd022e (diff) |
fix dependencies
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -55,37 +55,42 @@ state/sdcard_fmt: state/sdcard_part $(AS_ROOT) mkfs.ext4 -L ROOTFS -F $(SDCARD_PART_ROOTFS) touch $@ -bootloader/.config: state/submodules +bootloader/.config: state/submodules state/container_img $(CTRIZE) $(MAKE) -C bootloader am335x_evm_config .PHONY: build_bootloader -build_bootloader: bootloader/.config +build_bootloader: bootloader/.config state/container_img $(CTRIZE) $(MAKE) -C bootloader BOOTLOADER_FILES += bootloader/u-boot.img BOOTLOADER_FILES += bootloader/u-boot.dtb BOOTLOADER_FILES += bootloader/MLO $(BOOTLOADER_FILES): build_bootloader -kernel/.config: state/submodules +kernel/.config: state/submodules state/container_img $(CTRIZE) $(MAKE) -C kernel bb.org_defconfig .PHONY: build_kernel -build_kernel: kernel/.config +build_kernel: kernel/.config state/container_img $(CTRIZE) $(MAKE) -C kernel zImage KERNEL_FILES += kernel/arch/$(ARCH)/boot/dts/am335x-boneblack.dtb KERNEL_FILES += kernel/arch/$(ARCH)/boot/zImage $(KERNEL_FILES): build_kernel +FILES_PART_BOOT += $(BOOTLOADER_FILES) +FILES_PART_BOOT += $(KERNEL_FILES) .PHONY: load_boot load_rootfs -load_boot: $(BOOTLOADER_FILES)# $(KERNEL_FILES) +load_boot: $(FILES_PART_BOOT) state/sdcard_fmt mkdir -p mnt/boot $(MOUNT) $(SDCARD_PART_BOOT) mnt/boot - $(AS_ROOT) $(CP) $^ mnt/boot + $(AS_ROOT) $(CP) $(FILES_PART_BOOT) mnt/boot $(AS_ROOT) sync $(UMOUNT) mnt/boot -load_rootfs: +# TODO +# FILES_PART_ROOTFS += .... +load_rootfs: state/sdcard_fmt mkdir -p mnt/rootfs $(MOUNT) $(SDCARD_PART_ROOTFS) mnt/rootfs - # TODO + $(AS_ROOT) $(CP) $(FILES_PART_ROOTFS) mnt/boot + $(AS_ROOT) sync $(UMOUNT) mnt/rootfs .PHONY: status |