Jump to content

Select a custom board-specific config during kernel build


hanni76

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.

 

 

Link to comment
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

 

Link to comment
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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines