diff options
Diffstat (limited to 'bsp/meta-qcom/recipes-kernel/linux/linux-qcom-bootimg.inc')
-rw-r--r-- | bsp/meta-qcom/recipes-kernel/linux/linux-qcom-bootimg.inc | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/bsp/meta-qcom/recipes-kernel/linux/linux-qcom-bootimg.inc b/bsp/meta-qcom/recipes-kernel/linux/linux-qcom-bootimg.inc index 7290f27a..5177feb1 100644 --- a/bsp/meta-qcom/recipes-kernel/linux/linux-qcom-bootimg.inc +++ b/bsp/meta-qcom/recipes-kernel/linux/linux-qcom-bootimg.inc @@ -4,12 +4,12 @@ QCOM_BOOTIMG_ROOTFS ?= "undefined" SD_QCOM_BOOTIMG_ROOTFS ?= "undefined" # set output file names -DT_IMAGE_BASE_NAME = "dt-${KERNEL_IMAGE_NAME}" -DT_IMAGE_SYMLINK_NAME = "dt-${KERNEL_IMAGE_LINK_NAME}" BOOT_IMAGE_BASE_NAME = "boot-${KERNEL_IMAGE_NAME}" BOOT_IMAGE_SYMLINK_NAME = "boot-${KERNEL_IMAGE_LINK_NAME}" SD_BOOT_IMAGE_BASE_NAME = "boot-sd${KERNEL_IMAGE_NAME}" SD_BOOT_IMAGE_SYMLINK_NAME = "boot-sd-${KERNEL_IMAGE_LINK_NAME}" +KERNEL_CMDLINE = "root=/dev/${1} rw rootwait console=${ttydev},${baudrate}n8" +KERNEL_CMDLINE_append_dragonboard-845c = " clk_ignore_unused pd_ignore_unused" # param ${1} partition where rootfs is located # param ${2} output boot image file name @@ -17,23 +17,13 @@ priv_make_image() { ${STAGING_BINDIR_NATIVE}/skales/mkbootimg --kernel ${B}/arch/${ARCH}/boot/${KERNEL_IMAGETYPE} \ --ramdisk ${B}/initrd.img \ --output ${DEPLOYDIR}/${2}.img \ - $mkbootimg_dtarg \ --pagesize ${QCOM_BOOTIMG_PAGE_SIZE} \ --base ${QCOM_BOOTIMG_KERNEL_BASE} \ - --cmdline \ - "root=/dev/${1} rw rootwait console=${ttydev},${baudrate}n8" + --cmdline "${KERNEL_CMDLINE}" } do_deploy_append() { - mkbootimg_dtarg="" - if [ "${QCOM_BOOTIMG_BUNDLE_DT}" = "1" ]; then - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${STAGING_LIBDIR_NATIVE}" - ${STAGING_BINDIR_NATIVE}/skales/dtbTool -o ${DEPLOYDIR}/${DT_IMAGE_BASE_NAME}.img -s ${QCOM_BOOTIMG_PAGE_SIZE} ${B}/arch/${ARCH}/boot/dts/qcom/ - mkbootimg_dtarg="--dt ${DEPLOYDIR}/${DT_IMAGE_BASE_NAME}.img" - ln -sf ${DT_IMAGE_BASE_NAME}.img ${DEPLOYDIR}/${DT_IMAGE_SYMLINK_NAME}.img - fi - tmp="${SERIAL_CONSOLES}" baudrate=`echo $tmp | sed 's/\;.*//'` ttydev=`echo $tmp | sed -e 's/^[0-9]*\;//' -e 's/\s.*//' -e 's/\;.*//'` |