diff --git a/configuration.sh b/configuration.sh index c971169916..6de849c9a3 100644 --- a/configuration.sh +++ b/configuration.sh @@ -398,6 +398,12 @@ [[ -z $CPUMIN && ($LINUXFAMILY == udoo || $LINUXFAMILY == neo ) ]] && CPUMIN="392000" && CPUMAX="996000" && GOVERNOR="interactive" [[ -z $GOVERNOR ]] && GOVERNOR="ondemand" + # For user override + if [[ -f "$SRC/userpatches/lib.config" ]]; then + display_alert "Using user configuration override" "$SRC/userpatches/lib.config" "info" + source $SRC/userpatches/lib.config + fi + # debug echo -e "Config: $LINUXCONFIG\nKernel source: $LINUXKERNEL\nBranch: $KERNELBRANCH" >> $DEST/debug/install.log echo -e "linuxsource: $LINUXSOURCE\nOffset: $OFFSET\nbootsize: $BOOTSIZE" >> $DEST/debug/install.log diff --git a/general.sh b/general.sh index e477d71d1b..8cb2278cae 100644 --- a/general.sh +++ b/general.sh @@ -372,7 +372,7 @@ prepare_host() { find $SRC/lib/patch -type d ! -name . | sed "s%lib/patch%userpatches%" | xargs mkdir -p # TODO: needs better documentation - echo 'Place your patches and kernel.config / u-boot.config here.' > $SRC/userpatches/readme.txt + echo 'Place your patches and kernel.config / u-boot.config / lib.config here.' > $SRC/userpatches/readme.txt echo 'They will be automatically included if placed here!' >> $SRC/userpatches/readme.txt # legacy kernel compilation needs cross-gcc version 4.9 or lower