-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
10,443 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.