diff options
Diffstat (limited to 'meta/recipes-core/meta/meta-ide-support.bb')
-rw-r--r-- | meta/recipes-core/meta/meta-ide-support.bb | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb index 768f6f4bb6..d85aa120c0 100644 --- a/meta/recipes-core/meta/meta-ide-support.bb +++ b/meta/recipes-core/meta/meta-ide-support.bb | |||
@@ -2,14 +2,39 @@ SUMMARY = "Integrated Development Environment support" | |||
2 | DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE" | 2 | DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE" |
3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
4 | 4 | ||
5 | DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native cmake-native" | 5 | DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native cmake-native autoconf-native automake-native meson-native intltool-native pkgconfig-native" |
6 | PR = "r3" | ||
7 | RM_WORK_EXCLUDE += "${PN}" | 6 | RM_WORK_EXCLUDE += "${PN}" |
8 | 7 | ||
9 | inherit meta toolchain-scripts nopackages | 8 | inherit toolchain-scripts nopackages deploy testsdk |
9 | |||
10 | TESTSDK_CLASS_NAME = "oeqa.sdk.testmetaidesupport.TestSDK" | ||
10 | 11 | ||
11 | do_populate_ide_support () { | 12 | do_populate_ide_support () { |
12 | toolchain_create_tree_env_script | 13 | toolchain_create_tree_env_script |
13 | } | 14 | } |
14 | 15 | ||
15 | addtask populate_ide_support before do_build after do_install | 16 | python () { |
17 | sitefiles, searched = siteinfo_get_files(d, sysrootcache=False) | ||
18 | d.setVar("CONFIG_SITE", " ".join(sitefiles)) | ||
19 | d.appendVarFlag("do_populate_ide_support", "file-checksums", " " + " ".join(searched)) | ||
20 | } | ||
21 | |||
22 | addtask populate_ide_support before do_deploy after do_install | ||
23 | |||
24 | python do_write_test_data() { | ||
25 | from oe.data import export2json | ||
26 | |||
27 | out_dir = d.getVar('B') | ||
28 | testdata_name = os.path.join(out_dir, "%s.testdata.json" % d.getVar('PN')) | ||
29 | |||
30 | export2json(d, testdata_name) | ||
31 | } | ||
32 | addtask write_test_data before do_deploy after do_install | ||
33 | |||
34 | do_deploy () { | ||
35 | install ${B}/* ${DEPLOYDIR} | ||
36 | } | ||
37 | |||
38 | addtask deploy before do_build | ||
39 | |||
40 | do_build[deptask] += "do_prepare_recipe_sysroot" | ||