diff options
| author | Ivan Pang <i-pang@ti.com> | 2017-08-01 11:45:06 +0000 |
|---|---|---|
| committer | Denys Dmytriyenko <denys@ti.com> | 2017-08-22 16:04:34 -0400 |
| commit | a2b08fd2617324535b13ed929acef0e791ad6446 (patch) | |
| tree | d8a73800b6d011dc5f9006439f7c6dae009a5137 /recipes-bsp/ibl-boot | |
| parent | d44d83fd8d540f163fb70297b1cf3d2947ffb393 (diff) | |
| download | meta-ti-a2b08fd2617324535b13ed929acef0e791ad6446.tar.gz | |
ibl-boot-rtos: added recipe for RTOS IBL
This recipe adds the Intermediate Bootloader (IBL) for c665x-evm
and c667x-evm.
Signed-off-by: Ivan Pang <i-pang@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/ibl-boot')
| -rw-r--r-- | recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb b/recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb new file mode 100644 index 00000000..ed30ef45 --- /dev/null +++ b/recipes-bsp/ibl-boot/ibl-boot-rtos_git.bb | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | SUMMARY = "Second stage bootloader for c66x" | ||
| 2 | DESCRIPTION = "The Intermediate Bootloader (IBL) is a second stage \ | ||
| 3 | bootloader for the c66x family of embedded processors. This second \ | ||
| 4 | stage bootloader takes care of additional initializations, advisory \ | ||
| 5 | setups, and errata workarounds that are not present in the first stage boot." | ||
| 6 | |||
| 7 | LICENSE = "BSD-3-Clause" | ||
| 8 | LIC_FILES_CHKSUM = "file://src/ibl.h;beginline=1;endline=34;md5=ee7d7a3305d1e524955996d1c5e31cb9" | ||
| 9 | |||
| 10 | require recipes-ti/includes/ti-paths.inc | ||
| 11 | |||
| 12 | DEPENDS = "ti-cgt6x-7-native" | ||
| 13 | |||
| 14 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 15 | COMPATIBLE_MACHINE = "c66x" | ||
| 16 | |||
| 17 | BRANCH = "master" | ||
| 18 | SRC_URI = "git://git.ti.com/keystone-rtos/ibl.git;protocol=git;branch=${BRANCH}" | ||
| 19 | SRCREV = "f7ed32cc8911e3353dd01080da9b725b44a12285" | ||
| 20 | PR = "r0" | ||
| 21 | |||
| 22 | S = "${WORKDIR}/git" | ||
| 23 | |||
| 24 | PATH_prepend = "${TI_CGT6X_7_INSTALL_DIR}/bin:" | ||
| 25 | |||
| 26 | IBLTARGETS = "" | ||
| 27 | IBLTARGETS_c665x-evm = "evm_c6657_i2c" | ||
| 28 | IBLTARGETS_c667x-evm = "evm_c6678_i2c" | ||
| 29 | |||
| 30 | IBLENDIAN = "" | ||
| 31 | IBLENDIAN_c665x-evm = "little big" | ||
| 32 | IBLENDIAN_c667x-evm = "little big" | ||
| 33 | |||
| 34 | export C6X_BASE_DIR="${TI_CGT6X_7_INSTALL_DIR}" | ||
| 35 | export TOOLSC6X="${C6X_BASE_DIR}" | ||
| 36 | export TOOLSC6XDOS="${C6X_BASE_DIR}" | ||
| 37 | export TOOLSBIOSC6XDOS="${C6X_BASE_DIR}" | ||
| 38 | export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages" | ||
| 39 | |||
| 40 | do_compile() { | ||
| 41 | cd src/make | ||
| 42 | for t in ${IBLTARGETS} | ||
| 43 | do | ||
| 44 | for e in ${IBLENDIAN} | ||
| 45 | do | ||
| 46 | make ${t} ENDIAN=${e} I2C_BUS_ADDR=0x51 | ||
| 47 | done | ||
| 48 | done | ||
| 49 | cd - | ||
| 50 | } | ||
| 51 | |||
| 52 | do_install() { | ||
| 53 | install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/ibl | ||
| 54 | cp -rP --preserve=mode,links,timestamps --no-preserve=ownership * ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/boot/ibl | ||
| 55 | } | ||
| 56 | |||
| 57 | FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages" | ||
| 58 | |||
| 59 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 60 | INHIBIT_SYSROOT_STRIP = "1" | ||
| 61 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 62 | |||
| 63 | INSANE_SKIP_${PN} = "arch file-rdeps" | ||
