Skip to content

Commit

Permalink
add rpi kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
june-fish committed Oct 26, 2024
1 parent 7c1294e commit fc6a7f8
Show file tree
Hide file tree
Showing 6 changed files with 10,443 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
project_name = kaibutsu

.PHONY: usage mt8183 mt8192 sc7180 stoneyridge chromebook
.PHONY: usage mt8183 mt8192 sc7180 stoneyridge chromebook rpi

usage:
@echo "usage: make [kernel_variant|all]"

all: mt8183 mt8192 sc7180
all: mt8183 mt8192 sc7180 stoneyridge chromebook rpi

mt8183:
make -C mt8183 build
Expand All @@ -21,3 +21,6 @@ stoneyridge:

chromebook:
make -C chromebook build

rpi:
make -C rpi build
26 changes: 26 additions & 0 deletions rpi/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
REF=$(shell cat ref)

ifeq ($(shell uname -m), x86_64)
CROSS=aarch64-linux-gnu-
endif

setup:
rm -rf ../linux/*.patch
cp *.patch ../linux
cp config ../linux/.config
cd ../linux; \
git reset --hard; \
git clean -df; \
git remote remove rpi; \
git remote add rpi https://github.com/raspberrypi/linux.git; \
git fetch rpi refs/heads/$(REF):refs/heads/$(REF); \
git checkout $(REF); \
for patch in $$(ls *.patch); do patch -p1 < "$$patch"; done; \
git -c commit.gpgsign=false commit -a -m 'removing -dirty suffix after patches'

compile:
ARCH=arm64 CROSS_COMPILE=$(CROSS) make -C ../linux olddefconfig rpm-pkg -j$(shell nproc)
cp -r ../linux/rpmbuild .
rm -rf ../linux/rpmbuild

build: setup compile
Loading

0 comments on commit fc6a7f8

Please sign in to comment.