mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 15:06:58 +02:00
Revert "kernel: Use the debian infrastructure to construct kernel config files"
This is causing some kernel version package issues. Revert until I can figure out the right fix. This reverts commit 6eda4bc874427041c5a2eab794eb72284e9dcee7.
This commit is contained in:
parent
73de2358c0
commit
dd45d3272f
@ -19,12 +19,12 @@ SRC_ROOT=$(dirname $(readlink -f $(dirname "$0")))
|
|||||||
. "${SRC_ROOT}/third_party/shflags/files/src/shflags"
|
. "${SRC_ROOT}/third_party/shflags/files/src/shflags"
|
||||||
|
|
||||||
KERNEL_DIR="$SRC_ROOT/third_party/kernel"
|
KERNEL_DIR="$SRC_ROOT/third_party/kernel"
|
||||||
DEFAULT_KFLAVOUR="chromeos-intel-menlow"
|
DEFAULT_KCONFIG="${KERNEL_DIR}/files/chromeos/config/chromeos-intel-menlow"
|
||||||
|
|
||||||
# Flags
|
# Flags
|
||||||
DEFAULT_BUILD_ROOT=${BUILD_ROOT:-"${SRC_ROOT}/build"}
|
DEFAULT_BUILD_ROOT=${BUILD_ROOT:-"${SRC_ROOT}/build"}
|
||||||
DEFINE_string flavour "${DEFAULT_KFLAVOUR}" \
|
DEFINE_string config "${DEFAULT_KCONFIG}" \
|
||||||
"The kernel flavour to use."
|
"The kernel configuration file to use."
|
||||||
DEFINE_integer revision 002 \
|
DEFINE_integer revision 002 \
|
||||||
"The package revision to use"
|
"The package revision to use"
|
||||||
DEFINE_string output_root "${DEFAULT_BUILD_ROOT}/x86/local_packages" \
|
DEFINE_string output_root "${DEFAULT_BUILD_ROOT}/x86/local_packages" \
|
||||||
@ -49,19 +49,12 @@ mkdir -p "$FLAGS_output_root"
|
|||||||
# to /tmp/kernel-pkg.conf when setting up the chroot env?
|
# to /tmp/kernel-pkg.conf when setting up the chroot env?
|
||||||
sudo cp "$KERNEL_DIR"/package/kernel-pkg.conf /etc/kernel-pkg.conf
|
sudo cp "$KERNEL_DIR"/package/kernel-pkg.conf /etc/kernel-pkg.conf
|
||||||
|
|
||||||
#
|
|
||||||
# Generate the flavour config file.
|
|
||||||
#
|
|
||||||
flavour=$FLAGS_flavour
|
|
||||||
(cd ${KERNEL_DIR}/files; debian/rules prepare-${flavour})
|
|
||||||
|
|
||||||
# Parse kernel config file for target architecture information. This is needed
|
# Parse kernel config file for target architecture information. This is needed
|
||||||
# to determine the full package name and also to setup the environment for
|
# to determine the full package name and also to setup the environment for
|
||||||
# kernel build scripts which use "uname -m" to autodetect architecture.
|
# kernel build scripts which use "uname -m" to autodetect architecture.
|
||||||
KCONFIG="${KERNEL_DIR}/files/debian/build/build-${flavour}/.config"
|
KCONFIG="$FLAGS_config"
|
||||||
if [ ! -f "$KCONFIG" ]; then
|
if [ ! -f "$KCONFIG" ]; then
|
||||||
echo Major bummer. Could not find kernel config.
|
KCONFIG="$KERNEL_DIR"/files/chromeos/config/"$KCONFIG"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
if [ -n $(grep 'CONFIG_X86=y' "$KCONFIG") ]
|
if [ -n $(grep 'CONFIG_X86=y' "$KCONFIG") ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user