diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-10 14:55:23 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 12:15:42 +0000 |
commit | b772c8cde5a8d53de5588ff5d2771c1bd3eb259f (patch) | |
tree | 60251b8473d901544fb39acae4d0b9b780e81575 /meta/classes/base.bbclass | |
parent | 6c92cfc02014a55c4d3a40d70ff29308ad6255e7 (diff) | |
download | poky-b772c8cde5a8d53de5588ff5d2771c1bd3eb259f.tar.gz |
bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot
This change makes the purpose of the staging directory more obvious and
the taskname more true to what it now actually does.
The layout version number is increased due to the change in layout
but code to convert existing directories and insert a symlink for
backwards compatibility is included.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 053d80f6fd..a37949c7d4 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -890,7 +890,7 @@ python base_eventhandler() { | |||
890 | 890 | ||
891 | addtask configure after do_unpack do_patch | 891 | addtask configure after do_unpack do_patch |
892 | do_configure[dirs] = "${S} ${B}" | 892 | do_configure[dirs] = "${S} ${B}" |
893 | do_configure[deptask] = "do_populate_staging" | 893 | do_configure[deptask] = "do_populate_sysroot" |
894 | base_do_configure() { | 894 | base_do_configure() { |
895 | : | 895 | : |
896 | } | 896 | } |
@@ -978,26 +978,26 @@ def is_legacy_staging(d): | |||
978 | legacy = True | 978 | legacy = True |
979 | return legacy | 979 | return legacy |
980 | 980 | ||
981 | do_populate_staging[dirs] = "${STAGING_DIR_TARGET}/${bindir} ${STAGING_DIR_TARGET}/${libdir} \ | 981 | do_populate_sysroot[dirs] = "${STAGING_DIR_TARGET}/${bindir} ${STAGING_DIR_TARGET}/${libdir} \ |
982 | ${STAGING_DIR_TARGET}/${includedir} \ | 982 | ${STAGING_DIR_TARGET}/${includedir} \ |
983 | ${STAGING_BINDIR_NATIVE} ${STAGING_LIBDIR_NATIVE} \ | 983 | ${STAGING_BINDIR_NATIVE} ${STAGING_LIBDIR_NATIVE} \ |
984 | ${STAGING_INCDIR_NATIVE} \ | 984 | ${STAGING_INCDIR_NATIVE} \ |
985 | ${STAGING_DATADIR} \ | 985 | ${STAGING_DATADIR} \ |
986 | ${S} ${B}" | 986 | ${S} ${B}" |
987 | 987 | ||
988 | # Could be compile but populate_staging and do_install shouldn't run at the same time | 988 | # Could be compile but populate_sysroot and do_install shouldn't run at the same time |
989 | addtask populate_staging after do_install | 989 | addtask populate_sysroot after do_install |
990 | 990 | ||
991 | PSTAGING_ACTIVE = "0" | 991 | PSTAGING_ACTIVE = "0" |
992 | SYSROOT_PREPROCESS_FUNCS ?= "" | 992 | SYSROOT_PREPROCESS_FUNCS ?= "" |
993 | SYSROOT_DESTDIR = "${WORKDIR}/sysroot-destdir/" | 993 | SYSROOT_DESTDIR = "${WORKDIR}/sysroot-destdir/" |
994 | SYSROOT_LOCK = "${STAGING_DIR}/staging.lock" | 994 | SYSROOT_LOCK = "${STAGING_DIR}/staging.lock" |
995 | 995 | ||
996 | python populate_staging_prehook () { | 996 | python populate_sysroot_prehook () { |
997 | return | 997 | return |
998 | } | 998 | } |
999 | 999 | ||
1000 | python populate_staging_posthook () { | 1000 | python populate_sysroot_posthook () { |
1001 | return | 1001 | return |
1002 | } | 1002 | } |
1003 | 1003 | ||
@@ -1005,7 +1005,7 @@ packagedstaging_fastpath () { | |||
1005 | : | 1005 | : |
1006 | } | 1006 | } |
1007 | 1007 | ||
1008 | python do_populate_staging () { | 1008 | python do_populate_sysroot () { |
1009 | # | 1009 | # |
1010 | # if do_stage exists, we're legacy. In that case run the do_stage, | 1010 | # if do_stage exists, we're legacy. In that case run the do_stage, |
1011 | # modify the SYSROOT_DESTDIR variable and then run the staging preprocess | 1011 | # modify the SYSROOT_DESTDIR variable and then run the staging preprocess |
@@ -1023,10 +1023,10 @@ python do_populate_staging () { | |||
1023 | bb.note("Legacy staging mode for %s" % bb.data.getVar("FILE", d, True)) | 1023 | bb.note("Legacy staging mode for %s" % bb.data.getVar("FILE", d, True)) |
1024 | lock = bb.utils.lockfile(lockfile) | 1024 | lock = bb.utils.lockfile(lockfile) |
1025 | bb.build.exec_func('do_stage', d) | 1025 | bb.build.exec_func('do_stage', d) |
1026 | bb.build.exec_func('populate_staging_prehook', d) | 1026 | bb.build.exec_func('populate_sysroot_prehook', d) |
1027 | for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split(): | 1027 | for f in (bb.data.getVar('SYSROOT_PREPROCESS_FUNCS', d, True) or '').split(): |
1028 | bb.build.exec_func(f, d) | 1028 | bb.build.exec_func(f, d) |
1029 | bb.build.exec_func('populate_staging_posthook', d) | 1029 | bb.build.exec_func('populate_sysroot_posthook', d) |
1030 | bb.utils.unlockfile(lock) | 1030 | bb.utils.unlockfile(lock) |
1031 | else: | 1031 | else: |
1032 | dest = bb.data.getVar('D', d, True) | 1032 | dest = bb.data.getVar('D', d, True) |
@@ -1057,7 +1057,7 @@ base_do_package() { | |||
1057 | : | 1057 | : |
1058 | } | 1058 | } |
1059 | 1059 | ||
1060 | addtask build after do_populate_staging | 1060 | addtask build after do_populate_sysroot |
1061 | do_build = "" | 1061 | do_build = "" |
1062 | do_build[func] = "1" | 1062 | do_build[func] = "1" |
1063 | 1063 | ||
@@ -1109,19 +1109,19 @@ def base_after_parse(d): | |||
1109 | srcuri = bb.data.getVar('SRC_URI', d, 1) | 1109 | srcuri = bb.data.getVar('SRC_URI', d, 1) |
1110 | if "git://" in srcuri: | 1110 | if "git://" in srcuri: |
1111 | depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" | 1111 | depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" |
1112 | depends = depends + " git-native:do_populate_staging" | 1112 | depends = depends + " git-native:do_populate_sysroot" |
1113 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) | 1113 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) |
1114 | 1114 | ||
1115 | # Mercurial packages should DEPEND on mercurial-native | 1115 | # Mercurial packages should DEPEND on mercurial-native |
1116 | elif "hg://" in srcuri: | 1116 | elif "hg://" in srcuri: |
1117 | depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" | 1117 | depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" |
1118 | depends = depends + " mercurial-native:do_populate_staging" | 1118 | depends = depends + " mercurial-native:do_populate_sysroot" |
1119 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) | 1119 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) |
1120 | 1120 | ||
1121 | # OSC packages should DEPEND on osc-native | 1121 | # OSC packages should DEPEND on osc-native |
1122 | elif "osc://" in srcuri: | 1122 | elif "osc://" in srcuri: |
1123 | depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" | 1123 | depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" |
1124 | depends = depends + " osc-native:do_populate_staging" | 1124 | depends = depends + " osc-native:do_populate_sysroot" |
1125 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) | 1125 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) |
1126 | 1126 | ||
1127 | # bb.utils.sha256_file() will fail if hashlib isn't present, so we fallback | 1127 | # bb.utils.sha256_file() will fail if hashlib isn't present, so we fallback |
@@ -1131,7 +1131,7 @@ def base_after_parse(d): | |||
1131 | import hashlib | 1131 | import hashlib |
1132 | except ImportError: | 1132 | except ImportError: |
1133 | depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" | 1133 | depends = bb.data.getVarFlag('do_fetch', 'depends', d) or "" |
1134 | depends = depends + " shasum-native:do_populate_staging" | 1134 | depends = depends + " shasum-native:do_populate_sysroot" |
1135 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) | 1135 | bb.data.setVarFlag('do_fetch', 'depends', depends, d) |
1136 | 1136 | ||
1137 | # 'multimachine' handling | 1137 | # 'multimachine' handling |