blob: b3c8f4ec5e164baa717f3d4e9bfe56fbcef64240 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# NOTE: MLO MUST be copied first
BOOTLOADER_FILES += bootloader/MLO
BOOTLOADER_FILES += bootloader/u-boot.img
BOOTLOADER_FILES += bootloader/u-boot.dtb
bootloader/.config: state/submodules state/container_img
$(CTRIZE) $(MAKE) -C bootloader am335x_evm_config
$(BOOTLOADER_FILES)&: bootloader/.config state/container_img
$(CTRIZE) $(MAKE) -C bootloader
BOOTLOADER_FILES += uboot.env
uboot.env: uboot.txt
$(CTRIZE) bootloader/tools/mkenvimage -p 0x00 -s 0x20000 -o $@ $<
KERNEL_FILES += kernel/arch/$(ARCH)/boot/dts/am335x-boneblack.dtb
KERNEL_FILES += kernel/arch/$(ARCH)/boot/zImage
kernel/.config: state/submodules state/container_img
$(CTRIZE) $(MAKE) -C kernel bb.org_defconfig
$(KERNEL_FILES)&: kernel/.config state/container_img
$(CTRIZE) $(MAKE) -C kernel zImage am335x-boneblack.dtb
busybox/.config: state/submodules state/container_img
$(CTRIZE) $(MAKE) -C busybox defconfig
sed -i 's/^[# ]*CONFIG_STATIC\>.*$$/CONFIG_STATIC=y/' $@
sed -i 's/^[# ]*CONFIG_PREFIX\>.*$$/CONFIG_PREFIX=".\/rootfs"/' $@
busybox/busybox: busybox/.config state/container_img
$(CTRIZE) $(MAKE) -C busybox
busybox/rootfs: busybox/busybox state/container_img
$(CTRIZE) $(MAKE) -C busybox install
FILES_PART_BOOT += $(BOOTLOADER_FILES)
FILES_PART_BOOT += $(KERNEL_FILES)
FILES_PART_ROOTFS += $(shell find rootfs)
FILES_PART_ROOTFS += busybox/rootfs
|