export BOARD=MST291C-D01B
# variable name : FLASH_TYPE
# EMMC(default)
# PNAND
# SPINAND
#export FLASH_TYPE=EMMC
export FLASH_TYPE=PNAND
# SW feature
ENABLE_APP_DUEROS=0
ENABLE_APP_AVS=0
ENABLE_APP_DFB=0
ENABLE_WIFI_MT7601U=1
ENABLE_WIFI_MT76X8U=1
PREP_ALGORITHM=SMARTHOME
PREP_ENABLE_UFB=1
ENABLE_APP_QJY=0
ENABLE_BTMTK=1
NOINITRD=1
export NOINITRD=1
project/C4P/Makefile
ifneq (,${NOINITRD})
@echo "xxx_A, NOINITRD=${NOINITRD}"
@ms_ver="$(shell strings -a -T binary ${OUT_DIR}/Image | grep 'MVX' | grep 'LX' | sed 's/\\*MVX/MVX/g' | cut -c 1-32 )" ; \
${TOOL_DIR}/mkimage -A arm -O linux -T multi -C mz -a ${BOARD_KERNEL_BASE} -e ${BOARD_KERNEL_BASE} -n "$$ms_ver" -d ${OUT_DIR}/Image.mz ${IMAGE_DIR}/kernel.mz.img.tmp;
else
@echo "xxx_B, NOINITRD=${NOINITRD}"
@ms_ver="$(shell strings -a -T binary ${OUT_DIR}/Image | grep 'MVX' | grep 'LX' | sed 's/\\*MVX/MVX/g' | cut -c 1-32 )" ; \
${TOOL_DIR}/mkimage -A arm -O linux -T multi -C mz -a ${BOARD_KERNEL_BASE} -e ${BOARD_KERNEL_BASE} -n "$$ms_ver" -d ${OUT_DIR}/Image.mz:$(OUT_DIR)/ramdisk.xz.img ${IMAGE_DIR}/kernel.mz.img.tmp;
endif
@LD_ADDR=${INITRD_LD_ADDR}; \
${TOOL_DIR}/ms_kimg_update ${IMAGE_DIR}/kernel.mz.img.tmp ${IMAGE_DIR}/kernel.mz.img $${LD_ADDR}
@rm -f ${IMAGE_DIR}/kernel.mz.img.tmp
# ${TOOL_DIR}/mkimage -A arm -O linux -T multi -C none -a ${BOARD_KERNEL_BASE} -e ${BOARD_KERNEL_BASE} -n "$$ms_ver" -d ${OUT_DIR}/Image:$(OUT_DIR)/ramdisk.xz.img ${IMAGE_DIR}/kernel.img.tmp;
#xxx add
ifneq (,${NOINITRD})
@echo "xxx_C, NOINITRD=${NOINITRD}"
@ms_ver="$(shell strings -a -T binary ${OUT_DIR}/Image | grep 'MVX' | grep 'LX' | sed 's/\\*MVX/MVX/g' | cut -c 1-32 )" ; \
${TOOL_DIR}/mkimage -A arm -O linux -T multi -C none -a ${BOARD_KERNEL_BASE} -e ${BOARD_KERNEL_BASE} -n "$$ms_ver" -d ${OUT_DIR}/Image ${IMAGE_DIR}/kernel.img.tmp;
else
@echo "xxx_D, NOINITRD=${NOINITRD}"
@ms_ver="$(shell strings -a -T binary ${OUT_DIR}/Image | grep 'MVX' | grep 'LX' | sed 's/\\*MVX/MVX/g' | cut -c 1-32 )" ; \
${TOOL_DIR}/mkimage -A arm -O linux -T multi -C none -a ${BOARD_KERNEL_BASE} -e ${BOARD_KERNEL_BASE} -n "$$ms_ver" -d ${OUT_DIR}/Image:$(OUT_DIR)/ramdisk.img ${IMAGE_DIR}/kernel.img.tmp;
endif
@LD_ADDR=${INITRD_LD_ADDR}; \
${TOOL_DIR}/ms_kimg_update ${IMAGE_DIR}/kernel.img.tmp ${IMAGE_DIR}/kernel.img $${LD_ADDR}
@rm -f ${IMAGE_DIR}/kernel.img.tmp
ifneq (,${NOINITRD})
@echo "xxx_E, NOINITRD=${NOINITRD}"
@-rm -f ${OUT_DIR}/${OUT_IMAGE}.xz
@xz -z -k ${OUT_DIR}/${OUT_IMAGE}
@ms_ver="$(shell strings -a -T binary ${OUT_DIR}/Image | grep 'MVX' | grep 'LX' | sed 's/\\*MVX/MVX/g' | cut -c 1-32 )" ; \
${TOOL_DIR}/mkImage -A arm -O linux -C lzma -a ${BOARD_KERNEL_BASE} -e ${BOARD_KERNEL_BASE} -n "$$ms_ver" -d ${OUT_DIR}/Image.xz ${IMAGE_DIR}/kernel.xz.img
else
@echo "xxx_F, NOINITRD=${NOINITRD}"
@-rm -f ${OUT_DIR}/${OUT_IMAGE}.xz
@xz -z -k ${OUT_DIR}/${OUT_IMAGE}
@ms_ver="$(shell strings -a -T binary ${OUT_DIR}/${OUT_IMAGE} | grep 'MVX' | grep 'LX' | sed 's/\\*MVX/MVX/g' | cut -c 1-32 )" ; \
${TOOL_DIR}/mkImage -A arm -O linux -T multi -C lzma -a ${BOARD_KERNEL_BASE} -e ${BOARD_KERNEL_BASE} -n "$$ms_ver" -d ${OUT_DIR}/${OUT_IMAGE}.xz:$(OUT_DIR)/ramdisk.xz.img ${IMAGE_DIR}/kernel.xz.img.tmp;
@LD_ADDR=${INITRD_LD_ADDR}; \
${TOOL_DIR}/ms_kimg_update ${IMAGE_DIR}/kernel.xz.img.tmp ${IMAGE_DIR}/kernel.xz.img $${LD_ADDR}
@rm -f ${IMAGE_DIR}/kernel.xz.img.tmp
endif
沒有留言:
張貼留言