hanni76 Posted October 9, 2017 Posted October 9, 2017 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.
zador.blood.stained Posted October 9, 2017 Posted October 9, 2017 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
hanni76 Posted October 9, 2017 Author Posted October 9, 2017 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.
Recommended Posts