Browse Source

linux: introduced optional SDECFG_PKG_LINUX_EARLY_FILE to set CONFIG_INITRAMFS_SOURCE

user/amery/next/uclibc
Alejandro Mery 13 years ago
parent
commit
c0f355c23f
  1. 3
      base/linux/config-700.in
  2. 9
      base/linux/linux-conf.in

3
base/linux/config-700.in

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../linux/config-700.in # Filename: package/.../linux/config-700.in
# Copyright (C) 2006 - 2010 The OpenSDE Project # Copyright (C) 2006 - 2012 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf # Copyright (C) 1998 - 2003 Clifford Wolf
# #
@ -25,6 +25,7 @@ menu_begin MENU_PKG_LINUX 'Linux Kernel Options'
comment ' ' comment ' '
text 'Custom settings file' SDECFG_PKG_LINUX_CONFIG_FILE "config/$config/linux.cfg" text 'Custom settings file' SDECFG_PKG_LINUX_CONFIG_FILE "config/$config/linux.cfg"
text 'Embedded initramfs file' SDECFG_PKG_LINUX_EARLY_FILE ""
if pkgcheck uml_utilities X ; then if pkgcheck uml_utilities X ; then
comment ' ' comment ' '

9
base/linux/linux-conf.in

@ -106,6 +106,15 @@ auto_config() {
echo > .config.$arch echo > .config.$arch
fi fi
# inject CONFIG_INITRAMFS_SOURCE if set
if [ -n "$SDECFG_PKG_LINUX_EARLY_FILE" ]; then
x="$SDECFG_PKG_LINUX_EARLY_FILE"
expr "$x" : '/*' > /dev/null || x="$base/$x"
sed -i '/CONFIG_INITRAMFS_SOURCE/d;' .config.$arch
echo "CONFIG_INITRAMFS_SOURCE=\"$x\"" >> .config.$arch
fi
if [ -s .config.$arch ]; then if [ -s .config.$arch ]; then
# apply $arch specific rules # apply $arch specific rules
# #

Loading…
Cancel
Save