build.sh: adapt script to new ccard default kernel 3.10

Adapt the jenkins build script to build for ccardimx28js by default
linux 3.10 and u-boot 2013.01 and as alternative configuration linux
2.6.35.14 and u-boot 2009.08

https://jira.digi.com/browse/DEL-1168

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2014-08-01 19:04:06 +02:00
parent 3cdc5f14b5
commit 98c8a75a2f
1 changed files with 9 additions and 8 deletions

View File

@ -37,10 +37,11 @@ SOURCE_MIRROR_URL ?= \"http://build-linux.digi.com/yocto/downloads/\"
INHERIT += \"own-mirrors\" INHERIT += \"own-mirrors\"
" "
KERNEL_3X_CFG=" # Alternative config for ccardimx28js
# Build Linux 3.10 and U-Boot 2013.01 KERNEL_2X_CFG="
PREFERRED_VERSION_linux-dey = \"3.10\" # Build Linux 2.6.35.14 and U-Boot 2009.08
PREFERRED_VERSION_u-boot-dey = \"2013.01\" PREFERRED_VERSION_linux-dey = \"2.6.35.14\"
PREFERRED_VERSION_u-boot-dey = \"2009.08\"
" "
REPO="$(which repo)" REPO="$(which repo)"
@ -119,7 +120,7 @@ done<<-_EOF_
ccimx6sbc - w wb ccimx6sbc - w wb
_EOF_ _EOF_
# Support Linux-3.x and U-Boot 2013.x # Build alternative linux and u-boot
while read _pl _ker; do while read _pl _ker; do
eval "${_pl}_ker=\"${_ker}\"" eval "${_pl}_ker=\"${_ker}\""
done<<-_EOF_ done<<-_EOF_
@ -163,8 +164,8 @@ 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_kernel3x="\${${platform}_ker%n}" eval platform_kernel2x="\${${platform}_ker%n}"
for kernel_ver in "" ${platform_kernel3x:+-3x}; do for kernel_ver in "" ${platform_kernel2x:+-2x}; do
for variant in ${platform_variants}; do for variant in ${platform_variants}; do
_this_prj_dir="${YOCTO_PROJ_DIR}/${platform}${kernel_ver}" _this_prj_dir="${YOCTO_PROJ_DIR}/${platform}${kernel_ver}"
_this_img_dir="${YOCTO_IMGS_DIR}/${platform}${kernel_ver}" _this_img_dir="${YOCTO_IMGS_DIR}/${platform}${kernel_ver}"
@ -195,7 +196,7 @@ for platform in ${DY_PLATFORMS}; do
printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf printf "${DIGI_PREMIRROR_CFG}" >> conf/local.conf
fi fi
if [ -n "${kernel_ver}" ]; then if [ -n "${kernel_ver}" ]; then
printf "${KERNEL_3X_CFG}" >> conf/local.conf printf "${KERNEL_2X_CFG}" >> conf/local.conf
fi fi
[ "${DY_RM_WORK}" = "true" ] && printf "\nINHERIT += \"rm_work\"\n" >> conf/local.conf [ "${DY_RM_WORK}" = "true" ] && printf "\nINHERIT += \"rm_work\"\n" >> conf/local.conf
for target in ${DY_TARGET}; do for target in ${DY_TARGET}; do