packaging: switch find calls from -exec to xargs
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / release_obs.sh
index 6e5b05b..8f475db 100755 (executable)
@@ -12,8 +12,7 @@ CONFIG_STR=${INPUT_STR%_smk_dis*}
 #CONFIG_STR=${INPUT_STR%_tima_en*}
 OPTION_STR=${INPUT_STR#*${CONFIG_STR}}
 
-INPUT_STR2=${2}
-echo "defconfig : ${CONFIG_STR}_defconfig , option : ${OPTION_STR}, Release : ${INPUT_STR2}"
+echo "defconfig : ${CONFIG_STR}_defconfig , option : ${OPTION_STR}"
 
 if [ "${OPTION_STR}" = "_smk_dis" ]; then
        echo "Now change smack-disable for ${CONFIG_STR}_defconfig"
@@ -59,16 +58,6 @@ if [ "${OPTION_STR}" = "_tima_en" ]; then
        fi
 fi
 
-if [ "${INPUT_STR2}" = "USR" ]; then
-       echo "Now disable CONFIG_SLP_KERNEL_ENG for ${CONFIG_STR}_defconfig"
-
-       sed -i 's/CONFIG_SLP_KERNEL_ENG=y/\# CONFIG_SLP_KERNEL_ENG is not set/g' arch/arm/configs/${CONFIG_STR}_defconfig
-       if [ "$?" != "0" ]; then
-               echo "Failed to disable CONFIG_SLP_KERNEL_ENG feature"
-               exit 1
-       fi
-fi
-
 make ARCH=arm ${CONFIG_STR}_defconfig
 if [ "$?" != "0" ]; then
        echo "Failed to make defconfig"
@@ -91,13 +80,13 @@ if [ "$?" != "0" ]; then
         exit 1
 fi
 
-./scripts/sprd_dtbtool.sh
+./scripts/sprd_dtbtool.sh -p ${DTC_PATH} -v ${BOOT_PATH}/dts/
 if [ "$?" != "0" ]; then
        echo "Failed to make merged-dtb"
        exit 1
 fi
 
-./scripts/sprd_mkdzimage.sh
+./scripts/sprd_mkdzimage.sh -o ${BOOT_PATH}/${DZIMAGE} -k ${BOOT_PATH}/zImage -d ${BOOT_PATH}/merged-dtb
 if [ "$?" != "0" ]; then
        echo "Failed to make mkdzImage"
        exit 1