mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-22 08:09:41 +00:00
Forgot the makefile
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
3e444977f6
commit
134059f0ea
28
mainboards/slimboot/Makefile
Normal file
28
mainboards/slimboot/Makefile
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user