Skip to content

Commit

Permalink
add: prelimary stoneyridge kernel for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
june-fish committed Mar 28, 2024
1 parent 659fabc commit 31df917
Show file tree
Hide file tree
Showing 8 changed files with 11,666 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "linux"]
path = linux
url = https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
[submodule "stoneyridge/linux-firmware"]
path = stoneyridge/linux-firmware
url = https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project_name = kaibutsu

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

usage:
@echo "usage: make [kernel_variant|all]"
Expand All @@ -15,3 +15,6 @@ mt8192:

sc7180:
make -C sc7180 build

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

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

setup:
rm -rf ../linux/*.patch
cp *.patch ../linux
cp config ../linux/.config
cd ../linux; \
git reset --hard; \
git clean -df; \
git fetch origin refs/tags/$(REF):refs/tags/$(REF); \
git checkout $(REF); \
for patch in $$(ls *.patch); do patch -p1 < "$$patch"; done;

compile:
ARCH=x86_64 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 31df917

Please sign in to comment.