aboutsummaryrefslogtreecommitdiff
path: root/grub
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-02-14 22:56:57 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-02-14 22:56:57 +0200
commit6e4a1411112a0de85f07ce8606cf44b0e082b19f (patch)
tree4f7c9c7c4aad2471bf57a35c2bdf307f26bdf64d /grub
parentFix makefile not rebuilding on changes in header files (diff)
downloadkernel.cpp-6e4a1411112a0de85f07ce8606cf44b0e082b19f.tar.xz
Add grub build instructions
Diffstat (limited to 'grub')
-rw-r--r--grub/makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/grub/makefile b/grub/makefile
new file mode 100644
index 0000000..014b061
--- /dev/null
+++ b/grub/makefile
@@ -0,0 +1,26 @@
+CURL := curl -OL
+GPG := gpg
+
+F := grub-2.04.tar.xz
+srcdir := $(F:%.tar.xz=%)
+dstdir := $(F:%.tar.xz=%-tools)
+
+default:
+ @echo $(SRCDIR)
+
+$(F):
+ $(CURL) https://ftp.gnu.org/gnu/grub/$(F)
+
+$(F).sig:
+ $(CURL) https://ftp.gnu.org/gnu/grub/$(F).sig
+
+verify: $(F) $(F).sig
+ $(GPG) --verify $(F).sig
+
+build: $(F)
+ tar -xf $(F)
+ cd $(srcdir) && CC=clang BUILD_CC=clang TARGET_CC=clang ./configure --disable-werror --prefix=/
+ make -C $(srcdir) -j6 DESTDIR=$(CURDIR)/$(dstdir) install
+
+clean:
+ rm $(F) $(F).sig