From 134059f0eae51b51ee9fb3a7f426c04da9cfc973 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Fri, 9 Aug 2019 04:34:26 +0000 Subject: [PATCH] Forgot the makefile Signed-off-by: Ronald G. Minnich --- mainboards/slimboot/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 mainboards/slimboot/Makefile diff --git a/mainboards/slimboot/Makefile b/mainboards/slimboot/Makefile new file mode 100644 index 0000000..52f8fca --- /dev/null +++ b/mainboards/slimboot/Makefile @@ -0,0 +1,28 @@ +default: build + +build: + echo getstuff or kernel + +kernel: uroot bzImage + cp linux/arch/x86/boot/bzImage kernel + +uroot: + go run github.com/u-root/u-root -build=bb all + cp /tmp/initramfs.linux_amd64.cpio . + lzma -k -f initramfs.linux_amd64.cpio + ls -l initramfs* + cp *lzma linux + +bzImage: + cp config-4.14.111 linux/.config + (cd linux && make oldconfig && make -j32) + +getstuff: getkernel geturoot +getkernel: + rm -rf linux + wget -O kernel.xz https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.111.tar.xz + xzcat kernel.xz | tar x + mv linux-4.14.111 linux +geturoot: + go get github.com/u-root/u-root +