diff options
author | Michael Lauer <mickey@vanille-media.de> | 2004-08-05 11:35:30 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2004-08-05 11:35:30 +0000 |
commit | 9e07751bbfff494a3e3ea1b622112cfcffe69a69 (patch) | |
tree | be556d23c4fa9425642e4233ae6ae90e11210436 /classes | |
parent | 6ac49090d6253e542ecb58a3a051ca344a68ba9e (diff) |
add module-base which sets variables. module now inherits module-base. inherit module-base when you build packages which need to know about kernel variables.
BKrev: 41121b82qghzmTY7limvubwIaCIvkQ
Diffstat (limited to 'classes')
-rw-r--r-- | classes/module-base.oeclass | 0 | ||||
-rw-r--r-- | classes/module.oeclass | 12 |
2 files changed, 1 insertions, 11 deletions
diff --git a/classes/module-base.oeclass b/classes/module-base.oeclass new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/classes/module-base.oeclass diff --git a/classes/module.oeclass b/classes/module.oeclass index 68291b2918..53ca7d1929 100644 --- a/classes/module.oeclass +++ b/classes/module.oeclass @@ -1,17 +1,7 @@ RDEPENDS_append = " kernel (${KERNEL_VERSION})" DEPENDS_append = " virtual/kernel" -export ARCH = "${TARGET_ARCH}" -export OS = "${TARGET_OS}" -export CROSS_COMPILE = "${TARGET_PREFIX}" - - -export KERNEL_VERSION = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-abiversion')} -export KERNEL_SOURCE = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-source')} -KERNEL_CCSUFFIX = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-ccsuffix')} -KERNEL_LDSUFFIX = ${@base_read_file('${STAGING_DIR}/${HOST_SYS}/kernel/kernel-ldsuffix')} -KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX}" -KERNEL_LD = "${LD}${KERNEL_LDSUFFIX}" +inherit module-base module_do_compile() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |