Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | SUMMARY = "Extensible SDK toolchain meta-recipe" |
| 2 | DESCRIPTION = "Meta-recipe for ensuring the build directory contains all appropriate toolchain packages for using an IDE" |
| 3 | LICENSE = "MIT" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 4 | |
| 5 | DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native" |
| 6 | |
| 7 | do_populate_sysroot[deptask] = "do_populate_sysroot" |
| 8 | |
| 9 | # NOTE: There is logic specific to this recipe in setscene_depvalid() |
| 10 | # within sstate.bbclass, so if you copy or rename this and expect the same |
| 11 | # functionality you'll need to modify that as well. |
| 12 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 13 | LOCKED_SIGS_INDIR = "${WORKDIR}/locked-sigs" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 14 | |
| 15 | addtask do_locked_sigs after do_populate_sysroot |
| 16 | SSTATETASKS += "do_locked_sigs" |
| 17 | do_locked_sigs[sstate-inputdirs] = "${LOCKED_SIGS_INDIR}" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 18 | do_locked_sigs[sstate-outputdirs] = "${STAGING_DIR}/${PACKAGE_ARCH}/${PN}/locked-sigs" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 19 | |
| 20 | python do_locked_sigs() { |
| 21 | import oe.copy_buildsystem |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 22 | outdir = os.path.join(d.getVar('LOCKED_SIGS_INDIR')) |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 23 | bb.utils.mkdirhier(outdir) |
| 24 | sigfile = os.path.join(outdir, 'locked-sigs-extsdk-toolchain.inc') |
| 25 | oe.copy_buildsystem.generate_locked_sigs(sigfile, d) |
| 26 | } |