Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: disable patching if custom kernel repo is used? #1079

Closed
g40 opened this issue Aug 11, 2018 · 1 comment
Closed

suggestion: disable patching if custom kernel repo is used? #1079

g40 opened this issue Aug 11, 2018 · 1 comment

Comments

@g40
Copy link
Contributor

g40 commented Aug 11, 2018

My lib.config specifies a custom kernel repository. It would be nice if applying this override also disabled kernel patching, rather than having to manually create empty patch files in `userpatches/kernel/sunxi64-dev' ?

I can work up a PR if this sounds like a desirable feature? Thanks.

if [[ $BRANCH == "dev" ]]; then
	# kernel
	KERNELSOURCE='https://git.novadsp.com/g40/nanopi-linux'
	KERNELBRANCH='branch:sunxi-4.14.y'
	# specify where our sources are found
	KERNELDIR='nanopi-linux'
	# we want utils and need the dev package
	PACKAGE_LIST="$PACKAGE_LIST v4l-utils libv4l-dev gdb"
	# prune package list!
	echo "Pruning $PACKAGE_LIST_DESKTOP armbian-firmware"
	display_alert "Pruning $PACKAGE_LIST_DESKTOP" "" "info"
	PACKAGE_LIST_RM=$PACKAGE_LIST_DESKTOP
fi
@igorpecovnik
Copy link
Member

You only need to add a variable where are your patches. Example:
KERNELBRANCH="tag:v4.12.6"
KERNELPATCHDIR="lol"

[ o.k. ] Cleaning [ linux-mainline/v4.12.6 ]
[ .... ] Patching kernel for compiler support
[ o.k. ] Started patching process for [ kernel sunxi-next ]
[ o.k. ] Looking for user patches in [ userpatches/kernel/lol ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants