aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--Containerfile5
-rw-r--r--makefile25
3 files changed, 23 insertions, 10 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4f52db2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+state/*
+!state/gen
+mnt
diff --git a/Containerfile b/Containerfile
index 000e1a2..0fbe251 100644
--- a/Containerfile
+++ b/Containerfile
@@ -7,12 +7,15 @@ run xbps-install -Syu
# packages (in separate steps to optimize caching)
run xbps-install -Sy cross-arm-linux-gnueabihf
+run xbps-install -Sy gcc
run xbps-install -Sy make
run xbps-install -Sy git
-run xbps-install -Sy gcc
run xbps-install -Sy flex
run xbps-install -Sy openssl-devel
run xbps-install -Sy bc
+run xbps-install -Sy cpio
+run xbps-install -Sy xz
+run xbps-install -Sy lz4
# container directory on which the working directory on host is mounted
workdir /workdir
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'