summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-09-01 16:57:37 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-09-01 16:57:37 +0000
commit344ad5e784560c0e88bc8c73ee6fcc2d96e1f56d (patch)
tree843a62ecd70db7072b81409f41995d16b8158ff1 /classes
parent3f5c5adb8df219b69ad3a3788eee3a6384c249a0 (diff)
images: Clean up image .bb files, moving functionality to image.bbclass (LICENCE default, setup of RDEPENDS and default IMAGE_BASENAME)
Diffstat (limited to 'classes')
-rw-r--r--classes/image.bbclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 38e19df7eb..c1eaf9ffe2 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -1,6 +1,11 @@
inherit rootfs_${IMAGE_PKGTYPE}
+LICENSE = "MIT"
PACKAGES = ""
+RDEPENDS += "${IMAGE_INSTALL}"
+
+export IMAGE_BASENAME ?= "${PN}"
+export PACKAGE_INSTALL ?= "${IMAGE_INSTALL}"
# We need to recursively follow RDEPENDS and RRECOMMENDS for images
do_rootfs[recrdeptask] = "do_package_write do_deploy do_populate_staging"
@@ -50,15 +55,14 @@ def get_devtable_list(d):
return str
IMAGE_POSTPROCESS_COMMAND ?= ""
+MACHINE_POSTPROCESS_COMMAND ?= ""
+ROOTFS_POSTPROCESS_COMMAND ?= ""
# some default locales
IMAGE_LINGUAS ?= "de-de fr-fr en-gb"
LINGUAS_INSTALL = "${@" ".join(map(lambda s: "locale-base-%s" % s, bb.data.getVar('IMAGE_LINGUAS', d, 1).split()))}"
-ROOTFS_POSTPROCESS_COMMAND ?= ""
-MACHINE_POSTPROCESS_COMMAND ?= ""
-
do_rootfs[nostamp] = "1"
do_rootfs[dirs] = "${TOPDIR}"
do_build[nostamp] = "1"