meta-digi: remove Linux preferred versions
There is only one kernel supported for each platform, so there is no need to explicitly set the kernel preferred version. Also: * Remove IS_KERNEL_2X variable which is no longer needed. * Simplify jenkins build script, now that we do not need to build two kernel versions for ccardimx28. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
03ec36e4be
commit
51a3bdb25f
|
|
@ -7,7 +7,7 @@ include conf/machine/include/mxs-digi-base.inc
|
||||||
DIGI_FAMILY = "ccardimx28"
|
DIGI_FAMILY = "ccardimx28"
|
||||||
SOC_FAMILY = "mxs:mx28:${DIGI_FAMILY}"
|
SOC_FAMILY = "mxs:mx28:${DIGI_FAMILY}"
|
||||||
|
|
||||||
# Platform u-boot settings (IS_KERNEL_2X implies also u-boot v2009.08)
|
# Platform u-boot settings
|
||||||
UBOOT_ENTRYPOINT = "0x40008000"
|
UBOOT_ENTRYPOINT = "0x40008000"
|
||||||
UBOOT_SUFFIX = "sb"
|
UBOOT_SUFFIX = "sb"
|
||||||
UBOOT_SYMLINK = "u-boot-${MACHINE}.${UBOOT_SUFFIX}"
|
UBOOT_SYMLINK = "u-boot-${MACHINE}.${UBOOT_SUFFIX}"
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,6 @@ PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
|
||||||
# ccimx6 3.14 2015.04
|
# ccimx6 3.14 2015.04
|
||||||
#
|
#
|
||||||
# Digi BSP default versions
|
# Digi BSP default versions
|
||||||
PREFERRED_VERSION_linux-dey ?= "3.10"
|
|
||||||
PREFERRED_VERSION_linux-dey_ccimx5 ?= "2.6.35.14"
|
|
||||||
PREFERRED_VERSION_linux-dey_ccimx6 ?= "3.14"
|
|
||||||
PREFERRED_VERSION_u-boot-dey ?= "2013.01"
|
PREFERRED_VERSION_u-boot-dey ?= "2013.01"
|
||||||
PREFERRED_VERSION_u-boot-dey_ccimx5 ?= "2009.08"
|
PREFERRED_VERSION_u-boot-dey_ccimx5 ?= "2009.08"
|
||||||
|
|
||||||
|
|
@ -28,7 +25,6 @@ HAVE_BT = "${@base_contains('MACHINE_FEATURES', 'bluetooth', '1', '', d)}"
|
||||||
HAVE_1WIRE = "${@base_contains('MACHINE_FEATURES', '1-wire', '1', '', d)}"
|
HAVE_1WIRE = "${@base_contains('MACHINE_FEATURES', '1-wire', '1', '', d)}"
|
||||||
HAVE_GUI = "${@base_contains('DISTRO_FEATURES', 'x11', '1', '', d)}"
|
HAVE_GUI = "${@base_contains('DISTRO_FEATURES', 'x11', '1', '', d)}"
|
||||||
HAVE_EXAMPLE = "${@base_contains('IMAGE_FEATURES', 'dey-examples', '1', '', d)}"
|
HAVE_EXAMPLE = "${@base_contains('IMAGE_FEATURES', 'dey-examples', '1', '', d)}"
|
||||||
IS_KERNEL_2X = "${@base_version_less_or_equal('PREFERRED_VERSION_linux-dey', '2.6.35.14', '1', '', d)}"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Ethernet configuration used in recipes
|
# Ethernet configuration used in recipes
|
||||||
|
|
|
||||||
|
|
@ -24,4 +24,4 @@ do_install() {
|
||||||
|
|
||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
COMPATIBLE_MACHINE = "(${@base_conditional("IS_KERNEL_2X", "1", "(ccardimx28|ccimx5)", "(^$)", d)})"
|
COMPATIBLE_MACHINE = "(ccimx5)"
|
||||||
|
|
|
||||||
|
|
@ -22,4 +22,4 @@ do_install() {
|
||||||
|
|
||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
COMPATIBLE_MACHINE = "(${@base_conditional("IS_KERNEL_2X", "1", "(ccardimx28|ccimx5)", "(^$)", d)})"
|
COMPATIBLE_MACHINE = "(ccimx5)"
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ python do_warning_spidev() {
|
||||||
|
|
||||||
# Warn the user in case we cannot enable spidev in the device tree
|
# Warn the user in case we cannot enable spidev in the device tree
|
||||||
python do_warning_spidev_ccardimx28() {
|
python do_warning_spidev_ccardimx28() {
|
||||||
if d.getVar('HAVE_GUI', True) and not d.getVar('IS_KERNEL_2X', True):
|
if d.getVar('HAVE_GUI', True):
|
||||||
bb.warn("SPIDEV conflicts with touchscreen so it was not enabled in the device tree")
|
bb.warn("SPIDEV conflicts with touchscreen so it was not enabled in the device tree")
|
||||||
}
|
}
|
||||||
addtask warning_spidev before do_compile
|
addtask warning_spidev before do_compile
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,6 @@ RDEPENDS_${PN} = "\
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPENDS_${PN}_append_ccardimx28 = "\
|
RDEPENDS_${PN}_append_ccardimx28 = "\
|
||||||
${@base_conditional('IS_KERNEL_2X', '1' , 'dey-examples-adc', '', d)} \
|
|
||||||
${@base_conditional('IS_KERNEL_2X', '1' , 'dey-examples-gpio', '', d)} \
|
|
||||||
${@base_contains("MACHINE_FEATURES", "bluetooth", "dey-examples-bt", "", d)} \
|
${@base_contains("MACHINE_FEATURES", "bluetooth", "dey-examples-bt", "", d)} \
|
||||||
${@base_contains("MACHINE_FEATURES", "bluetooth", "dey-examples-btconfig", "", d)} \
|
${@base_contains("MACHINE_FEATURES", "bluetooth", "dey-examples-btconfig", "", d)} \
|
||||||
dey-examples-can \
|
dey-examples-can \
|
||||||
|
|
@ -29,8 +27,8 @@ RDEPENDS_${PN}_append_ccardimx28 = "\
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPENDS_${PN}_append_ccimx5 = "\
|
RDEPENDS_${PN}_append_ccimx5 = "\
|
||||||
${@base_conditional('IS_KERNEL_2X', '1' , 'dey-examples-adc', '', d)} \
|
dey-examples-adc \
|
||||||
${@base_conditional('IS_KERNEL_2X', '1' , 'dey-examples-gpio', '', d)} \
|
dey-examples-gpio \
|
||||||
${@base_contains("MACHINE_FEATURES", "accelerometer", "dey-examples-accelerometer", "", d)} \
|
${@base_contains("MACHINE_FEATURES", "accelerometer", "dey-examples-accelerometer", "", d)} \
|
||||||
${@base_contains("MACHINE_FEATURES", "accel-graphics", "dey-examples-opengles", "", d)} \
|
${@base_contains("MACHINE_FEATURES", "accel-graphics", "dey-examples-opengles", "", d)} \
|
||||||
dey-examples-sahara \
|
dey-examples-sahara \
|
||||||
|
|
|
||||||
121
sdk/build.sh
121
sdk/build.sh
|
|
@ -38,13 +38,6 @@ SOURCE_MIRROR_URL ?= \"http://build-linux.digi.com/yocto/downloads/\"
|
||||||
INHERIT += \"own-mirrors\"
|
INHERIT += \"own-mirrors\"
|
||||||
"
|
"
|
||||||
|
|
||||||
# Alternative config for ccardimx28js
|
|
||||||
KERNEL_2X_CFG="
|
|
||||||
# Build Linux 2.6.35.14 and U-Boot 2009.08
|
|
||||||
PREFERRED_VERSION_linux-dey = \"2.6.35.14\"
|
|
||||||
PREFERRED_VERSION_u-boot-dey = \"2009.08\"
|
|
||||||
"
|
|
||||||
|
|
||||||
RM_WORK_CFG="
|
RM_WORK_CFG="
|
||||||
INHERIT += \"rm_work\"
|
INHERIT += \"rm_work\"
|
||||||
# Exclude rm_work for some key packages (for debugging purposes)
|
# Exclude rm_work for some key packages (for debugging purposes)
|
||||||
|
|
@ -149,16 +142,6 @@ done<<-_EOF_
|
||||||
ccimx6sbc DONTBUILDVARIANTS
|
ccimx6sbc DONTBUILDVARIANTS
|
||||||
_EOF_
|
_EOF_
|
||||||
|
|
||||||
# Build alternative linux and u-boot
|
|
||||||
while read _pl _ker; do
|
|
||||||
eval "${_pl}_ker=\"${_ker}\""
|
|
||||||
done<<-_EOF_
|
|
||||||
ccardimx28js n
|
|
||||||
ccimx51js n
|
|
||||||
ccimx53js n
|
|
||||||
ccimx6sbc n
|
|
||||||
_EOF_
|
|
||||||
|
|
||||||
YOCTO_IMGS_DIR="${WORKSPACE}/images"
|
YOCTO_IMGS_DIR="${WORKSPACE}/images"
|
||||||
YOCTO_INST_DIR="${WORKSPACE}/digi-yocto-sdk.$(echo ${DY_REVISION} | tr '/' '_')"
|
YOCTO_INST_DIR="${WORKSPACE}/digi-yocto-sdk.$(echo ${DY_REVISION} | tr '/' '_')"
|
||||||
YOCTO_PROJ_DIR="${WORKSPACE}/projects"
|
YOCTO_PROJ_DIR="${WORKSPACE}/projects"
|
||||||
|
|
@ -192,61 +175,55 @@ fi
|
||||||
rm -rf ${YOCTO_IMGS_DIR} ${YOCTO_PROJ_DIR}
|
rm -rf ${YOCTO_IMGS_DIR} ${YOCTO_PROJ_DIR}
|
||||||
for platform in ${DY_PLATFORMS}; do
|
for platform in ${DY_PLATFORMS}; do
|
||||||
eval platform_variants="\${${platform}_var}"
|
eval platform_variants="\${${platform}_var}"
|
||||||
eval platform_kernel2x="\${${platform}_ker%n}"
|
for variant in ${platform_variants}; do
|
||||||
for kernel_ver in "" ${platform_kernel2x:+-2x}; do
|
_this_prj_dir="${YOCTO_PROJ_DIR}/${platform}"
|
||||||
for variant in ${platform_variants}; do
|
_this_img_dir="${YOCTO_IMGS_DIR}/${platform}"
|
||||||
_this_prj_dir="${YOCTO_PROJ_DIR}/${platform}${kernel_ver}"
|
if [ "${variant}" != "DONTBUILDVARIANTS" ]; then
|
||||||
_this_img_dir="${YOCTO_IMGS_DIR}/${platform}${kernel_ver}"
|
_this_prj_dir="${YOCTO_PROJ_DIR}/${platform}_${variant}"
|
||||||
if [ "${variant}" != "DONTBUILDVARIANTS" ]; then
|
_this_img_dir="${YOCTO_IMGS_DIR}/${platform}_${variant}"
|
||||||
_this_prj_dir="${YOCTO_PROJ_DIR}/${platform}${kernel_ver}_${variant}"
|
_this_var_arg="-v ${variant}"
|
||||||
_this_img_dir="${YOCTO_IMGS_DIR}/${platform}${kernel_ver}_${variant}"
|
[ "${variant}" = "-" ] && _this_var_arg="-v \\"
|
||||||
_this_var_arg="-v ${variant}"
|
fi
|
||||||
[ "${variant}" = "-" ] && _this_var_arg="-v \\"
|
mkdir -p ${_this_img_dir} ${_this_prj_dir}
|
||||||
fi
|
if pushd ${_this_prj_dir}; then
|
||||||
mkdir -p ${_this_img_dir} ${_this_prj_dir}
|
# Configure and build the project in a sub-shell to avoid
|
||||||
if pushd ${_this_prj_dir}; then
|
# mixing environments between different platform's projects
|
||||||
# Configure and build the project in a sub-shell to avoid
|
(
|
||||||
# mixing environments between different platform's projects
|
export TEMPLATECONF="${TEMPLATECONF:+${TEMPLATECONF}/${platform}}"
|
||||||
(
|
MKP_PAGER="" . ${YOCTO_INST_DIR}/mkproject.sh -p ${platform} ${_this_var_arg} <<< "y"
|
||||||
export TEMPLATECONF="${TEMPLATECONF:+${TEMPLATECONF}/${platform}}"
|
# Set a common DL_DIR and SSTATE_DIR for all platforms
|
||||||
MKP_PAGER="" . ${YOCTO_INST_DIR}/mkproject.sh -p ${platform} ${_this_var_arg} <<< "y"
|
sed -i -e "/^#DL_DIR ?=/cDL_DIR ?= \"${YOCTO_PROJ_DIR}/downloads\"" \
|
||||||
# Set a common DL_DIR and SSTATE_DIR for all platforms
|
-e "/^#SSTATE_DIR ?=/cSSTATE_DIR ?= \"${YOCTO_PROJ_DIR}/sstate-cache\"" \
|
||||||
sed -i -e "/^#DL_DIR ?=/cDL_DIR ?= \"${YOCTO_PROJ_DIR}/downloads\"" \
|
conf/local.conf
|
||||||
-e "/^#SSTATE_DIR ?=/cSSTATE_DIR ?= \"${YOCTO_PROJ_DIR}/sstate-cache\"" \
|
# Set the DISTRO and remove 'meta-digi-dey' layer if distro is not DEY based
|
||||||
conf/local.conf
|
sed -i -e "/^DISTRO ?=/cDISTRO ?= \"${DY_DISTRO}\"" conf/local.conf
|
||||||
# Set the DISTRO and remove 'meta-digi-dey' layer if distro is not DEY based
|
if ! echo "${DY_DISTRO}" | grep -qs "dey"; then
|
||||||
sed -i -e "/^DISTRO ?=/cDISTRO ?= \"${DY_DISTRO}\"" conf/local.conf
|
sed -i -e '/meta-digi-dey/d' conf/bblayers.conf
|
||||||
if ! echo "${DY_DISTRO}" | grep -qs "dey"; then
|
fi
|
||||||
sed -i -e '/meta-digi-dey/d' conf/bblayers.conf
|
if [ "${DY_USE_MIRROR}" = "true" ]; then
|
||||||
|
sed -i -e "s,^#DIGI_INTERNAL_GIT,DIGI_INTERNAL_GIT,g" conf/local.conf
|
||||||
|
printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf
|
||||||
|
fi
|
||||||
|
if [ "${DY_RM_WORK}" = "true" ]; then
|
||||||
|
printf "${RM_WORK_CFG}" >> conf/local.conf
|
||||||
|
fi
|
||||||
|
# Remove 'x11' distro feature if building minimal images
|
||||||
|
if echo "${DY_TARGET}" | grep -qs "dey-image-minimal"; then
|
||||||
|
printf "${X11_REMOVAL_CFG}" >> conf/local.conf
|
||||||
|
fi
|
||||||
|
for target in ${DY_TARGET}; do
|
||||||
|
printf "\n[INFO] Building the ${target} target.\n"
|
||||||
|
time bitbake ${target}
|
||||||
|
# Build the toolchain for DEY images
|
||||||
|
if [ "${DY_BUILD_TCHAIN}" = "true" ] && echo "${target}" | grep -qs '^dey-image-[^-]\+$'; then
|
||||||
|
printf "\n[INFO] Building the toolchain for ${target}.\n"
|
||||||
|
time bitbake -c populate_sdk ${target}
|
||||||
fi
|
fi
|
||||||
if [ "${DY_USE_MIRROR}" = "true" ]; then
|
done
|
||||||
sed -i -e "s,^#DIGI_INTERNAL_GIT,DIGI_INTERNAL_GIT,g" conf/local.conf
|
purge_sstate
|
||||||
printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf
|
)
|
||||||
fi
|
copy_images ${_this_img_dir}
|
||||||
if [ -n "${kernel_ver}" ]; then
|
popd
|
||||||
printf "${KERNEL_2X_CFG}" >> conf/local.conf
|
fi
|
||||||
fi
|
|
||||||
if [ "${DY_RM_WORK}" = "true" ]; then
|
|
||||||
printf "${RM_WORK_CFG}" >> conf/local.conf
|
|
||||||
fi
|
|
||||||
# Remove 'x11' distro feature if building minimal images
|
|
||||||
if echo "${DY_TARGET}" | grep -qs "dey-image-minimal"; then
|
|
||||||
printf "${X11_REMOVAL_CFG}" >> conf/local.conf
|
|
||||||
fi
|
|
||||||
for target in ${DY_TARGET}; do
|
|
||||||
printf "\n[INFO] Building the ${target} target.\n"
|
|
||||||
time bitbake ${target}
|
|
||||||
# Build the toolchain for DEY images
|
|
||||||
if [ "${DY_BUILD_TCHAIN}" = "true" ] && echo "${target}" | grep -qs '^dey-image-[^-]\+$'; then
|
|
||||||
printf "\n[INFO] Building the toolchain for ${target}.\n"
|
|
||||||
time bitbake -c populate_sdk ${target}
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
purge_sstate
|
|
||||||
)
|
|
||||||
copy_images ${_this_img_dir}
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue