update to current kernel to build with current gcc

This commit is contained in:
Izaya 2021-05-23 12:10:21 +10:00
parent 3619b03290
commit 7544fdc578

View File

@ -1,7 +1,7 @@
# LuPI2 Makefile
# Default compiler settings.
PREFIX?=x86_64-linux-musl
PREFIX?=powerpc-linux-musl
CC = $(PREFIX)-gcc
CFLAGS?=-O2 -std=c99 -fdata-sections -ffunction-sections -pthread
@ -67,10 +67,10 @@ web: iso bin/web
####
ISOKERNEL=linux-4.5.2
ISOKERNEL=linux-5.12.1
dependencies/$(ISOKERNEL).tar.xz:
cd dependencies && wget https://cdn.kernel.org/pub/linux/kernel/v4.x/$(ISOKERNEL).tar.xz
cd dependencies && wget https://cdn.kernel.org/pub/linux/kernel/v5.x/$(ISOKERNEL).tar.xz
dependencies/$(ISOKERNEL)/arch/x86/boot/bzImage: $(BUILD)lupi.cpio dependencies/$(ISOKERNEL).tar.xz
rm -rf dependencies/$(ISOKERNEL)/