Linux 3.0 build support
v2 cover Linux 3.0 build support
v2: Probably some more patches could be squashed together. There might also
be more places that should be addressed in these patches.
- Whitespace fixes
- Updated module-init-tools to 3.16. I'm not applying the ignore*.patch (it didn't apply).
- Do not provide virtual/*/depmod-2.6; just provide virtual/*/depmod.
- Do only install as depmod.
- Rearrange the order of some patches.
- Added patches to clean up (partly) task-base, distro_tracking_fields.
A few of the patches might be ready to pull, but the majority will need to be revised.
===============
This work is unfinished and incomplete...
It is published in its current form both to get feedback, but also to aid anyone else who is working on 3.0-support. If some of the patches are found to be OK, it's fine to cherrypick them.
The kernel-related classes has been modified to build a 3.0 kernel. The patches has been simplified by removing support for the 2.4-series. (The latter was suggested in an older mail thread:
http://www.mail-archive.com/[email protected]/msg02682.html
).
The patches has been tested on linux-yocto_2.6.37 and a hacked version using the linux-yocto-dev repository (using a 3.0-rcX). The latest versions has only been built for qemuarm, prior iterations has also been built for qemux86.
Finally, no work has been done on the libc-linux-headers classes and recipes.
/Anders
Please review the following changes for suitability for inclusion. If you have any objections or suggestions for improvement, please respond to the patches. If you agree with the changes, please provide your Acked-by.
The following changes since commit 3aec2fa2df9aaa883feda0d7aed85e63d01398b9:
qemuimagetest: update cvs and iptables to newer version for toolchain test (2011-06-24 11:28:28 +0100)
are available in the git repository at:
git://github.com/darander/oe-core kernel-3.0
https://github.com/darander/oe-core/tree/kernel-3.0
Anders Darander (9):
Remove support for building 2.4 kernels image¡kernel.bblass: do not use depmod-2.6 modules-init-tools(-cross): update to 3.16
module-init-tools-cross: do not install depmod as depmod-2.6 kernel.bblass: remove get_kernelmajorversion
modutils-initscripts: move recipe prior to modutils removal
modutils: remove modutils
task-base: remove modutils reference.
distro_tracking_fields: remove modutils.
meta/classes/image.bbclass | 2 +-
meta/classes/kernel.bbclass | 22 ++----
meta/classes/linux-kernel-base.bbclass | 8 --
meta/classes/module-base.bbclass | 2 +-
.../conf/distro/include/distro_tracking_fields.inc | 8 +--
meta/recipes-core/tasks/task-base.bb | 22 +----
.../{modutils => module-init-tools}/files/PD.patch | 0
.../files/modutils.sh | 0
.../module-init-tools-cross_3.12.bb | 12 ---
.../module-init-tools-cross_3.16.bb | 8 ++
.../module-init-tools/module-init-tools.inc | 1 -
...nit-tools_3.12.bb => module-init-tools_3.16.bb} | 6 +-
.../modutils-initscripts.bb | 0
meta/recipes-kernel/modutils/files/armeb.patch | 16 ----
meta/recipes-kernel/modutils/files/configure.patch | 34 -------
meta/recipes-kernel/modutils/files/gcc4.patch | 93 --------------------
meta/recipes-kernel/modutils/files/lex.l.diff | 35 --------
.../modutils/files/modutils-notest.patch | 16 ----
.../modutils/files/program_prefix.patch | 71 ---------------
.../recipes-kernel/modutils/modutils-collateral.bb | 21 -----
.../modutils/modutils-cross/module.h.diff | 35 --------
.../modutils/modutils-cross_2.4.27.bb | 20 ----
meta/recipes-kernel/modutils/modutils_2.4.27.bb | 93 --------------------
23 files changed, 25 insertions(+), 500 deletions(-)
rename meta/recipes-kernel/{modutils => module-init-tools}/files/PD.patch (100%)
rename meta/recipes-kernel/{modutils => module-init-tools}/files/modutils.sh (100%)
delete mode 100644 meta/recipes-kernel/module-init-tools/module-init-tools-cross_3.12.bb
create mode 100644 meta/recipes-kernel/module-init-tools/module-init-tools-cross_3.16.bb
rename meta/recipes-kernel/module-init-tools/{module-init-tools_3.12.bb => module-init-tools_3.16.bb} (87%)
rename meta/recipes-kernel/{modutils => module-init-tools}/modutils-initscripts.bb (100%)
delete mode 100644 meta/recipes-kernel/modutils/files/armeb.patch
delete mode 100644 meta/recipes-kernel/modutils/files/configure.patch
delete mode 100644 meta/recipes-kernel/modutils/files/gcc4.patch
delete mode 100644 meta/recipes-kernel/modutils/files/lex.l.diff
delete mode 100644 meta/recipes-kernel/modutils/files/modules
delete mode 100644 meta/recipes-kernel/modutils/files/modules.conf
delete mode 100644 meta/recipes-kernel/modutils/files/modutils-notest.patch
delete mode 100644 meta/recipes-kernel/modutils/files/program_prefix.patch
delete mode 100644 meta/recipes-kernel/modutils/modutils-collateral.bb
delete mode 100644 meta/recipes-kernel/modutils/modutils-cross/module.h.diff
delete mode 100644 meta/recipes-kernel/modutils/modutils-cross_2.4.27.bb
delete mode 100644 meta/recipes-kernel/modutils/modutils_2.4.27.bbSignature · 1 line
1.7.4.1
RFC PATCH v2 1/9 Remove support for building 2.4 kernels
--- meta/classes/kernel.bbclass | 12 ++---------- meta/classes/module-base.bbclass | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-)
meta/classes/kernel.bbclass +2 -10
@@ -73,9 +73,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}" }
@@ -111,9 +108,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
@@ -397,10 +392,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()
meta/classes/module-base.bbclass +1 -1
@@ -7,7 +7,7 @@ export CROSS_COMPILE = "${TARGET_PREFIX}" export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}" export KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')}" -KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}" +KERNEL_OBJECT_SUFFIX = ".ko" KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}" KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}" KERNEL_ARSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-arsuffix')}"
Signature · 1 line
1.7.4.1
Re: [RFC v2 PATCH 1/9] Remove support for building 2.4 kernels
Hi Anders,
All seems to work for me. For anyone just dropping these on OE, note there is a local variable of kernel.bbclass that also needs updating as per this file in meta-openembedded/meta-oe/
Quoted 56 lines
Signed-off-by Anders Darander <[email protected]>--- meta/classes/kernel.bbclass | 12 ++---------- meta/classes/module-base.bbclass | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-)meta/classes/kernel.bbclass +2
-10@@ -73,9 +73,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}" }@@ -111,9 +108,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@@ -397,10 +392,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()meta/classes/module-base.bbclass +1
-1@@ -7,7 +7,7 @@ export CROSS_COMPILE = "${TARGET_PREFIX}" export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}" export KERNEL_SOURCE = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-source')}" -KERNEL_OBJECT_SUFFIX = "${@[".o", ".ko"][base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion') > "2.6.0"]}" +KERNEL_OBJECT_SUFFIX = ".ko" KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}" KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}" KERNEL_ARSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-arsuffix')}"
RFC PATCH v2 2/9 image¡kernel.bblass: do not use depmod-2.6
In reply to Anders DaranderChange to only depend on virtual/*/depmod.
Change all calls to only use depmod.
--- meta/classes/image.bbclass | 2 +- meta/classes/kernel.bbclass | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-)
meta/classes/image.bbclass +1 -1
@@ -114,7 +114,7 @@ fakeroot do_rootfs () { KERNEL_VERSION=`cat ${STAGING_KERNEL_DIR}/kernel-abiversion` mkdir -p ${IMAGE_ROOTFS}/lib/modules/$KERNEL_VERSION - ${TARGET_SYS}-depmod-2.6 -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION + ${TARGET_SYS}-depmod -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION fi ${IMAGE_PREPROCESS_COMMAND}
meta/classes/kernel.bbclass +4 -6
@@ -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"
@@ -53,7 +53,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 ?= ""
@@ -232,7 +231,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
@@ -240,7 +239,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
@@ -313,9 +312,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 = {}
Signature · 1 line
1.7.4.1
RFC PATCH v2 3/9 modules-init-tools(-cross): update to 3.16
In reply to Anders DaranderUpdate to get support for Linux 3.0.
Remove the application of ignore_arch_directory.patch, as this one do not apply. (A comment in the patch states "not sure the reason yet. Keep for a while and verify later.").
---
...oss_3.12.bb => module-init-tools-cross_3.16.bb} | 4 ++--
.../module-init-tools/module-init-tools.inc | 1 -
...nit-tools_3.12.bb => module-init-tools_3.16.bb} | 6 +++---
3 files changed, 5 insertions(+), 6 deletions(-)
rename meta/recipes-kernel/module-init-tools/{module-init-tools-cross_3.12.bb => module-init-tools-cross_3.16.bb} (74%)
rename meta/recipes-kernel/module-init-tools/{module-init-tools_3.12.bb => module-init-tools_3.16.bb} (87%)meta/recipes-kernel/module-init-tools/module-init-tools-cross_3.16.bb renamed from meta/recipes-kernel/module-init-tools/module-init-tools-cross_3.12.bb +2 -2
@@ -1,7 +1,7 @@ require module-init-tools.inc -PR = "r1" +PR = "r0" inherit cross -PROVIDES += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}depmod-2.6" +PROVIDES += "virtual/${TARGET_PREFIX}depmod" SRC_URI += "file://no-static-binaries.patch"
meta/recipes-kernel/module-init-tools/module-init-tools.inc +0 -1
@@ -12,7 +12,6 @@ FILES_module-init-tools-depmod = "${sbindir}/depmod.26" FILES_module-init-tools-insmod-static = "${sbindir}/insmod.static" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/module-init-tools/module-init-tools-${PV}.tar.bz2 \ - file://ignore_arch_directory.patch \ file://modutils_extension.patch \ file://disable_man.patch \ file://grab_module_memset.patch"
meta/recipes-kernel/module-init-tools/module-init-tools_3.16.bb renamed from meta/recipes-kernel/module-init-tools/module-init-tools_3.12.bb +3 -3
@@ -1,5 +1,5 @@ require module-init-tools.inc -PR = "r1" +PR = "r0" # autotools set prefix to /usr, however we want them in /bin and /sbin bindir = "/bin"
@@ -38,5 +38,5 @@ pkg_prerm_module-init-tools-depmod() { update-alternatives --remove depmod /sbin/depmod.26 } -SRC_URI[md5sum] = "8b2257ce9abef74c4a44d825d23140f3" -SRC_URI[sha256sum] = "d012ab07ea26721467a85a775f34747c1c8897e37f16bec5317d8a72ef8b4f17" +SRC_URI[md5sum] = "bc44832c6e41707b8447e2847d2019f5" +SRC_URI[sha256sum] = "e1f2cdcae64a8effc25e545a5e0bdaf312f816ebbcd0916e4e87450755fab64b"
Signature · 1 line
1.7.4.1
RFC PATCH v2 4/9 module-init-tools-cross: do not install depmod as depmod-2.6
In reply to Anders Darander--- .../module-init-tools-cross_3.16.bb | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
meta/recipes-kernel/module-init-tools/module-init-tools-cross_3.16.bb +0 -4
@@ -6,7 +6,3 @@ PROVIDES += "virtual/${TARGET_PREFIX}depmod" SRC_URI += "file://no-static-binaries.patch" EXTRA_OECONF_append = " --program-prefix=${TARGET_PREFIX}" - -do_install_append () { - mv ${D}${bindir}/${TARGET_PREFIX}depmod ${D}${bindir}/${TARGET_PREFIX}depmod-2.6 -}
Signature · 1 line
1.7.4.1
RFC PATCH v2 5/9 kernel.bblass: remove get_kernelmajorversion
In reply to Anders DaranderIt is now unused.
--- meta/classes/linux-kernel-base.bbclass | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-)
meta/classes/linux-kernel-base.bbclass +0 -8
@@ -24,14 +24,6 @@ def get_kernelversion(p): return m.group(1) return None -def get_kernelmajorversion(p): - import re - r = re.compile("([0-9]+\.[0-9]+).*") - m = r.match(p); - if m: - return m.group(1) - return None - def linux_module_packages(s, d): suffix = "" return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split()))
Signature · 1 line
1.7.4.1
RFC PATCH v2 6/9 modutils-initscripts: move recipe prior to modutils removal
In reply to Anders Darander---
.../{modutils => module-init-tools}/files/PD.patch | 0
.../files/modutils.sh | 0
.../modutils-initscripts.bb | 0
3 files changed, 0 insertions(+), 0 deletions(-)
rename meta/recipes-kernel/{modutils => module-init-tools}/files/PD.patch (100%)
rename meta/recipes-kernel/{modutils => module-init-tools}/files/modutils.sh (100%)
rename meta/recipes-kernel/{modutils => module-init-tools}/modutils-initscripts.bb (100%)meta/recipes-kernel/module-init-tools/files/PD.patch renamed from meta/recipes-kernel/modutils/files/PD.patch +0 -0
meta/recipes-kernel/module-init-tools/files/modutils.sh renamed from meta/recipes-kernel/modutils/files/modutils.sh +0 -0
meta/recipes-kernel/module-init-tools/modutils-initscripts.bb renamed from meta/recipes-kernel/modutils/modutils-initscripts.bb +0 -0
Signature · 1 line
1.7.4.1
RFC PATCH v2 7/9 modutils: remove modutils
In reply to Anders DaranderAs 2.4 support is being phased out, remove modutils.
--- meta/recipes-kernel/modutils/files/armeb.patch | 16 ---- meta/recipes-kernel/modutils/files/configure.patch | 34 ------- meta/recipes-kernel/modutils/files/gcc4.patch | 93 -------------------- meta/recipes-kernel/modutils/files/lex.l.diff | 35 -------- .../modutils/files/modutils-notest.patch | 16 ---- .../modutils/files/program_prefix.patch | 71 --------------- .../recipes-kernel/modutils/modutils-collateral.bb | 21 ----- .../modutils/modutils-cross/module.h.diff | 35 -------- .../modutils/modutils-cross_2.4.27.bb | 20 ---- meta/recipes-kernel/modutils/modutils_2.4.27.bb | 93 -------------------- 10 files changed, 0 insertions(+), 434 deletions(-) delete mode 100644 meta/recipes-kernel/modutils/files/armeb.patch delete mode 100644 meta/recipes-kernel/modutils/files/configure.patch delete mode 100644 meta/recipes-kernel/modutils/files/gcc4.patch delete mode 100644 meta/recipes-kernel/modutils/files/lex.l.diff delete mode 100644 meta/recipes-kernel/modutils/files/modules delete mode 100644 meta/recipes-kernel/modutils/files/modules.conf delete mode 100644 meta/recipes-kernel/modutils/files/modutils-notest.patch delete mode 100644 meta/recipes-kernel/modutils/files/program_prefix.patch delete mode 100644 meta/recipes-kernel/modutils/modutils-collateral.bb delete mode 100644 meta/recipes-kernel/modutils/modutils-cross/module.h.diff delete mode 100644 meta/recipes-kernel/modutils/modutils-cross_2.4.27.bb delete mode 100644 meta/recipes-kernel/modutils/modutils_2.4.27.bb
meta/recipes-kernel/modutils/files/armeb.patch deleted +0 -16
@@ -1,16 +0,0 @@ -Upstream-Status: Pending - ---- modutils-2.4.27/include/elf_arm.h.orig 2004-09-21 18:37:00.000000000 -0400 -+++ modutils-2.4.27/include/elf_arm.h 2004-09-21 18:38:18.000000000 -0400 -@@ -1,7 +1,11 @@ - /* Machine-specific elf macros for ARM. */ - - #define ELFCLASSM ELFCLASS32 -+#ifdef __ARMEB__ -+#define ELFDATAM ELFDATA2MSB -+#else - #define ELFDATAM ELFDATA2LSB -+#endif - - #define MATCH_MACHINE(x) (x == EM_ARM) -
meta/recipes-kernel/modutils/files/configure.patch deleted +0 -34
@@ -1,34 +0,0 @@ -Upstream-Status: Pending - -# -# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher -# - ---- modutils-2.4.25/./configure.in~configure -+++ modutils-2.4.25/./configure.in -@@ -1,4 +1,5 @@ --AC_INIT(insmod/insmod.c) -+AC_INIT -+AC_CONFIG_SRCDIR([insmod/insmod.c]) - AC_PREFIX_DEFAULT(/usr) - - # Canonical system uses CC_FOR_BUILD while Linux may use BUILDCC -@@ -15,7 +16,7 @@ - BUILDCC="$CC_FOR_BUILD" - export CC_FOR_BUILD - --AC_CANONICAL_SYSTEM -+AC_CANONICAL_TARGET([]) - - # Handle target_cpu for compatibility. - if test "$host_cpu" != "$target_cpu"; then -@@ -350,6 +351,7 @@ - fi - fi - --AC_OUTPUT(Makefile Makefile.common depmod/Makefile genksyms/Makefile -+AC_CONFIG_FILES([Makefile Makefile.common depmod/Makefile genksyms/Makefile - insmod/Makefile $kerneld_Makefiles obj/Makefile util/Makefile -- man/Makefile) -+ man/Makefile]) -+AC_OUTPUT
meta/recipes-kernel/modutils/files/gcc4.patch deleted +0 -93
93 lines not on this page · raw message
meta/recipes-kernel/modutils/files/lex.l.diff deleted +0 -35
@@ -1,35 +0,0 @@ -Upstream-Status: Pending - ---- modutils-2.4.26.orig/genksyms/lex.l -+++ modutils-2.4.26/genksyms/lex.l -@@ -130,6 +130,7 @@ - - static int suppress_type_lookup, dont_want_brace_phrase; - static struct string_list *next_node; -+ static int next_token = 0; - - int token, count = 0; - struct string_list *cur_node; -@@ -144,7 +145,12 @@ - } - - repeat: -- token = yylex1(); -+ if (next_token != 0) { -+ token = next_token; -+ next_token = 0; -+ } -+ else -+ token = yylex1(); - - if (token == 0) - return 0; -@@ -425,7 +431,7 @@ - { - /* Put back the token we just read so's we can find it again - after registering the expression. */ -- unput(token); -+ next_token = token; - - lexstate = ST_NORMAL; - token = EXPRESSION_PHRASE;
meta/recipes-kernel/modutils/files/modules deleted +0 -0
meta/recipes-kernel/modutils/files/modules.conf deleted +0 -0
meta/recipes-kernel/modutils/files/modutils-notest.patch deleted +0 -16
@@ -1,16 +0,0 @@ -This test disables the annoying - Note: /etc/modules.conf is more recent than /lib/modules/2.4.19-rmk6-pxa1/modules.dep -message. - -Upstream-Status: Inappropriate [disable feature] - ---- modutils-2.4.6/insmod/modprobe.c~notest Mon Feb 26 02:07:17 2001 -+++ modutils-2.4.6/insmod/modprobe.c Wed Feb 19 14:31:52 2003 -@@ -785,7 +785,6 @@ - return -1; - } - --#define EXTREMELY_CAUTIOUS - #ifdef EXTREMELY_CAUTIOUS - if (fstat(fileno(fin), &statbuf) != 0) - error("Could not stat %s", depfile);
meta/recipes-kernel/modutils/files/program_prefix.patch deleted +0 -71
71 lines not on this page · raw message
meta/recipes-kernel/modutils/modutils-collateral.bb deleted +0 -21
@@ -1,21 +0,0 @@ -SECTION = "base" -DESCRIPTION = "modutils configuration files" -PR = "r3" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" -SRC_URI = "file://modules \ - file://modules.conf" - -do_compile () { -} - -do_install () { - install -d ${D}${sysconfdir} - install -m 0644 ${WORKDIR}/modules ${D}${sysconfdir}/modules - if [ ${MAJOR_KERNEL_VERSION}=2.6 ]; then - install -d ${D}${sysconfdir}/modprobe.d - else - install -m 0644 ${WORKDIR}/modules.conf ${D}${sysconfdir}/modules.conf - fi - -}
meta/recipes-kernel/modutils/modutils-cross/module.h.diff deleted +0 -35
@@ -1,35 +0,0 @@ -Upstream-Status: Pending - -diff -urN modutils-2.4.27.orig/include/module.h modutils-2.4.27/include/module.h ---- modutils-2.4.27.orig/include/module.h 2003-01-27 11:22:02.000000000 -0500 -+++ modutils-2.4.27/include/module.h 2004-08-23 19:52:34.756772712 -0400 -@@ -88,6 +88,20 @@ - /* For sizeof() which are related to the module platform and not to the - environment isnmod is running in, use sizeof_xx instead of sizeof(xx). */ - -+/* Additional test for OE, set tgt_blah correct for the target arch, *not* the -+ native arch. If int isn't 32bit on the native machine we're in trouble. */ -+ -+#ifdef ARCH_arm -+#define tgt_sizeof_char sizeof(char) -+#define tgt_sizeof_short sizeof(short) -+#define tgt_sizeof_int sizeof(int) -+#define tgt_sizeof_long 4 -+#define tgt_sizeof_char_p 4 -+#define tgt_sizeof_void_p 4 -+#define tgt_long int -+#define tgt_long_fmt "l" -+#define tgt_strtoul strtoul -+#else - #define tgt_sizeof_char sizeof(char) - #define tgt_sizeof_short sizeof(short) - #define tgt_sizeof_int sizeof(int) -@@ -97,7 +111,7 @@ - #define tgt_long long - #define tgt_long_fmt "l" - #define tgt_strtoul strtoul -- -+#endif - /* This assumes that long long on a 32 bit system is equivalent to long on the - * equivalent 64 bit system. Also that void and char pointers are 8 bytes on - * all 64 bit systems. Add per system tweaks if it ever becomes necessary.
meta/recipes-kernel/modutils/modutils-cross_2.4.27.bb deleted +0 -20
@@ -1,20 +0,0 @@ -require modutils_${PV}.bb -PR = "r10" -inherit cross -DEPENDS = "" -PACKAGES = "" -PROVIDES += "virtual/${TARGET_PREFIX}depmod virtual/${TARGET_PREFIX}depmod-2.4" -DEFAULT_PREFERENCE = "1" - -SRC_URI += "file://modutils-cross/module.h.diff;patch=1" - -sbindir = "${prefix}/bin" - -EXTRA_OECONF_append = " --program-prefix=${TARGET_PREFIX}" - -CFLAGS_prepend_mipsel = "-D__MIPSEL__" -CFLAGS_prepend_mipseb = "-D__MIPSEB__" - -do_install_append () { - mv ${D}${sbindir}/${TARGET_PREFIX}depmod ${D}${sbindir}/${TARGET_PREFIX}depmod-2.4 -}
meta/recipes-kernel/modutils/modutils_2.4.27.bb deleted +0 -93
93 lines not on this page · raw message
Signature · 1 line
1.7.4.1
RFC PATCH v2 8/9 task-base: remove modutils reference.
In reply to Anders DaranderAlso remove the other kernel24 references.
Make everything dependent on kernel26 default.
--- meta/recipes-core/tasks/task-base.bb | 22 +++++----------------- 1 files changed, 5 insertions(+), 17 deletions(-)
meta/recipes-core/tasks/task-base.bb +5 -17
@@ -44,7 +44,7 @@ PACKAGES = ' \ ${@base_contains("DISTRO_FEATURES", "raid", "task-base-raid", "",d)} \ ${@base_contains("DISTRO_FEATURES", "zeroconf", "task-base-zeroconf", "", d)} \ \ - ${@base_contains("MACHINE_FEATURES","kernel26","task-base-kernel26","task-base-kernel24",d)} \ + task-base-kernel26 \ ' ALLOW_EMPTY = "1"
@@ -57,12 +57,12 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" # # linux-hotplug or none # -HOTPLUG ?= "${@base_contains("MACHINE_FEATURES", "kernel24", "linux-hotplug","",d)} " +HOTPLUG ?= "" # # pcmciautils for >= 2.6.13-rc1, pcmcia-cs for others # -PCMCIA_MANAGER ?= "${@base_contains('MACHINE_FEATURES', 'kernel26','pcmciautils','pcmcia-cs',d)} " +PCMCIA_MANAGER ?= "pcmciautils" # # those ones can be set in machine config to supply packages needed to get machine booting
@@ -78,7 +78,7 @@ RDEPENDS_task-base = "\ task-machine-base \ ${HOTPLUG} \ \ - ${@base_contains('MACHINE_FEATURES', 'kernel26','task-base-kernel26','task-base-kernel24',d)} \ + task-base-kernel26 \ ${@base_contains('MACHINE_FEATURES', 'apm', 'task-base-apm', '',d)} \ ${@base_contains('MACHINE_FEATURES', 'acpi', 'task-base-acpi', '',d)} \ ${@base_contains('MACHINE_FEATURES', 'keyboard', 'task-base-keyboard', '',d)} \
@@ -148,17 +148,10 @@ RRECOMMENDS_task-distro-base = "${DISTRO_EXTRA_RRECOMMENDS}" RDEPENDS_task-machine-base = "${MACHINE_EXTRA_RDEPENDS}" RRECOMMENDS_task-machine-base = "${MACHINE_EXTRA_RRECOMMENDS}" -RDEPENDS_task-base-kernel24 = "\ - modutils-depmod" - RDEPENDS_task-base-kernel26 = "\ sysfsutils \ module-init-tools" -RRECOMMENDS_task-base-kernel24 = "\ - kernel-module-input \ - kernel-module-uinput" - RRECOMMENDS_task-base-kernel26 = "\ kernel-module-nls-utf8 \ kernel-module-input \
@@ -214,7 +207,7 @@ RDEPENDS_task-base-pcmcia = "\ RRECOMMENDS_task-base-pcmcia = "\ - ${@base_contains('MACHINE_FEATURES', 'kernel26', '${task-base-pcmcia26}', '${task-base-pcmcia24}',d)} \ + task-base-pcmcia26 \ kernel-module-pcmcia \ kernel-module-airo-cs \ kernel-module-pcnet-cs \
@@ -223,11 +216,6 @@ RRECOMMENDS_task-base-pcmcia = "\ kernel-module-ide-disk \ " -task-base-pcmcia24 = "\ - ${@base_contains('DISTRO_FEATURES', 'wifi', 'hostap-modules-cs', '',d)} \ - ${@base_contains('DISTRO_FEATURES', 'wifi', 'orinoco-modules-cs', '',d)} \ - " - task-base-pcmcia26 = "\ ${@base_contains('DISTRO_FEATURES', 'wifi', 'kernel-module-hostap-cs', '',d)} \ ${@base_contains('DISTRO_FEATURES', 'wifi', 'kernel-module-orinoco-cs', '',d)} \
Signature · 1 line
1.7.4.1
RFC PATCH v2 9/9 distro_tracking_fields: remove modutils.
In reply to Anders Darander--- .../conf/distro/include/distro_tracking_fields.inc | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-)
meta/conf/distro/include/distro_tracking_fields.inc +1 -7
@@ -1,5 +1,6 @@ RECIPE_STATUS_pn-diffutils = "green" RECIPE_LATEST_VERSION_pn-diffutils = "3.0" + RECIPE_LAST_UPDATE_pn-diffutils = "Dec 10, 2010" RECIPE_MAINTAINER_pn-diffutils = "Qing He <[email protected]>"
@@ -682,13 +683,6 @@ RECIPE_COMMENTS_pn-keymaps = "local scripts follow Poky's MIT license, however i RECIPE_LAST_UPDATE_pn-keymaps = "Jul 21, 2006" RECIPE_MAINTAINER_pn-keymaps = "Yu Ke <[email protected]>" -RECIPE_STATUS_pn-modutils = "red" -RECIPE_DEPENDENCY_CHECK_pn-modutils-initscripts = "not done" -RECIPE_LATEST_VERSION_pn-modutils = "2.4.27" -RECIPE_LAST_UPDATE_pn-modutils = "Jul 21, 2006" -RECIPE_MAINTAINER_pn-modutils = "Yu Ke <[email protected]>" -DISTRO_PN_ALIAS_pn-modutils = "Ubuntu=module-init-tools Fedora=module-init-tools" - RECIPE_STATUS_pn-modutils-initscripts = "green" RECIPE_DEPENDENCY_CHECK_pn-modutils-initscripts = "not done" RECIPE_LATEST_VERSION_pn-modutils-initscripts = "1.0"
Signature · 1 line
1.7.4.1
Quoted 13 lines · Anders Darander
v2: Probably some more patches could be squashed together. There might also be more places that should be addressed in these patches.
- Whitespace fixes
- Updated module-init-tools to 3.16. I'm not applying the ignore*.patch (it didn't apply).
- Do not provide virtual/*/depmod-2.6; just provide virtual/*/depmod.
- Do only install as depmod.
- Rearrange the order of some patches.
- Added patches to clean up (partly) task-base,distro_tracking_fields.
Quoted 8 lines
A few of the patches might be ready to pull, but the majority will need to be revised.
===============
This work is unfinished and incomplete...
It is published in its current form both to get feedback, but also to aid anyone else who is working on 3.0-support. If some of the patches are found to be OK, it's fine to cherrypick them.
The series looks pretty good to me. I'm gearing up to complete the 3.0 carry forward shortly, and I've applied these to my local tree to take them for a spin.
Cheers,
Bruce
Quoted 90 lines
The kernel-related classes has been modified to build a 3.0 kernel. The patches has been simplified by removing support for the 2.4-series. (The latter was suggested in an older mail thread:
http://www.mail-archive.com/[email protected]/msg02682.html
).The patches has been tested on linux-yocto_2.6.37 and a hacked version using the linux-yocto-dev repository (using a 3.0-rcX). The latest versions has only been built for qemuarm, prior iterations has also been built for qemux86.
Finally, no work has been done on the libc-linux-headers classes and recipes.
/Anders
Please review the following changes for suitability for inclusion. If you have any objections or suggestions for improvement, please respond to the patches. If you agree with the changes, please provide your Acked-by.
The following changes since commit
3aec2fa2df9aaa883feda0d7aed85e63d01398b9:qemuimagetest: update cvs and iptables to newer version for toolchain test (2011-06-24 11:28:28 +0100)
are available in the git repository at:
git://github.com/darander/oe-core kernel-3.0
https://github.com/darander/oe-core/tree/kernel-3.0Anders Darander (9):
Remove support for building 2.4 kernels image¡kernel.bblass: do not use depmod-2.6 modules-init-tools(-cross): update to 3.16
module-init-tools-cross: do not install depmod as depmod-2.6 kernel.bblass: removeget_kernelmajorversion
modutils-initscripts: move recipe prior to modutils removal
modutils: remove modutils
task-base: remove modutils reference.
distro_tracking_fields: remove modutils.meta/classes/image.bbclass | 2 +- meta/classes/kernel.bbclass | 22 ++---- meta/classes/linux-kernel-base.bbclass | 8 -- meta/classes/module-base.bbclass | 2 +- .../conf/distro/include/distro_tracking_fields.inc | 8 +-- meta/recipes-core/tasks/task-base.bb | 22 +---- .../{modutils =>
module-init-tools}/files/PD.patch| 0.../files/modutils.sh| 0 .../module-init-tools-cross_3.12.bb | 12 --- .../module-init-tools-cross_3.16.bb | 8 ++ .../module-init-tools/module-init-tools.inc | 1 - ...nit-tools_3.12.bb => module-init-tools_3.16.bb} | 6 +- .../modutils-initscripts.bb | 0meta/recipes-kernel/modutils/files/armeb.patch| 16 ----meta/recipes-kernel/modutils/files/configure.patch| 34 -------meta/recipes-kernel/modutils/files/gcc4.patch| 93 --------------------meta/recipes-kernel/modutils/files/lex.l.diff| 35 --------.../modutils/files/modutils-notest.patch| 16 ----.../modutils/files/program_prefix.patch| 71 --------------- .../recipes-kernel/modutils/modutils-collateral.bb | 21 -----.../modutils/modutils-cross/module.h.diff| 35 -------- .../modutils/modutils-cross_2.4.27.bb | 20 ---- meta/recipes-kernel/modutils/modutils_2.4.27.bb | 93 --------------------23 files changed, 25 insertions(+), 500 deletions(-)rename meta/recipes-kernel/{modutils =>
module-init-tools}/files/PD.patch(100%)
rename meta/recipes-kernel/{modutils =>module-init-tools}/files/modutils.sh(100%) delete mode 100644 meta/recipes-kernel/module-init-tools/module-init-tools-cross_3.12.bb create mode 100644 meta/recipes-kernel/module-init-tools/module-init-tools-cross_3.16.bb rename meta/recipes-kernel/module-init-tools/{module-init-tools_3.12.bb => module-init-tools_3.16.bb} (87%) rename meta/recipes-kernel/{modutils => module-init-tools}/modutils-initscripts.bb (100%) delete mode 100644meta/recipes-kernel/modutils/files/armeb.patch
delete mode 100644meta/recipes-kernel/modutils/files/configure.patch
delete mode 100644meta/recipes-kernel/modutils/files/gcc4.patch
delete mode 100644meta/recipes-kernel/modutils/files/lex.l.diff
delete mode 100644 meta/recipes-kernel/modutils/files/modules
delete mode 100644meta/recipes-kernel/modutils/files/modules.conf
delete mode 100644meta/recipes-kernel/modutils/files/modutils-notest.patch
delete mode 100644meta/recipes-kernel/modutils/files/program_prefix.patch
delete mode 100644 meta/recipes-kernel/modutils/modutils-collateral.bb
delete mode 100644meta/recipes-kernel/modutils/modutils-cross/module.h.diff
delete mode 100644 meta/recipes-kernel/modutils/modutils-cross_2.4.27.bb
delete mode 100644 meta/recipes-kernel/modutils/modutils_2.4.27.bb--
1.7.4.1_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"