slugos-imagename: added to ensure distro-specific images still build in slugos-imagen...
authorJohn Bowler <jbowler@nslu2-linux.org>
Fri, 13 Jan 2006 00:12:55 +0000 (00:12 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 13 Jan 2006 00:12:55 +0000 (00:12 +0000)
packages/meta/slugos-image.bb
packages/meta/slugos-imagename.bb [new file with mode: 0644]

index c01ab6c..1fa67bb 100644 (file)
@@ -5,7 +5,6 @@
 #
 LICENSE = "MIT"
 PR = "r19"
-PROVIDES += "${SLUGOS_IMAGENAME}-image"
 
 # SLUGOS_IMAGENAME defines the name of the image to be build, if it
 # is not set this package will be skipped!
diff --git a/packages/meta/slugos-imagename.bb b/packages/meta/slugos-imagename.bb
new file mode 100644 (file)
index 0000000..dfca396
--- /dev/null
@@ -0,0 +1,33 @@
+# This is an inglorious hack to provide a package to match
+# ${SLUGOS_IMAGENAME}-image
+MAINTAINER = "John Bowler <jbowler@acm.org>
+PN = "${SLUGOS_IMAGENAME}-image"
+PV = "0"
+PR = "r0"
+DEPENDS = "slugos-image"
+PACKAGES = ""
+INHIBIT_DEFAULT_DEPS = "1"
+
+do_fetch() {
+}
+do_unpack() {
+}
+do_patch() {
+}
+do_configure() {
+}
+do_compile() {
+}
+do_install() {
+}
+do_stage() {
+}
+do_build() {
+}
+
+python () {
+       # Don't build slugos images unless the configuration is set up
+       # for an image build!
+       if bb.data.getVar("SLUGOS_IMAGENAME", d, 1) == '':
+               raise bb.parse.SkipPackage("absent SlugOS configuration")
+}