From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH 1/2] kernel.bbclass: Sync with oe-core
Date: Sat, 02 Jul 2011 22:35:40 +0200 [thread overview]
Message-ID: <iunves$mg5$1@dough.gmane.org> (raw)
In-Reply-To: <1309564608-32683-1-git-send-email-raj.khem@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This one is already in in a different form :)
Op 02-07-11 01:56, Khem Raj schreef:
> This syncs the class with oe-core after 3.0 changes
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com> ---
> meta-oe/classes/kernel.bbclass | 22 ++++++---------------- 1 files
> changed, 6 insertions(+), 16 deletions(-)
>
> diff --git a/meta-oe/classes/kernel.bbclass
> b/meta-oe/classes/kernel.bbclass index 2d051f4..9043b4e 100644 ---
> a/meta-oe/classes/kernel.bbclass +++
> b/meta-oe/classes/kernel.bbclass @@ -1,7 +1,7 @@ inherit
> linux-kernel-base module_strip
>
> PROVIDES += "virtual/kernel" -DEPENDS += "virtual/${TARGET_PREFIX}gcc
> virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')}
> virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
> +DEPENDS += "virtual/${TARGET_PREFIX}gcc
> virtual/${TARGET_PREFIX}depmod
> virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
>
> # we include gcc above, we dont need virtual/libc
> INHIBIT_DEFAULT_DEPS = "1" @@ -65,7 +65,6 @@ KERNEL_IMAGEDEST =
> "boot" export CMDLINE_CONSOLE =
> "console=${@bb.data.getVar("KERNEL_CONSOLE",d,1) or "ttyS0"}"
>
> KERNEL_VERSION = "${@get_kernelversion('${B}')}"
> -KERNEL_MAJOR_VERSION =
> "${@get_kernelmajorversion('${KERNEL_VERSION}')}"
>
> KERNEL_LOCALVERSION ?= ""
>
> @@ -85,9 +84,6 @@ KERNEL_ALT_IMAGETYPE ??= "" kernel_do_compile() {
> unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE oe_runmake
> include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" - if [
> "${KERNEL_MAJOR_VERSION}" != "2.6" ]; then - oe_runmake dep
> CC="${KERNEL_CC}" LD="${KERNEL_LD}" - fi oe_runmake
> ${KERNEL_IMAGETYPE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}"
> LD="${KERNEL_LD}" }
>
> @@ -123,9 +119,7 @@ kernel_do_install() { install -m 0644 vmlinux
> ${D}/boot/vmlinux-${KERNEL_VERSION} [ -e Module.symvers ] && install
> -m 0644 Module.symvers ${D}/boot/Module.symvers-${KERNEL_VERSION}
> install -d ${D}/etc/modutils - if [ "${KERNEL_MAJOR_VERSION}" = "2.6"
> ]; then - install -d ${D}/etc/modprobe.d - fi + install -d
> ${D}/etc/modprobe.d
>
> # # Support for external module building - create a minimal copy of
> the @@ -267,7 +261,7 @@ if [ ! -e "$D/lib/modules/${KERNEL_VERSION}"
> ]; then mkdir -p $D/lib/modules/${KERNEL_VERSION} fi if [ -n "$D" ];
> then - ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F
> ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
> + ${HOST_PREFIX}depmod -A -b $D -F
> ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
> else depmod -a fi @@ -275,7 +269,7 @@ fi
>
> pkg_postinst_modules () { if [ -n "$D" ]; then -
> ${HOST_PREFIX}depmod-${KERNEL_MAJOR_VERSION} -A -b $D -F
> ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
> + ${HOST_PREFIX}depmod -A -b $D -F
> ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
> else depmod -a update-modules || true @@ -348,9 +342,8 @@ python
> populate_packages_prepend () { kernelver_stripped = m.group(1) path =
> bb.data.getVar("PATH", d, 1) host_prefix =
> bb.data.getVar("HOST_PREFIX", d, 1) or "" - major_version =
> bb.data.getVar('KERNEL_MAJOR_VERSION', d, 1)
>
> - cmd = "PATH=\"%s\" %sdepmod-%s -n -a -r -b %s -F
> %s/boot/System.map-%s %s" % (path, host_prefix, major_version, dvar,
> dvar, kernelver, kernelver_stripped) + cmd = "PATH=\"%s\" %sdepmod
> -n -a -r -b %s -F %s/boot/System.map-%s %s" % (path, host_prefix,
> dvar, dvar, kernelver, kernelver_stripped) f = os.popen(cmd, 'r')
>
> deps = {} @@ -427,10 +420,7 @@ python populate_packages_prepend () {
> # Write out any modconf fragment modconf =
> bb.data.getVar('module_conf_%s' % basename, d, 1) if modconf: - if
> bb.data.getVar("KERNEL_MAJOR_VERSION", d, 1) == "2.6": - name =
> '%s/etc/modprobe.d/%s.conf' % (dvar, basename) - else: - name =
> '%s/etc/modutils/%s.conf' % (dvar, basename) + name =
> '%s/etc/modprobe.d/%s.conf' % (dvar, basename) f = open(name, 'w')
> f.write("%s\n" % modconf) f.close()
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFOD4EcMkyGM64RGpERAuv3AKCfkCXcHOT/ywgr88l5A9liAqsUowCfUEpA
Vfo6alYXSY6njroProtZHnc=
=0RMq
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2011-07-02 20:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-01 23:56 [meta-oe][PATCH 1/2] kernel.bbclass: Sync with oe-core Khem Raj
2011-07-01 23:56 ` [meta-oe][PATCH 2/2] gcc-4.5: Edit defaults.h in ${B} instead of ${S}, and t-oe in ${B} Khem Raj
2011-07-02 20:35 ` Koen Kooi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='iunves$mg5$1@dough.gmane.org' \
--to=koen@dominion.thruhere.net \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.