############################################################################# #@TYPE: Distribution #@NAME: MSM #@DESCRIPTION: MSM Linux Distribution (glibc based) #@MAINTAINER: Andrew Walker #@COMMENT: This distribution configuration defines a OE Linux #@COMMENT: distribution. The matching buildable image target (mdm-image) #@COMMENT: basically consists of: libc, busybox, udev, sysv init, and a few #@COMMENT: init scripts for running up the system. ############################################################################# ############################################################################# # DISTRO CONFIGURATION ############################################################################# DISTRO_NAME = "msm" DISTRO_VERSION = "${BUILDNAME}" VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev" ############################################################################# # DISTRO FEATURE SELECTION ############################################################################# MICRO_GOLD = "ld-is-gold" MICRO_GOLD_mips = "" MICRO_GOLD_msm8960 = "" MICRO_GOLD_msm8974 = "" MICRO_GOLD_msm8610 = "" MICRO_GOLD_msm8226 = "" DISTRO_FEATURES += "sysvinit eabi ipv6 ipv4 largefile thumb-interwork xattr ${MICRO_GOLD} ${DISTRO_FEATURES_LIBC}" USE_DEVFS = "0" ############################################################################# # LIBRARY NAMES ############################################################################# # Use Debian naming scheme for library (.so) files INHERIT += "recipe_sanity" ############################################################################# # TOOLCHAIN ############################################################################# PREFERRED_VERSION_autoconf = "2.68" ARM_INSTRUCTION_SET ?= "arm" FULL_OPTIMIZATION = "-O2 -fexpensive-optimizations -frename-registers -fomit-frame-pointer" ############################################################################# # NLS ############################################################################# USE_NLS = "no" USE_NLS_glib-2.0 = "yes" USE_NLS_glib-2.0-native = "yes" USE_NLS_gcc-cross = "no" # Disable binary locale generation ENABLE_BINARY_LOCALE_GENERATION = "0" # Don't install useless symlinks to libraries PACKAGE_SNAP_LIB_SYMLINKS = "1" #Allow library symlinks to exist alongside soname files #for packages that don't create proper symlinks PACKAGE_SNAP_LIB_SYMLINKS_pn-adreno200 = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-location-geofence = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-mm-core-oss = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-mm-video-oss = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-mm-core-prop = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-mm-core-noship = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-mm-video-prop = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-mm-camera = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-mm-camera-lib = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-mm-still = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-camera-hal = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-sudo = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-securemsm-noship = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-libtbm-msm = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-perf-libs = "0" PACKAGE_SNAP_LIB_SYMLINKS_pn-libdri2 = "0" # Don't install ldconfig and associated gubbins USE_LDCONFIG = "0" LDCONFIGDEPEND = "" COMMERCIAL_LICENSE_DEPENDEES = "" # Add the yaffs2 imaging commands to the filesystem support for Bitbake as # OE-Core doesn't support them directly... IMAGE_CMD_yaffs2 = "mkyaffs2image ${EXTRA_IMAGECMD} ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.yaffs2; chmod 644 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.yaffs2" # fastboot imaging commands IMAGE_DEPENDS_fastboot = "mkbootimg-native virtual/kernel" IMAGE_CMD_fastboot = "${STAGING_BINDIR_NATIVE}/mkbootimg --kernel ${STAGING_DIR_TARGET}/kernel/arch/arm/boot/Image --ramdisk /dev/null --ramdisk_offset $(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-${MACHINE_KERNEL_VERSION}) --cmdline 'root=${MACHINE_ROOTDEV} rw init=/sbin/init --verbose loglevel=7 rootwait console=${MACHINE_CONSOLE} no_console_suspend=1 androidboot.hardware=qcom log_buf_len=262144' --base ${MACHINE_KERNEL_BASE} ${EXTRA_IMAGECMD} --pagesize ${MACHINE_FLASH_PAGE_SIZE} --output ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.fastboot" PREFERRED_VERSION_readline = "5.2"