0
hanni76

Select a custom board-specific config during kernel build

Recommended Posts

Hello, guys,

 

is this possible to choose a custom board-specific kernel config located in "userpatches" based on $BOARD variable? I am trying to customize different boards and I have no idea how to provide a specific config for, let's say, sun6i bananapi  and sun8i orangepipc when I build "next" kernel, because all of them are covered by linux-sunxi-next.config. It seems like I need to change your scripts but I wouldn't like to..

Thanks.

 

 

Share this post


Link to post
Share on other sites
5 minutes ago, ssuloev said:

is this possible to choose a custom board-specific kernel config located in "userpatches" based on $BOARD variable?

Yes, by adding something like this to userpatches/lib.config

if [[ -f $SRC/userpatches/linux-${LINUXFAMILY}-${BRANCH}-${BOARD}.config ]]; then
	display_alert "Using board specific kernel config" "linux-${LINUXFAMILY}-${BRANCH}-${BOARD}" "info"
	LINUXCONFIG="linux-${LINUXFAMILY}-${BRANCH}-${BOARD}"
fi

 

Share this post


Link to post
Share on other sites
Just now, zador.blood.stained said:

Yes, by adding something like this to userpatches/lib.config


if [[ -f $SRC/userpatches/linux-${LINUXFAMILY}-${BRANCH}-${BOARD}.config ]]; then
	display_alert "Using board specific kernel config" "linux-${LINUXFAMILY}-${BRANCH}-${BOARD}" "info"
	LINUXCONFIG="linux-${LINUXFAMILY}-${BRANCH}-${BOARD}"
fi

 

Thank you, that's what I need.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0