M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions
@@ -0,0 +1,30 @@
#tune file for thumb instructions
ARM_INSTRUCTION_SET ?= "arm"
# "arm" "thumb"
# The instruction set the compiler should use when generating application
# code. The kernel is always compiled with arm code at present. arm code
# is the original 32 bit ARM instruction set, thumb code is the 16 bit
# encoded RISC sub-set. Thumb code is smaller (maybe 70% of the ARM size)
# but requires more instructions (140% for 70% smaller code) so may be
# slower.
THUMB_INTERWORK ?= "no"
# "yes" "no"
# Whether to compile with code to allow interworking between the two
# instruction sets. This allows thumb code to be executed on a primarily
# arm system and vice versa. It is strongly recommended that DISTROs not
# turn this off - the actual cost is very small.
OVERRIDE_THUMB = "${@['', 'thumb:'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}"
OVERRIDE_INTERWORK = "${@['', 'thumb-interwork:'][bb.data.getVar('THUMB_INTERWORK', d, 1) == 'yes']}"
OVERRIDES_prepend_arm =. "${OVERRIDE_THUMB}${OVERRIDE_INTERWORK}"
# Compiler and linker options for application code and kernel code. These
# options ensure that the compiler has the correct settings for the selected
# instruction set and interworking.
ARM_INTERWORK_M_OPT = "${@['-mno-thumb-interwork', '-mthumb-interwork'][bb.data.getVar('THUMB_INTERWORK', d, 1) == 'yes']}"
ARM_THUMB_M_OPT = "${@['-mno-thumb', '-mthumb'][bb.data.getVar('ARM_INSTRUCTION_SET', d, 1) == 'thumb']}"
TARGET_CC_ARCH_append_arm =. " ${ARM_INTERWORK_M_OPT} ${ARM_THUMB_M_OPT}"
TARGET_CC_KERNEL_ARCH_append_arm =. " -mno-thumb-interwork -mno-thumb"
@@ -0,0 +1,4 @@
INHERIT += "package_ipk"
PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "opkg-native"
PREFERRED_PROVIDER_virtual/update-alternatives ?= ${PREFERRED_PROVIDER_opkg}
+132
View File
@@ -0,0 +1,132 @@
#############################################################################
#@TYPE: Distribution
#@NAME: MSM
#@DESCRIPTION: MSM Linux Distribution (eglibc based)
#@MAINTAINER: Frank Earl <fearl@codeaurora.org>
#@COMMENT: This distribution configuration defines a tiny OE Linux
#@COMMENT: distribution. The matching buildable image target (9615-cdp-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 = "${SRCDATE}"
VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev"
#############################################################################
# DISTRO FEATURE SELECTION
#############################################################################
MICRO_GOLD = "ld-is-gold"
MICRO_GOLD_mips = ""
MICRO_GOLD_msm8960 = ""
MICRO_GOLD_msm8974 = ""
DISTRO_FEATURES += "eabi ipv6 ipv4 largefile thumb-interwork xattr ${MICRO_GOLD} ${DISTRO_FEATURES_LIBC}"
#############################################################################
# LIBRARY NAMES
#############################################################################
# Use Debian naming scheme for library (.so) files
INHERIT += "debian recipe_sanity"
#############################################################################
# PACKAGING & FEEDS
#############################################################################
# Select packaging system
PREFERRED_PKG_FORMAT = "ipk"
IPKG_VARIANT = "opkg"
PREFERRED_VERSION_dpkg = "1.15.8.11"
FULL_OPTIMIZATION = "-O2 -fexpensive-optimizations -frename-registers -fomit-frame-pointer"
require conf/distro/include/sane-feed-${PREFERRED_PKG_FORMAT}.inc
#############################################################################
# IMAGES
#############################################################################
# Name generated images
LIBC = "eglibc"
IMAGE_NAME = "${DISTRO_NAME}-${IMAGE_BASENAME}-${LIBC}-\
${PREFERRED_PKG_FORMAT}-${DISTRO_VERSION}-${MACHINE}"
CACHE ?= "${TMPDIR}/cache/${LIBC}/${MACHINE}"
DEPLOY_DIR ?= "${TMPDIR}/deploy/${LIBC}"
DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}"
IMAGE_FEATURES = "read-only-rootfs debug-tweaks"
#############################################################################
# LINUX KERNEL SELECTION
#############################################################################
KERNEL = "kernel26"
MACHINE_KERNEL_VERSION ?= "2.6"
#############################################################################
# TOOLCHAIN
#############################################################################
TCLIBC ?= "eglibc"
PREFERRED_VERSION_eglibc = "2.13"
PREFERRED_ARM_INSTRUCTION_SET ?= "thumb"
require conf/distro/include/arm-thumb.inc
#############################################################################
# Ensure MACHINE_CLASS is in OVERRIDES
#############################################################################
MACHINE_CLASS ?= ""
MACHINE_OVERRIDES += "${MACHINE_CLASS}"
#############################################################################
# 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-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-video-prop = "0"
PACKAGE_SNAP_LIB_SYMLINKS_pn-mm-camera = "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"
# Don't install ldconfig and associated gubbins
USE_LDCONFIG = "0"
LDCONFIGDEPEND = ""
# Disable online package management
ONLINE_PACKAGE_MANAGEMENT = "none"
DISTRO_BLUETOOTH_MANAGER = "bluez4"
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_busybox-static ?= "1.18.5"
#############################################################################
# X11
#############################################################################
PREFERRED_PROVIDER_virtual/libx11 = "libx11"
PREFERRED_PROVIDER_libxcb = "libxcb"
+5
View File
@@ -0,0 +1,5 @@
BBFILES += "${LAYERDIR}/recipes/*/*.bb ${LAYERDIR}/recipes/*/*.bbappend"
BBPATH .= ":${LAYERDIR}"
BBFILE_COLLECTIONS += "msm"
BBFILE_PRIORITY_msm = "10"
BBFILE_PATTERN_msm := "^${LAYERDIR}/"
@@ -0,0 +1,22 @@
#@TYPE: Machine
#@NAME: MDM9615 CDP
#@DESCRIPTION: Machine configuration for Qualcomm MDM9615 CDP
# Uncomment the following line to enable the hard floating point abi. Note that
# this breaks some binary libraries and 3D (neither of which ship with
# meta-yocto). For maximum compatibility, leave this disabled.
#DEFAULTTUNE ?= "cortexa8hf-neon"
# Set it for the A8 tunings for now which should work for the A5 we've got in the
# 9615-cdp...
include conf/machine/include/tune-cortexa8.inc
MACHINE_DISPLAY_WIDTH_PIXELS = "480"
MACHINE_DISPLAY_HEIGHT_PIXELS = "640"
SERIAL_CONSOLE = "115200 ttyO2"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-quic"
MACHINE_FEATURES += "kernel26"
MACHINE_FEATURES += "keyboard"
@@ -0,0 +1,9 @@
#@TYPE: Machine
#@NAME: MDM9625 Perf
#@DESCRIPTION: Machine configuration for Qualcomm MDM9625 CDP for perf.
BASEMACHINE = "mdm9625"
include ${BASEMACHINE}.conf
MACHINEOVERRIDES = "${BASEMACHINE}:${MACHINE}"
@@ -0,0 +1,22 @@
#@TYPE: Machine
#@NAME: MDM9625 CDP
#@DESCRIPTION: Machine configuration for Qualcomm MDM9625 CDP
# Uncomment the following line to enable the hard floating point abi. Note that
# this breaks some binary libraries and 3D (neither of which ship with
# meta-yocto). For maximum compatibility, leave this disabled.
#DEFAULTTUNE ?= "cortexa8hf-neon"
include conf/machine/include/tune-cortexa8.inc
MACHINE_DISPLAY_WIDTH_PIXELS = "480"
MACHINE_DISPLAY_HEIGHT_PIXELS = "640"
SERIAL_CONSOLE = "115200 ttyO2"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-quic"
MACHINE_FEATURES += "kernel26"
MACHINE_FEATURES += "keyboard"
MACHINE_DTS_NAME = "msm9625"
@@ -0,0 +1,56 @@
#@TYPE: Machine
#@NAME: MSM7627A FFA
#@DESCRIPTION: Machine configuration for Qualcomm MSM7627A FFA
DEFAULTTUNE ?= "cortexa5-neon"
require conf/machine/include/arm/arch-armv7a.inc
TUNEVALID[cortexa5] = "Enable Cortex-A5 specific processor optimizations"
TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "cortexa5", "-mtune=cortex-a5", "", d)}"
# Little Endian base configs
AVAILTUNES += "cortexa5 cortexa5t cortexa5-neon"
TUNE_FEATURES_tune-cortexa5 = "${TUNE_FEATURES_tune-armv7a} cortexa5"
TUNE_FEATURES_tune-cortexa5t = "${TUNE_FEATURES_tune-armv7at} cortexa5"
TUNE_FEATURES_tune-cortexa5-neon = "${TUNE_FEATURES_tune-armv7a-neon} cortexa5"
PACKAGE_EXTRA_ARCHS_tune-cortexa5 = "${PACKAGE_EXTRA_ARCHS_tune-armv7at}"
PACKAGE_EXTRA_ARCHS_tune-cortexa5t = "${PACKAGE_EXTRA_ARCHS_tune-armv7at}"
PACKAGE_EXTRA_ARCHS_tune-cortexa5-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7at-neon}"
# VFP Tunes
AVAILTUNES += "cortexa5hf cortexa5thf cortexa5hf-neon"
TUNE_FEATURES_tune-cortexa5hf ?= "${TUNE_FEATURES_tune-armv7ahf} cortexa5"
TUNE_FEATURES_tune-cortexa5thf ?= "${TUNE_FEATURES_tune-armv7athf} cortexa5"
TUNE_FEATURES_tune-cortexa5hf-neon ?= "${TUNE_FEATURES_tune-armv7ahf-neon} cortexa5"
PACKAGE_EXTRA_ARCHS_tune-cortexa5hf = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf}"
PACKAGE_EXTRA_ARCHS_tune-cortexa5thf = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf}"
PACKAGE_EXTRA_ARCHS_tune-cortexa5hf-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf-neon}"
MACHINE_DISPLAY_WIDTH_PIXELS = "480"
MACHINE_DISPLAY_HEIGHT_PIXELS = "640"
KERNEL_DEFCONFIG = "msm7627a-perf_defconfig"
# fastboot image configuration
MACHINE_CONSOLE = "tty0"
MACHINE_ROOTDEV = "/dev/mmcblk0"
MACHINE_KERNEL_BASE = "0x00200000"
MACHINE_FLASH_PAGE_SIZE = "4096"
MACHINE_KERNEL_VERSION = `sed -r 's/#define UTS_RELEASE "(.*)"/\1/' ${STAGING_KERNEL_DIR}/include/generated/utsrelease.h`
PREFERRED_PROVIDER_virtual/kernel ?= "linux-msm"
#TODO: remove
#update-modules needs this
MACHINE_FEATURES += "kernel26"
#Enable X11
DISTRO_FEATURES += "x11"
#Enable rpm packaging
PACKAGE_CLASSES += " package_rpm"
# BB_SIGNATURE_HANDLER The noop value will result in using a '0' for
# the checksum of a shared state binary. The default value is OEBasic.
BB_SIGNATURE_HANDLER = "noop"
@@ -0,0 +1,36 @@
#@TYPE: Machine
#@NAME: MSM8655 FFA
#@DESCRIPTION: Machine configuration for Qualcomm MSM8655 FFA
include conf/machine/include/tune-cortexa8.inc
MACHINE_DISPLAY_WIDTH_PIXELS = "480"
MACHINE_DISPLAY_HEIGHT_PIXELS = "800"
MACHINE_FEATURES += "mm-camera"
MACHINE_FEATURES += "mm-video-oss"
KERNEL_DEFCONFIG = "msm7630-perf_defconfig"
# fastboot image configuration
MACHINE_CONSOLE = "tty0"
MACHINE_ROOTDEV = "/dev/mmcblk0"
MACHINE_KERNEL_BASE = "0x00200000"
MACHINE_FLASH_PAGE_SIZE = "4096"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-msm"
#TODO: remove
#update-modules needs this
MACHINE_FEATURES += "kernel26"
#Enable X11
DISTRO_FEATURES += "x11"
#Enable rpm packaging
PACKAGE_CLASSES += " package_rpm"
# BB_SIGNATURE_HANDLER The noop value will result in using a '0' for
# the checksum of a shared state binary. The default value is OEBasic.
BB_SIGNATURE_HANDLER = "noop"
@@ -0,0 +1,11 @@
#@TYPE: Machine
#@NAME: MSM8960 Perf
#@DESCRIPTION: Machine configuration for Qualcomm MSM8960 MTP for perf.
BASEMACHINE = "msm8960"
include ${BASEMACHINE}.conf
MACHINEOVERRIDES = "${BASEMACHINE}:${MACHINE}"
KERNEL_DEFCONFIG = msm8960-perf_defconfig
@@ -0,0 +1,48 @@
#@TYPE: Machine
#@NAME: MSM8960 MTP
#@DESCRIPTION: Machine configuration for Qualcomm MSM8960 MTP
# Uncomment the following line to enable the hard floating point abi. Note that
# this breaks some binary libraries and 3D (neither of which ship with
# meta-yocto). For maximum compatibility, leave this disabled.
#DEFAULTTUNE ?= "cortexa8hf-neon"
include conf/machine/include/tune-cortexa8.inc
SDKGCCVERSION="4.5%"
GCCVERSION="4.5%"
MACHINE_DISPLAY_WIDTH_PIXELS = "480"
MACHINE_DISPLAY_HEIGHT_PIXELS = "800"
SERIAL_CONSOLE = "115200 ttyO2"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-msm"
MACHINE_FEATURES += "kernel26"
MACHINE_FEATURES += "keyboard"
# Provide a config baseline for things so the kernel will build...
KERNEL_DEFCONFIG ?= "msm8960_defconfig"
MACHINE_DTS_NAME = "msm8930"
# fastboot image configuration
MACHINE_CONSOLE = "tty0"
MACHINE_ROOTDEV = "/dev/mmcblk0p12"
MACHINE_KERNEL_BASE = "0x80200000"
MACHINE_FLASH_PAGE_SIZE = "4096"
MACHINE_KERNEL_VERSION = `sed -r 's/#define UTS_RELEASE "(.*)"/\1/' ${STAGING_KERNEL_DIR}/include/generated/utsrelease.h`
#Enable X11
DISTRO_FEATURES += "x11"
#Device manager
VIRTUAL-RUNTIME_dev_manager = "udev"
#Busybox
PREFERRED_VERSION_busybox = "1.19.3"
PREFERRED_VERSION_busybox-static = "1.19.3"
#Enable rpm packaging
PACKAGE_CLASSES += " package_rpm"
@@ -0,0 +1,11 @@
#@TYPE: Machine
#@NAME: MSM8974 Perf
#@DESCRIPTION: Machine configuration for Qualcomm MSM8974 MTP for perf.
BASEMACHINE = "msm8974"
include ${BASEMACHINE}.conf
MACHINEOVERRIDES = "${BASEMACHINE}:${MACHINE}"
KERNEL_DEFCONFIG = msm8974-perf_defconfig
@@ -0,0 +1,48 @@
#@TYPE: Machine
#@NAME: MSM8974 MTP
#@DESCRIPTION: Machine configuration for Qualcomm MSM8974 MTP
# Uncomment the following line to enable the hard floating point abi. Note that
# this breaks some binary libraries and 3D (neither of which ship with
# meta-yocto). For maximum compatibility, leave this disabled.
#DEFAULTTUNE ?= "cortexa8hf-neon"
include conf/machine/include/tune-cortexa8.inc
SDKGCCVERSION="4.5%"
GCCVERSION="4.5%"
MACHINE_DISPLAY_WIDTH_PIXELS = "480"
MACHINE_DISPLAY_HEIGHT_PIXELS = "800"
SERIAL_CONSOLE = "115200 ttyO2"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-msm"
MACHINE_FEATURES += "kernel26"
MACHINE_FEATURES += "keyboard"
# Provide a config baseline for things so the kernel will build...
KERNEL_DEFCONFIG ?= "msm8974_defconfig"
MACHINE_DTS_NAME = "msm8974"
# fastboot image configuration
MACHINE_CONSOLE = "ttyHSL0"
MACHINE_ROOTDEV = "/dev/mmcblk0p12"
MACHINE_KERNEL_BASE = "0x00000000"
MACHINE_FLASH_PAGE_SIZE = "4096"
MACHINE_KERNEL_VERSION = `sed -r 's/#define UTS_RELEASE "(.*)"/\1/' ${STAGING_KERNEL_DIR}/include/generated/utsrelease.h`
#Enable X11
DISTRO_FEATURES += "x11"
#Device manager
VIRTUAL-RUNTIME_dev_manager = "udev"
#Busybox
PREFERRED_VERSION_busybox = "1.19.3"
PREFERRED_VERSION_busybox-static = "1.19.3"
#Enable rpm packaging
PACKAGE_CLASSES += " package_rpm"
+52
View File
@@ -0,0 +1,52 @@
#
# local.conf covers user settings, site.conf covers site specific information
# such as proxy server addresses and optionally any shared download location
#
# SITE_CONF_VERSION is increased each time build/conf/site.conf
# changes incompatibly
SCONF_VERSION = "1"
# Uncomment to cause CVS to use the proxy host specified
#CVS_PROXY_HOST = "proxy.example.com"
#CVS_PROXY_PORT = "81"
# For svn, you need to create ~/.subversion/servers containing:
#[global]
#http-proxy-host = proxy.example.com
#http-proxy-port = 81
#
# Uncomment to cause git to use the proxy host specificed
# although this only works for http
#GIT_PROXY_HOST = "proxy.example.com"
#GIT_PROXY_PORT = "81"
#export GIT_PROXY_COMMAND = "${COREBASE}/scripts/oe-git-proxy-command"
# GIT_PROXY_IGNORE_* lines define hosts which do not require a proxy to access
#GIT_CORE_CONFIG = "Yes"
#GIT_PROXY_IGNORE_1 = "host.server.com"
#GIT_PROXY_IGNORE_2 = "another.server.com"
# If SOCKS is available run the following command to comple a simple transport
# gcc scripts/oe-git-proxy-socks.c -o oe-git-proxy-socks
# and then share that binary somewhere in PATH, then use the following settings
#GIT_PROXY_HOST = "proxy.example.com"
#GIT_PROXY_PORT = "81"
#export GIT_PROXY_COMMAND = "${COREBASE}/scripts/oe-git-proxy-socks-command"
# Uncomment this to use a shared download directory
YP_MIRROR = "http://autobuilder.yoctoproject.org/pub/sources"
CAF_MIRROR = "https://www.codeaurora.org/mirrored_source/quic/le"
PREMIRRORS_append = "\
https?$://.*/.* ${CAF_MIRROR}/\n \
svn$://.*/.* ${CAF_MIRROR}/\n \
file://.*/.* ${CAF_MIRROR}/\n \
git?$://.*/.* ${CAF_MIRROR}/\n \
ftps?$://.*/.* ${CAF_MIRROR}/\n \
https?$://.*/.* ${YP_MIRROR}/\n \
svn$://.*/.* ${YP_MIRROR}/\n \
file://.*/.* ${YP_MIRROR}/\n \
git?$://.*/.* ${YP_MIRROR}/\n \
ftps?$://.*/.* ${YP_MIRROR}/\n \"