1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-07-15 22:08:39 +00:00

linux-ti-staging: update to 4.4.13, use new defconfig builder

Convert to using tisdk configs from defconfig_map processed by defconfig_builder.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Denys Dmytriyenko
2016-06-21 02:05:09 +00:00
parent 57c2c15749
commit 09715125dd
21 changed files with 59 additions and 50 deletions
+38 -30
View File
@@ -24,39 +24,47 @@ do_configure() {
echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
# First, check if pointing to a combined config with config fragments
config=`cat ${B}/.config | grep use-combined-config | cut -d= -f2`
# Zero, when using "tisdk" configs, pass control to defconfig_builder
config=`cat ${B}/.config | grep use-tisdk-config | cut -d= -f2`
if [ -n "$config" ]
then
cp ${S}/$config ${B}/.config
fi
# Second, extract any config fragments listed in the defconfig
config=`cat ${B}/.config | grep config-fragment | cut -d= -f2`
if [ -n "$config" ]
then
configfrags=""
for f in $config
do
# Check if the config fragment is available
if [ ! -e "${S}/$f" ]
then
echo "Could not find kernel config fragment $f"
exit 1
else
# Sanitize config fragment files to be relative to sources
configfrags="$configfrags ${S}/$f"
fi
done
fi
# Third, check if pointing to a known in kernel defconfig
config=`cat ${B}/.config | grep use-kernel-config | cut -d= -f2`
if [ -n "$config" ]
then
oe_runmake -C ${S} O=${B} $config
${S}/ti_config_fragments/defconfig_builder.sh -w ${S} -t $config
oe_runmake -C ${S} O=${B} "$config"_defconfig
else
yes '' | oe_runmake -C ${S} O=${B} oldconfig
# First, check if pointing to a combined config with config fragments
config=`cat ${B}/.config | grep use-combined-config | cut -d= -f2`
if [ -n "$config" ]
then
cp ${S}/$config ${B}/.config
fi
# Second, extract any config fragments listed in the defconfig
config=`cat ${B}/.config | grep config-fragment | cut -d= -f2`
if [ -n "$config" ]
then
configfrags=""
for f in $config
do
# Check if the config fragment is available
if [ ! -e "${S}/$f" ]
then
echo "Could not find kernel config fragment $f"
exit 1
else
# Sanitize config fragment files to be relative to sources
configfrags="$configfrags ${S}/$f"
fi
done
fi
# Third, check if pointing to a known in kernel defconfig
config=`cat ${B}/.config | grep use-kernel-config | cut -d= -f2`
if [ -n "$config" ]
then
oe_runmake -C ${S} O=${B} $config
else
yes '' | oe_runmake -C ${S} O=${B} oldconfig
fi
fi
# Fourth, handle config fragments specified in the recipe