File tree Expand file tree Collapse file tree 7 files changed +6942
-0
lines changed Expand file tree Collapse file tree 7 files changed +6942
-0
lines changed Original file line number Diff line number Diff line change 1+ output /
2+ buildroot /
Original file line number Diff line number Diff line change 1+ output /
Original file line number Diff line number Diff line change 1+ [submodule "buildroot "]
2+ path = buildroot
3+ url = https://github.com/buildroot/buildroot.git
Original file line number Diff line number Diff line change 1+ .DEFAULT_GOAL := test-images
2+
3+ OUTPUT_ROOT =output/
4+ TEST_GUEST_KERNEL_TARGET =$(OUTPUT_ROOT ) /test-bzImage
5+ TEST_GUEST_KERNEL_INITRAMFS =$(OUTPUT_ROOT ) /test-initramfs.img
6+
7+ .PHONY : test-images
8+ test-images : $(TEST_GUEST_KERNEL_TARGET ) $(TEST_GUEST_KERNEL_INITRAMFS )
9+
10+ $(OUTPUT_ROOT ) :
11+ mkdir -p $(OUTPUT_ROOT )
12+
13+ $(TEST_GUEST_KERNEL_TARGET ) : buildroot.config kernel.config $(OUTPUT_ROOT )
14+ cp buildroot.config buildroot/.config
15+ make -C buildroot linux
16+ cp buildroot/output/images/bzImage $(TEST_GUEST_KERNEL_TARGET )
17+
18+ $(TEST_GUEST_KERNEL_INITRAMFS ) : $(TEST_GUEST_KERNEL_TARGET )
19+ cp buildroot.config buildroot/.config
20+ make -C buildroot
21+ cp buildroot/output/images/rootfs.cpio.gz $(TEST_GUEST_KERNEL_INITRAMFS )
22+
23+ .PHONY : docker
24+ docker :
25+ docker build .
26+
27+ .PHONY : clean
28+ clean :
29+ rm -rf $(OUTPUT_ROOT )
30+ make -C buildroot clean
You can’t perform that action at this time.
0 commit comments