30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
|
# Force a few additional dependencies in the mix so that we get the needed
|
||
|
# recipes to build in the right order so we can make the bootimg file and
|
||
|
# our yaffs2 image...
|
||
|
DEPENDS = " \
|
||
|
virtual/kernel \
|
||
|
virtual/bootloader \
|
||
|
pkgconfig-native \
|
||
|
gtk-doc-native \
|
||
|
gettext-native \
|
||
|
yaffs2-utils-native \
|
||
|
mkbootimg-native \
|
||
|
"
|
||
|
|
||
|
# Image output types
|
||
|
IMAGE_FSTYPES = "tar.gz jffs2"
|
||
|
IMAGE_FSTYPES += "yaffs2"
|
||
|
|
||
|
# Make the bootimg image file using the information available in the sysroot...
|
||
|
do_rootfs_append() {
|
||
|
ver=`sed -r 's/#define UTS_RELEASE "(.*)"/\1/' ${STAGING_KERNEL_DIR}/include/generated/utsrelease.h`
|
||
|
kernelsize=`awk --non-decimal-data '/ _end/ {end="0x" $1} /_stext/ {beg="0x" $1} END {size1=end-beg+4096; size=and(size1,compl(4095)); printf("%#x",size)}' ${STAGING_DIR_TARGET}/boot/System.map-${ver}`
|
||
|
|
||
|
${STAGING_DIR_NATIVE}/usr/bin/mkbootimg --kernel ${STAGING_DIR_TARGET}/boot/Image-${ver} \
|
||
|
--ramdisk /dev/null \
|
||
|
--cmdline "noinitrd root=/dev/mtdblock13 rw rootfstype=yaffs2 console=ttyHSL0,115200,n8 androidboot.hardware=qcom" \
|
||
|
--base 0x40800000 \
|
||
|
--ramdisk_offset $kernelsize \
|
||
|
--output ${DEPLOY_DIR_IMAGE}/recovery-boot-oe-msm9615.img
|
||
|
}
|