diff options
| author | Chunrong Guo <chunrong.guo@nxp.com> | 2018-01-30 17:10:03 +0800 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2018-02-06 09:58:34 -0200 |
| commit | e189c400f474a38ef3ab247708e73c198b903da4 (patch) | |
| tree | c9afbf2609c28c1b6bdc1d0033f0d954eeaf920e /recipes-bsp/ppa/ppa_git.bb | |
| parent | 31427e3ce7a13409dd49a874e2df33bdf326f31c (diff) | |
| download | meta-freescale-e189c400f474a38ef3ab247708e73c198b903da4.tar.gz | |
ppa: Recipe Reogranization
*ppa build support OPTEE-OS parameter.
*Building PPA source with OPTEE-OS
*add ppa-optee recipes
*update to e564143
e564143 - Adding 'execute' bit to gen_spd_its file mode
a0e0479 - QPPA-34 Fix to resolve the 4.4 Kernel 32bit bootup issue.
3107360 - Initializing TZASC after EL3 cache maint ops; Setting OCRAM to secure access only when EL3 stacks are in OCRAM.
db509c5 - Initializing smc global data region;Making data-in-ocram the default.
48ccba3 - Cleaning up code fix for QLINUX-8590.
c1e2177 - Bringing TZASC Enablement under CONFIG_SPD compile time flag.
fac778a - Enable LPM20 on LS2088A
5be38ad - Fix for ls1026ardb/ls1023ardb board boot up issue on dash-lts 4.9 kernel. JIRA Ticket QLINUX-8590
eb40915 - Adding support for LS1012 Freedom board.
833f749 - Fix for launching 32-bit kernel when OpTee is loaded.
75e9909 - Added TZC-380 & TZC-400 drivers for LS1043 and LS1046.
f2eecde - Add proper checking for Trusted-OS vector-table.
24ecac4 - Enable PSCI-CPU-ON notification for trusted-OS.
a9a6f4d - Fix in SPD for Coverity issues in TX1.0 release.
b2979b5 - Disabling and re-enabling SEC on entry/exit to LPM20 on LS1088.
b31c991 - Fix defect inserted into _zeroize_bss() during last commit.
3f83fd1 - Changed name of ddr/spd.c to spd_ddr.c to prevent filename collision with spd/spd.c.
59acbe2 - Fixing LSCH macro usage in timer.c.
030a2d7 - Adding SD/eMMC driver.
46016e6 - Added functions _getGICC_BaseAddr() and _getGICD_BaseAddr() to ls1012.
1f804e6 - Fixed handling of ls1043/ls1046 gic base address.
7e8df4f - Supplying the start address to _relocate_rela() and _zeroize_bss() functions.
dc36a4e - Resequencing the startup code for ddr and non-ddr builds. Fixed handling of input parameters to _ppa_main().
52f6c8b - Cleanup monitor code.
bdd2e61 - Adding temporary stack to bootcore before ppa_main() is called.
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-bsp/ppa/ppa_git.bb')
| -rw-r--r-- | recipes-bsp/ppa/ppa_git.bb | 76 |
1 files changed, 14 insertions, 62 deletions
diff --git a/recipes-bsp/ppa/ppa_git.bb b/recipes-bsp/ppa/ppa_git.bb index c4f81bc59..b1cbde41d 100644 --- a/recipes-bsp/ppa/ppa_git.bb +++ b/recipes-bsp/ppa/ppa_git.bb | |||
| @@ -1,70 +1,22 @@ | |||
| 1 | SUMMARY = "Primary Protected Application" | 1 | require ppa.inc |
| 2 | LICENSE = "Freescale-EULA" | ||
| 3 | LIC_FILES_CHKSUM = "file://license.txt;md5=2ecf925c01a48f61c88f78c30fe2ee3b" | ||
| 4 | 2 | ||
| 5 | DEPENDS += "u-boot-mkimage-native dtc-native" | 3 | PPA_PATH_ls1012a = "ls1012" |
| 4 | PPA_PATH_ls1043a = "ls1043" | ||
| 5 | PPA_PATH_ls1046a = "ls1046" | ||
| 6 | PPA_PATH_ls2088a = "ls2088" | ||
| 7 | PPA_PATH_ls1088a = "ls1088" | ||
| 6 | 8 | ||
| 7 | inherit deploy | 9 | do_compile () { |
| 8 | |||
| 9 | SRC_URI = "git://github.com/qoriq-open-source/ppa-generic.git;nobranch=1 \ | ||
| 10 | file://0001-fix-path-error.patch \ | ||
| 11 | " | ||
| 12 | SRCREV = "92b208b0dbb5a47b06627ec62824cb5790b3f482" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | python () { | ||
| 17 | ml = d.getVar("MULTILIB_VARIANTS", True) | ||
| 18 | arch = d.getVar("OVERRIDES", True) | ||
| 19 | if "fsl-lsch2-32b:" in arch: | ||
| 20 | if not "lib64" in ml: | ||
| 21 | raise bb.parse.SkipPackage("Building the u-boot for this arch requires multilib to be enabled") | ||
| 22 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux' | ||
| 23 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') | ||
| 24 | workdir = d.getVar('WORKDIR').replace(sys_original,sys_multilib) | ||
| 25 | d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc') | ||
| 26 | d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib) | ||
| 27 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot') | ||
| 28 | d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-') | ||
| 29 | } | ||
| 30 | |||
| 31 | WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" | ||
| 32 | EXTRA_OEMAKE = 'CC64="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" LD64="${WRAP_TARGET_PREFIX}ld ${TOOLCHAIN_OPTIONS}" OBJ64="${WRAP_TARGET_PREFIX}objcopy"' | ||
| 33 | |||
| 34 | PPA_PATH ?= "ppa/soc-ls1043/platform-rdb" | ||
| 35 | PPA_PATH_ls1046a = "ppa/soc-ls1046/platform-rdb" | ||
| 36 | PPA_PATH_ls2088a = "ppa/soc-ls2088/platform-rdb" | ||
| 37 | PPA_PATH_ls1088a = "ppa/soc-ls1088/platform-rdb" | ||
| 38 | PPA_PATH_ls1012a = "ppa/soc-ls1012/platform-rdb" | ||
| 39 | PPA_NAME ?= "ppa-${MACHINE}-${DATETIME}" | ||
| 40 | PPA_NAME[vardepsexclude] = "DATETIME" | ||
| 41 | |||
| 42 | do_compile() { | ||
| 43 | export ARMV8_TOOLS_DIR="${STAGING_BINDIR_TOOLCHAIN}" | 10 | export ARMV8_TOOLS_DIR="${STAGING_BINDIR_TOOLCHAIN}" |
| 44 | export ARMV8_TOOLS_PREFIX="${TARGET_PREFIX}" | 11 | export ARMV8_TOOLS_PREFIX="${TARGET_PREFIX}" |
| 45 | export CROSS_COMPILE="${WRAP_TARGET_PREFIX}" | 12 | export CROSS_COMPILE="${WRAP_TARGET_PREFIX}" |
| 46 | cd ${S}/${PPA_PATH} | 13 | cd ${S}/ppa |
| 47 | oe_runmake rdb-fit | 14 | if [ ${MACHINE} = ls1012afrdm ];then |
| 15 | ./build frdm-fit ${PPA_PATH} | ||
| 16 | else | ||
| 17 | ./build rdb-fit ${PPA_PATH} | ||
| 18 | fi | ||
| 48 | cd ${S} | 19 | cd ${S} |
| 49 | } | 20 | } |
| 50 | 21 | ||
| 51 | do_install() { | 22 | COMPATIBLE_MACHINE = "(ls1043a|ls1046a|ls2088a|ls1012afrdm|ls1088a)" |
| 52 | install -d ${D}/boot/ | ||
| 53 | install ${S}/${PPA_PATH}/build/obj/ppa.itb ${D}/boot/${PPA_NAME}.itb | ||
| 54 | ln -sfT ${PPA_NAME}.itb ${D}/boot/ppa.itb | ||
| 55 | } | ||
| 56 | |||
| 57 | do_deploy(){ | ||
| 58 | install -d ${DEPLOYDIR} | ||
| 59 | install ${S}/${PPA_PATH}/build/obj/ppa.itb ${DEPLOYDIR}/${PPA_NAME}.itb | ||
| 60 | ln -sfT ${PPA_NAME}.itb ${DEPLOYDIR}/ppa.itb | ||
| 61 | } | ||
| 62 | addtask deploy before do_build after do_install | ||
| 63 | |||
| 64 | PACKAGES += "${PN}-image" | ||
| 65 | FILES_${PN}-image += "/boot" | ||
| 66 | |||
| 67 | CLEANBROKEN = "1" | ||
| 68 | PARALLEL_MAKE = "" | ||
| 69 | COMPATIBLE_MACHINE = "(ls1043a|ls1046a|ls2088a|ls1012a|ls1088a)" | ||
| 70 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
