* [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
@ 2011-12-13 16:19 Dmitry Eremin-Solenikov
2011-12-13 16:19 ` [PATCH 2/9] kernel.bbclass: move uImage handling to separate task Dmitry Eremin-Solenikov
` (10 more replies)
0 siblings, 11 replies; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:19 UTC (permalink / raw)
To: openembedded-core
There is no point in compiling kernel modules in a separate task, run
right after do_compile. On the other hand merging those tasks will e.g.
make icecc used also for modules compilation, etc.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
meta/classes/kernel.bbclass | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 3f2f75a..a75c199 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -89,17 +89,13 @@ kernel_do_compile() {
if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then
gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}"
fi
-}
-do_compile_kernelmodules() {
- unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
- oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
+ oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
else
bbnote "no modules to compile"
fi
}
-addtask compile_kernelmodules after do_compile before do_install
kernel_do_install() {
#
--
1.7.7.3
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 2/9] kernel.bbclass: move uImage handling to separate task
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
@ 2011-12-13 16:19 ` Dmitry Eremin-Solenikov
2011-12-14 21:20 ` Koen Kooi
2011-12-13 16:19 ` [PATCH 3/9] bitbake.conf, core-image-minimal-initramfs: add INITRAMFS_FSTYPES Dmitry Eremin-Solenikov
` (9 subsequent siblings)
10 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:19 UTC (permalink / raw)
To: openembedded-core
As per org.oe.dev and meta-oe's kernel.bbclass move uImage creation to
separate task from do_deploy. This way the do_install task can also
benefit from generated uImage.
The only major feature of oe-core's version (not to recreate uImage
if it exists) is retained in this patch. On the contra, as this version
was merged from meta-oe/org.oe.dev, new function has another feature:
it permits overriding the u-boot entrypoint via u-boot symbol.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
meta/classes/kernel.bbclass | 40 ++++++++++++++++++++++++----------------
1 files changed, 24 insertions(+), 16 deletions(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index a75c199..db00d2d 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -485,6 +485,30 @@ do_sizecheck() {
addtask sizecheck before do_install after do_compile
+do_uboot_mkimage() {
+ if test "x${KERNEL_IMAGETYPE}" = "xuImage" -a \
+ ! -e arch/${ARCH}/boot/uImage ; then
+ ENTRYPOINT=${UBOOT_ENTRYPOINT}
+ if test -n "${UBOOT_ENTRYSYMBOL}"; then
+ ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \
+ awk '$3=="${UBOOT_ENTRYSYMBOL}" {print $1}'`
+ fi
+ if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
+ ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
+ uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C none -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin arch/${ARCH}/boot/uImage
+ rm -f linux.bin
+ else
+ ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
+ rm -f linux.bin.gz
+ gzip -9 linux.bin
+ uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C gzip -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz arch/${ARCH}/boot/uImage
+ rm -f linux.bin.gz
+ fi
+ fi
+}
+
+addtask uboot_mkimage before do_install after do_compile
+
KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
# Don't include the DATETIME variable in the sstate package signatures
KERNEL_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
@@ -496,22 +520,6 @@ kernel_do_deploy() {
tar -cvzf ${DEPLOYDIR}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib
fi
- if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then
- if test -e arch/${ARCH}/boot/uImage ; then
- cp arch/${ARCH}/boot/uImage ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
- elif test -e arch/${ARCH}/boot/compressed/vmlinux ; then
- ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
- uboot-mkimage -A ${ARCH} -O linux -T kernel -C none -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
- rm -f linux.bin
- else
- ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
- rm -f linux.bin.gz
- gzip -9 linux.bin
- uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
- rm -f linux.bin.gz
- fi
- fi
-
cd ${DEPLOYDIR}
rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin
ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin
--
1.7.7.3
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 3/9] bitbake.conf, core-image-minimal-initramfs: add INITRAMFS_FSTYPES
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
2011-12-13 16:19 ` [PATCH 2/9] kernel.bbclass: move uImage handling to separate task Dmitry Eremin-Solenikov
@ 2011-12-13 16:19 ` Dmitry Eremin-Solenikov
2011-12-16 16:16 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 4/9] consolekit: fix sdk generation issues Dmitry Eremin-Solenikov
` (8 subsequent siblings)
10 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:19 UTC (permalink / raw)
To: openembedded-core
Initramfs images don't benefit from usual IMAGE_FSTYPES overrides. The
only sane values for them are "cpio.XXX". If IMAGE_FSTYPES is set to
include 'live', building core-image-minimal-initramfs can result in
build error, if the image is built before the kernel. To stop initramfs
images from responding on IMAGE_FSTYPES settings, but still allow
users/developers to override defaults (e.g. to generate "cpio.lzma"
initramfs), introduce INITRAMFS_FSTYPES variable, by default set to
"cpio.gz".
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
meta/conf/bitbake.conf | 1 +
.../images/core-image-minimal-initramfs.bb | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index f79e3f7..1c21616 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -673,6 +673,7 @@ require conf/abi_version.conf
DL_DIR ?= "${TOPDIR}/downloads"
SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
IMAGE_FSTYPES ?= "tar.gz"
+INITRAMFS_FSTYPES ?= "cpio.gz"
PCMCIA_MANAGER ?= "pcmcia-cs"
DEFAULT_TASK_PROVIDER ?= "task-base"
MACHINE_TASK_PROVIDER ?= "${DEFAULT_TASK_PROVIDER}"
diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb b/meta/recipes-core/images/core-image-minimal-initramfs.bb
index d078c10..5149f31 100644
--- a/meta/recipes-core/images/core-image-minimal-initramfs.bb
+++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb
@@ -10,7 +10,7 @@ IMAGE_LINGUAS = ""
LICENSE = "MIT"
+IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
inherit core-image
IMAGE_ROOTFS_SIZE = "8192"
-IMAGE_FSTYPES =+ "cpio.gz"
--
1.7.7.3
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
2011-12-13 16:19 ` [PATCH 2/9] kernel.bbclass: move uImage handling to separate task Dmitry Eremin-Solenikov
2011-12-13 16:19 ` [PATCH 3/9] bitbake.conf, core-image-minimal-initramfs: add INITRAMFS_FSTYPES Dmitry Eremin-Solenikov
@ 2011-12-13 16:19 ` Dmitry Eremin-Solenikov
2011-12-15 14:58 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass Dmitry Eremin-Solenikov
` (7 subsequent siblings)
10 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:19 UTC (permalink / raw)
To: openembedded-core
Currently sdk generation might fail with the following error:
| Collected errors:
| * extract_archive: Cannot create symlink from ./var/log to
'volatile/log': File exists.
ERROR: Function 'do_populate_sdk' failed
This happens as consolekit package will include both /var/log/ConsoleKit
and /var/volatile/log/ConsoleKit files:
lumag@fangorn:~/OE-scripts$ dpkg-deb -c build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk | grep var
drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/
drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/log/
drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/log/ConsoleKit/
lrwxrwxrwx root/root 0 2011-12-07 22:12 ./var/run -> volatile/run
drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/
drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/log/
drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/
drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/run/
drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
Inclusion of both log directories causes this error. Drop the
/var/log/ConsoleKit
in favour of /var/volatile/log
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
.../recipes-support/consolekit/consolekit_0.4.5.bb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-support/consolekit/consolekit_0.4.5.bb b/meta/recipes-support/consolekit/consolekit_0.4.5.bb
index 45f6ad3..9406d88 100644
--- a/meta/recipes-support/consolekit/consolekit_0.4.5.bb
+++ b/meta/recipes-support/consolekit/consolekit_0.4.5.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "ConsoleKit is a framework for defining and tracking users, login
HOMEPAGE="http://www.freedesktop.org/wiki/Software/ConsoleKit"
BUGTRACKER="https://bugs.freedesktop.org/buglist.cgi?query_format=specific&product=ConsoleKit"
-PR = "r7"
+PR = "r8"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
@@ -24,7 +24,7 @@ EXTRA_OECONF = "--with-systemdsystemunitdir=${base_libdir}/systemd/system/ \
${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam-module --with-pam-module-dir=${base_libdir}/security', '--disable-pam-module', d)} \
"
-FILES_${PN} += "${localstatedir}/log/ConsoleKit ${libdir}/ConsoleKit ${base_libdir} ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
+FILES_${PN} += "${libdir}/ConsoleKit ${base_libdir} ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
FILES_${PN}-dbg += "${base_libdir}/security/.debug"
PACKAGES =+ "pam-plugin-ck-connector"
--
1.7.7.3
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
` (2 preceding siblings ...)
2011-12-13 16:19 ` [PATCH 4/9] consolekit: fix sdk generation issues Dmitry Eremin-Solenikov
@ 2011-12-13 16:19 ` Dmitry Eremin-Solenikov
2011-12-13 16:27 ` Phil Blundell
2011-12-15 14:55 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 6/9] libgcc: reintroduce debug package, containing symbols Dmitry Eremin-Solenikov
` (6 subsequent siblings)
10 siblings, 2 replies; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:19 UTC (permalink / raw)
To: openembedded-core
Checking that all installed files are shipped is in reality a QA check.
It would benefit from mechanisms like ERROR_QA/WARNING_QA. So move it
into insane.bbclass. If some of the files are installed but should not
be shipped for some reasons, one can add them to the variable
IGNORE_UNSHIPPED_FILES.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
meta/classes/insane.bbclass | 49 ++++++++++++++++++++++++++++++++++++++++-
meta/classes/package.bbclass | 15 ------------
2 files changed, 47 insertions(+), 17 deletions(-)
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 5726e69..7a8643a 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -100,7 +100,7 @@ def package_qa_get_machine_dict():
# Currently not being used by default "desktop"
-WARN_QA ?= "ldflags useless-rpaths rpaths"
+WARN_QA ?= "ldflags useless-rpaths rpaths unshipped"
ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms"
def package_qa_clean_path(path,d):
@@ -485,6 +485,48 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, d):
return sane
+IGNORE_UNSHIPPED_FILES ??= ""
+
+def packages_qa_unshipped_files(d):
+ skip = (d.getVar('INSANE_SKIP_${PN}', True) or "").split()
+ if "unshipped" in skip:
+ return False
+
+ seen = d.getVar('IGNORE_UNSHIPPED_FILES', True).split()
+ unshipped = []
+ dvar = d.getVar('PKGD', True)
+ destvar = d.getVar('PKGDEST', True)
+ packages = d.getVar('PACKAGES', True).split()
+ for p in packages:
+ pdir = os.path.join(destvar, p)
+ for root, dirs, files in os.walk(pdir):
+ dir = root[len(pdir):]
+ if not dir:
+ dir = os.sep
+ for f in (files + dirs):
+ path = os.path.join(dir, f)
+ if path not in seen:
+ seen.append(path)
+
+ for root, dirs, files in os.walk(dvar):
+ dir = root[len(dvar):]
+ if not dir:
+ dir = os.sep
+ for f in (files + dirs):
+ path = os.path.join(dir, f)
+ if path not in seen:
+ unshipped.append(path)
+
+ pn = d.getVar('PN', True)
+
+ if unshipped == []:
+ return True
+
+ ret = package_qa_handle_error("unshipped", "For recipe %s, the following files/directories were installed but not shipped in any package:" % pn, d)
+ for f in unshipped:
+ package_qa_handle_error("unshipped", f, d)
+ return ret
+
# The PACKAGE FUNC to scan each package
python do_package_qa () {
bb.note("DO PACKAGE QA")
@@ -522,6 +564,7 @@ python do_package_qa () {
g = globals()
walk_sane = True
rdepends_sane = True
+ shipped_sane = True
for package in packages.split():
skip = (d.getVar('INSANE_SKIP_' + package, True) or "").split()
if skip:
@@ -546,8 +589,10 @@ python do_package_qa () {
if not package_qa_check_rdepends(package, pkgdest, skip, d):
rdepends_sane = False
+ if not packages_qa_unshipped_files(d):
+ shipped_sane = False
- if not walk_sane or not rdepends_sane:
+ if not walk_sane or not rdepends_sane or not shipped_sane:
bb.fatal("QA run found fatal errors. Please consider fixing them.")
bb.note("DONE with PACKAGE QA")
}
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 39c1d4b..fbea9c6 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -957,21 +957,6 @@ python populate_packages () {
del localdata
os.chdir(workdir)
- unshipped = []
- for root, dirs, files in os.walk(dvar):
- dir = root[len(dvar):]
- if not dir:
- dir = os.sep
- for f in (files + dirs):
- path = os.path.join(dir, f)
- if ('.' + path) not in seen:
- unshipped.append(path)
-
- if unshipped != []:
- bb.warn("For recipe %s, the following files/directories were installed but not shipped in any package:" % pn)
- for f in unshipped:
- bb.warn(" " + f)
-
bb.build.exec_func("package_name_hook", d)
for pkg in package_list:
--
1.7.7.3
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 6/9] libgcc: reintroduce debug package, containing symbols
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
` (3 preceding siblings ...)
2011-12-13 16:19 ` [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass Dmitry Eremin-Solenikov
@ 2011-12-13 16:19 ` Dmitry Eremin-Solenikov
2011-12-16 16:17 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 7/9] ncurses: drop empty dir to remove QA warning Dmitry Eremin-Solenikov
` (5 subsequent siblings)
10 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:19 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
meta/recipes-devtools/gcc/libgcc_4.6.bb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-devtools/gcc/libgcc_4.6.bb b/meta/recipes-devtools/gcc/libgcc_4.6.bb
index 6ba0339..dd0a7be 100644
--- a/meta/recipes-devtools/gcc/libgcc_4.6.bb
+++ b/meta/recipes-devtools/gcc/libgcc_4.6.bb
@@ -6,6 +6,7 @@ DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
PACKAGES = "\
${PN} \
${PN}-dev \
+ ${PN}-dbg \
"
FILES_${PN} = "${base_libdir}/libgcc*.so.*"
@@ -15,6 +16,8 @@ FILES_${PN}-dev = " \
${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \
${libdir}/${TARGET_SYS}/${BINV}/libgcc*"
+FILES_${PN}-dbg += "${base_libdir}/.debug/"
+
do_configure[noexec] = "1"
do_compile[noexec] = "1"
--
1.7.7.3
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 7/9] ncurses: drop empty dir to remove QA warning
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
` (4 preceding siblings ...)
2011-12-13 16:19 ` [PATCH 6/9] libgcc: reintroduce debug package, containing symbols Dmitry Eremin-Solenikov
@ 2011-12-13 16:19 ` Dmitry Eremin-Solenikov
2011-12-13 19:43 ` Khem Raj
2011-12-13 16:19 ` [PATCH 8/9] readline: drop empty dir to shut up " Dmitry Eremin-Solenikov
` (4 subsequent siblings)
10 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:19 UTC (permalink / raw)
To: openembedded-core
ncurses doesn't install any files in ${libdir}/terminfo, drop that directory.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
meta/recipes-core/ncurses/ncurses.inc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index 98f45a4..1449f34 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -171,6 +171,8 @@ do_install() {
echo 'INPUT(AS_NEEDED(-ltinfo))' >>$f
oe_multilib_header curses.h
+
+ rm ${D}${libdir}/terminfo
}
python populate_packages_prepend () {
--
1.7.7.3
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 8/9] readline: drop empty dir to shut up QA warning
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
` (5 preceding siblings ...)
2011-12-13 16:19 ` [PATCH 7/9] ncurses: drop empty dir to remove QA warning Dmitry Eremin-Solenikov
@ 2011-12-13 16:19 ` Dmitry Eremin-Solenikov
2011-12-16 16:17 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 9/9] libatomic-ops: drop directory with documentation to remove " Dmitry Eremin-Solenikov
` (3 subsequent siblings)
10 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:19 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
meta/recipes-core/readline/readline.inc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-core/readline/readline.inc b/meta/recipes-core/readline/readline.inc
index 8fe7e8a..743d8b3 100644
--- a/meta/recipes-core/readline/readline.inc
+++ b/meta/recipes-core/readline/readline.inc
@@ -28,6 +28,8 @@ do_install_append () {
# Make install doesn't properly install these
oe_libinstall -so -C shlib libhistory ${D}${libdir}
oe_libinstall -so -C shlib libreadline ${D}${libdir}
+
+ rmdir ${D}${bindir}
}
BBCLASSEXTEND = "native nativesdk"
--
1.7.7.3
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 9/9] libatomic-ops: drop directory with documentation to remove QA warning
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
` (6 preceding siblings ...)
2011-12-13 16:19 ` [PATCH 8/9] readline: drop empty dir to shut up " Dmitry Eremin-Solenikov
@ 2011-12-13 16:19 ` Dmitry Eremin-Solenikov
2011-12-13 19:48 ` Richard Purdie
2011-12-13 16:22 ` [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Phil Blundell
` (2 subsequent siblings)
10 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:19 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
.../pulseaudio/libatomics-ops_1.2.bb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb b/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
index 184c167..f81aeb6 100644
--- a/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
+++ b/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
@@ -26,5 +26,6 @@ ARM_INSTRUCTION_SET = "arm"
inherit autotools pkgconfig
do_install_append() {
- mv ${D}${datadir}/libatomic_ops ${D}${datadir}/libatomic-ops || true
+ # those contain only docs, not necessary for now.
+ rm -rf ${D}${datadir}/libatomic_ops || true
}
--
1.7.7.3
^ permalink raw reply related [flat|nested] 42+ messages in thread
* Re: [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
` (7 preceding siblings ...)
2011-12-13 16:19 ` [PATCH 9/9] libatomic-ops: drop directory with documentation to remove " Dmitry Eremin-Solenikov
@ 2011-12-13 16:22 ` Phil Blundell
2011-12-13 16:46 ` Dmitry Eremin-Solenikov
2011-12-14 0:15 ` Darren Hart
2011-12-15 14:56 ` Richard Purdie
10 siblings, 1 reply; 42+ messages in thread
From: Phil Blundell @ 2011-12-13 16:22 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> - oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
> + oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
Why did you remove PARALLEL_MAKE?
p.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass
2011-12-13 16:19 ` [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass Dmitry Eremin-Solenikov
@ 2011-12-13 16:27 ` Phil Blundell
2011-12-13 16:52 ` Dmitry Eremin-Solenikov
2011-12-15 14:55 ` Richard Purdie
1 sibling, 1 reply; 42+ messages in thread
From: Phil Blundell @ 2011-12-13 16:27 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> +def packages_qa_unshipped_files(d):
> + skip = (d.getVar('INSANE_SKIP_${PN}', True) or "").split()
> + if "unshipped" in skip:
> + return False
[...]
> + if not packages_qa_unshipped_files(d):
> + shipped_sane = False
>
> - if not walk_sane or not rdepends_sane:
> + if not walk_sane or not rdepends_sane or not shipped_sane:
> bb.fatal("QA run found fatal errors. Please consider fixing them.")
Is that really what you want?
p.
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
2011-12-13 16:22 ` [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Phil Blundell
@ 2011-12-13 16:46 ` Dmitry Eremin-Solenikov
0 siblings, 0 replies; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:46 UTC (permalink / raw)
To: openembedded-core
On 12/13/2011 08:22 PM, Phil Blundell wrote:
> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>> - oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>> + oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>
> Why did you remove PARALLEL_MAKE?
Because PARALLEL_MAKE is already defined for do_compile() task
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass
2011-12-13 16:27 ` Phil Blundell
@ 2011-12-13 16:52 ` Dmitry Eremin-Solenikov
0 siblings, 0 replies; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 16:52 UTC (permalink / raw)
To: openembedded-core
On 12/13/2011 08:27 PM, Phil Blundell wrote:
> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>> +def packages_qa_unshipped_files(d):
>> + skip = (d.getVar('INSANE_SKIP_${PN}', True) or "").split()
>> + if "unshipped" in skip:
>> + return False
Hmm. This really should be "return True". Should I send the fixed
version of this patch or this change will be picked by appliers?
>
> [...]
>
>> + if not packages_qa_unshipped_files(d):
>> + shipped_sane = False
>>
>> - if not walk_sane or not rdepends_sane:
>> + if not walk_sane or not rdepends_sane or not shipped_sane:
>> bb.fatal("QA run found fatal errors. Please consider fixing them.")
>
> Is that really what you want?
>
> p.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 7/9] ncurses: drop empty dir to remove QA warning
2011-12-13 16:19 ` [PATCH 7/9] ncurses: drop empty dir to remove QA warning Dmitry Eremin-Solenikov
@ 2011-12-13 19:43 ` Khem Raj
0 siblings, 0 replies; 42+ messages in thread
From: Khem Raj @ 2011-12-13 19:43 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, Dec 13, 2011 at 8:19 AM, Dmitry Eremin-Solenikov
<dbaryshkov@gmail.com> wrote:
> ncurses doesn't install any files in ${libdir}/terminfo, drop that directory.
>
its a symlink terminfo -> ../share/terminfo
and in my case
$ ls ../share/terminfo/
. .. 1 2 3 4 5 6 7 8 9 a A b c d e E f g h i j
k l L m M n N o p P q Q r s t u v w x X z
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> meta/recipes-core/ncurses/ncurses.inc | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
> index 98f45a4..1449f34 100644
> --- a/meta/recipes-core/ncurses/ncurses.inc
> +++ b/meta/recipes-core/ncurses/ncurses.inc
> @@ -171,6 +171,8 @@ do_install() {
> echo 'INPUT(AS_NEEDED(-ltinfo))' >>$f
>
> oe_multilib_header curses.h
> +
> + rm ${D}${libdir}/terminfo
> }
>
> python populate_packages_prepend () {
> --
> 1.7.7.3
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 9/9] libatomic-ops: drop directory with documentation to remove QA warning
2011-12-13 16:19 ` [PATCH 9/9] libatomic-ops: drop directory with documentation to remove " Dmitry Eremin-Solenikov
@ 2011-12-13 19:48 ` Richard Purdie
2011-12-13 22:07 ` Dmitry Eremin-Solenikov
0 siblings, 1 reply; 42+ messages in thread
From: Richard Purdie @ 2011-12-13 19:48 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> .../pulseaudio/libatomics-ops_1.2.bb | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb b/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
> index 184c167..f81aeb6 100644
> --- a/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
> +++ b/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
> @@ -26,5 +26,6 @@ ARM_INSTRUCTION_SET = "arm"
> inherit autotools pkgconfig
>
> do_install_append() {
> - mv ${D}${datadir}/libatomic_ops ${D}${datadir}/libatomic-ops || true
> + # those contain only docs, not necessary for now.
> + rm -rf ${D}${datadir}/libatomic_ops || true
> }
Shouldn't we move that to docdir/${PN}?
Cheers,
Richard
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 9/9] libatomic-ops: drop directory with documentation to remove QA warning
2011-12-13 19:48 ` Richard Purdie
@ 2011-12-13 22:07 ` Dmitry Eremin-Solenikov
2011-12-15 12:26 ` Richard Purdie
0 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-13 22:07 UTC (permalink / raw)
To: openembedded-core
On 12/13/2011 11:48 PM, Richard Purdie wrote:
> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>> Signed-off-by: Dmitry Eremin-Solenikov<dbaryshkov@gmail.com>
>> ---
>> .../pulseaudio/libatomics-ops_1.2.bb | 3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb b/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
>> index 184c167..f81aeb6 100644
>> --- a/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
>> +++ b/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
>> @@ -26,5 +26,6 @@ ARM_INSTRUCTION_SET = "arm"
>> inherit autotools pkgconfig
>>
>> do_install_append() {
>> - mv ${D}${datadir}/libatomic_ops ${D}${datadir}/libatomic-ops || true
>> + # those contain only docs, not necessary for now.
>> + rm -rf ${D}${datadir}/libatomic_ops || true
>> }
>
> Shouldn't we move that to docdir/${PN}?
I'm thinking another way: why is the recipe called libatomicS-ops (note
the S) if the upstream source is named as libatomc_ops (so it should
become libatomic-ops). Then documentation will land in the proper place
after the mv command which is currently in place.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
` (8 preceding siblings ...)
2011-12-13 16:22 ` [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Phil Blundell
@ 2011-12-14 0:15 ` Darren Hart
2011-12-14 0:17 ` Dmitry Eremin-Solenikov
2011-12-15 14:56 ` Richard Purdie
10 siblings, 1 reply; 42+ messages in thread
From: Darren Hart @ 2011-12-14 0:15 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: Dmitry Eremin-Solenikov, Koen Kooi
On 12/13/2011 08:19 AM, Dmitry Eremin-Solenikov wrote:
> There is no point in compiling kernel modules in a separate task, run
> right after do_compile. On the other hand merging those tasks will e.g.
> make icecc used also for modules compilation, etc.
This split was done intentionally to allow tasks to be inserted between
compile and compile_kernelmodules. See:
commit 509364eb634cf148b6ac1fb5f51924f4eb6a8991
Author: Koen Kooi <koen@dominion.thruhere.net>
Date: Tue Mar 15 11:25:01 2011 +0100
kernel bbclass: split do_compile into do_compile and do_compile_modules
This allows recipes to insert a custom task in between building
*Image and modules
>From OE .dev revision 615876fe218dc3feb4a3df9e6546a7b1a6376800
(From OE-Core rev: a2cc999d663407d17f41e1b0344361944993fa86)
Signed-off-by: Koen Kooi <koen@openembedded.org>
Acked-by: Graeme Gregory <dp@xora.org.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
If you want to be able to use icecc, can you pull the necessary logic
into compile_kernelmodules rather than reverting Koen's patch?
Thanks,
Darren
>
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> meta/classes/kernel.bbclass | 6 +-----
> 1 files changed, 1 insertions(+), 5 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 3f2f75a..a75c199 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -89,17 +89,13 @@ kernel_do_compile() {
> if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then
> gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}"
> fi
> -}
>
> -do_compile_kernelmodules() {
> - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
> if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
> - oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
> + oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
> else
> bbnote "no modules to compile"
> fi
> }
> -addtask compile_kernelmodules after do_compile before do_install
>
> kernel_do_install() {
> #
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
2011-12-14 0:15 ` Darren Hart
@ 2011-12-14 0:17 ` Dmitry Eremin-Solenikov
2011-12-14 0:19 ` Darren Hart
2011-12-15 9:27 ` Koen Kooi
0 siblings, 2 replies; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-14 0:17 UTC (permalink / raw)
To: Darren Hart; +Cc: Koen Kooi, Patches and discussions about the oe-core layer
On Wed, Dec 14, 2011 at 4:15 AM, Darren Hart <dvhart@linux.intel.com> wrote:
>
>
> On 12/13/2011 08:19 AM, Dmitry Eremin-Solenikov wrote:
>> There is no point in compiling kernel modules in a separate task, run
>> right after do_compile. On the other hand merging those tasks will e.g.
>> make icecc used also for modules compilation, etc.
>
> This split was done intentionally to allow tasks to be inserted between
> compile and compile_kernelmodules. See:
Could you (or Koen) name any tasks that have to be inserted between kernel
and modules compilation please?
>
> commit 509364eb634cf148b6ac1fb5f51924f4eb6a8991
> Author: Koen Kooi <koen@dominion.thruhere.net>
> Date: Tue Mar 15 11:25:01 2011 +0100
>
> kernel bbclass: split do_compile into do_compile and do_compile_modules
>
> This allows recipes to insert a custom task in between building
> *Image and modules
>
> >From OE .dev revision 615876fe218dc3feb4a3df9e6546a7b1a6376800
>
> (From OE-Core rev: a2cc999d663407d17f41e1b0344361944993fa86)
>
> Signed-off-by: Koen Kooi <koen@openembedded.org>
> Acked-by: Graeme Gregory <dp@xora.org.uk>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> If you want to be able to use icecc, can you pull the necessary logic
> into compile_kernelmodules rather than reverting Koen's patch?
>
> Thanks,
>
> Darren
>
>>
>> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
>> ---
>> meta/classes/kernel.bbclass | 6 +-----
>> 1 files changed, 1 insertions(+), 5 deletions(-)
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index 3f2f75a..a75c199 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -89,17 +89,13 @@ kernel_do_compile() {
>> if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then
>> gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}"
>> fi
>> -}
>>
>> -do_compile_kernelmodules() {
>> - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
>> if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
>> - oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>> + oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>> else
>> bbnote "no modules to compile"
>> fi
>> }
>> -addtask compile_kernelmodules after do_compile before do_install
>>
>> kernel_do_install() {
>> #
>
> --
> Darren Hart
> Intel Open Source Technology Center
> Yocto Project - Linux Kernel
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
2011-12-14 0:17 ` Dmitry Eremin-Solenikov
@ 2011-12-14 0:19 ` Darren Hart
2011-12-15 9:27 ` Koen Kooi
1 sibling, 0 replies; 42+ messages in thread
From: Darren Hart @ 2011-12-14 0:19 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov
Cc: Koen Kooi, Patches and discussions about the oe-core layer
On 12/13/2011 04:17 PM, Dmitry Eremin-Solenikov wrote:
> On Wed, Dec 14, 2011 at 4:15 AM, Darren Hart <dvhart@linux.intel.com> wrote:
>>
>>
>> On 12/13/2011 08:19 AM, Dmitry Eremin-Solenikov wrote:
>>> There is no point in compiling kernel modules in a separate task, run
>>> right after do_compile. On the other hand merging those tasks will e.g.
>>> make icecc used also for modules compilation, etc.
>>
>> This split was done intentionally to allow tasks to be inserted between
>> compile and compile_kernelmodules. See:
>
> Could you (or Koen) name any tasks that have to be inserted between kernel
> and modules compilation please?
I'll leave that to Koen as I'm confident he had a reason for doing the
split. I don't make use of the split myself.
--
Darren
>
>>
>> commit 509364eb634cf148b6ac1fb5f51924f4eb6a8991
>> Author: Koen Kooi <koen@dominion.thruhere.net>
>> Date: Tue Mar 15 11:25:01 2011 +0100
>>
>> kernel bbclass: split do_compile into do_compile and do_compile_modules
>>
>> This allows recipes to insert a custom task in between building
>> *Image and modules
>>
>> >From OE .dev revision 615876fe218dc3feb4a3df9e6546a7b1a6376800
>>
>> (From OE-Core rev: a2cc999d663407d17f41e1b0344361944993fa86)
>>
>> Signed-off-by: Koen Kooi <koen@openembedded.org>
>> Acked-by: Graeme Gregory <dp@xora.org.uk>
>> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>>
>> If you want to be able to use icecc, can you pull the necessary logic
>> into compile_kernelmodules rather than reverting Koen's patch?
>>
>> Thanks,
>>
>> Darren
>>
>>>
>>> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
>>> ---
>>> meta/classes/kernel.bbclass | 6 +-----
>>> 1 files changed, 1 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>>> index 3f2f75a..a75c199 100644
>>> --- a/meta/classes/kernel.bbclass
>>> +++ b/meta/classes/kernel.bbclass
>>> @@ -89,17 +89,13 @@ kernel_do_compile() {
>>> if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then
>>> gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}"
>>> fi
>>> -}
>>>
>>> -do_compile_kernelmodules() {
>>> - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
>>> if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
>>> - oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>>> + oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>>> else
>>> bbnote "no modules to compile"
>>> fi
>>> }
>>> -addtask compile_kernelmodules after do_compile before do_install
>>>
>>> kernel_do_install() {
>>> #
>>
>> --
>> Darren Hart
>> Intel Open Source Technology Center
>> Yocto Project - Linux Kernel
>
>
>
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 2/9] kernel.bbclass: move uImage handling to separate task
2011-12-13 16:19 ` [PATCH 2/9] kernel.bbclass: move uImage handling to separate task Dmitry Eremin-Solenikov
@ 2011-12-14 21:20 ` Koen Kooi
2011-12-15 6:23 ` Dmitry Eremin-Solenikov
0 siblings, 1 reply; 42+ messages in thread
From: Koen Kooi @ 2011-12-14 21:20 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 4191 bytes --]
Op 13 dec. 2011, om 16:19 heeft Dmitry Eremin-Solenikov het volgende geschreven:
> As per org.oe.dev and meta-oe's kernel.bbclass move uImage creation to
> separate task from do_deploy. This way the do_install task can also
> benefit from generated uImage.
>
> The only major feature of oe-core's version (not to recreate uImage
> if it exists) is retained in this patch
The whole point of the OE uImage handling is that in general we know better than the kernel and can apply fixups if needed (turning on/off compression, etc)
> . On the contra, as this version
> was merged from meta-oe/org.oe.dev, new function has another feature:
> it permits overriding the u-boot entrypoint via u-boot symbol.
Not if uimage exists, see above
>
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> meta/classes/kernel.bbclass | 40 ++++++++++++++++++++++++----------------
> 1 files changed, 24 insertions(+), 16 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index a75c199..db00d2d 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -485,6 +485,30 @@ do_sizecheck() {
>
> addtask sizecheck before do_install after do_compile
>
> +do_uboot_mkimage() {
> + if test "x${KERNEL_IMAGETYPE}" = "xuImage" -a \
> + ! -e arch/${ARCH}/boot/uImage ; then
> + ENTRYPOINT=${UBOOT_ENTRYPOINT}
> + if test -n "${UBOOT_ENTRYSYMBOL}"; then
> + ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \
> + awk '$3=="${UBOOT_ENTRYSYMBOL}" {print $1}'`
> + fi
> + if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
> + ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
> + uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C none -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin arch/${ARCH}/boot/uImage
> + rm -f linux.bin
> + else
> + ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
> + rm -f linux.bin.gz
> + gzip -9 linux.bin
> + uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C gzip -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz arch/${ARCH}/boot/uImage
> + rm -f linux.bin.gz
> + fi
> + fi
> +}
> +
> +addtask uboot_mkimage before do_install after do_compile
> +
> KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
> # Don't include the DATETIME variable in the sstate package signatures
> KERNEL_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
> @@ -496,22 +520,6 @@ kernel_do_deploy() {
> tar -cvzf ${DEPLOYDIR}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib
> fi
>
> - if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then
> - if test -e arch/${ARCH}/boot/uImage ; then
> - cp arch/${ARCH}/boot/uImage ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
> - elif test -e arch/${ARCH}/boot/compressed/vmlinux ; then
> - ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
> - uboot-mkimage -A ${ARCH} -O linux -T kernel -C none -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
> - rm -f linux.bin
> - else
> - ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
> - rm -f linux.bin.gz
> - gzip -9 linux.bin
> - uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
> - rm -f linux.bin.gz
> - fi
> - fi
> -
> cd ${DEPLOYDIR}
> rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin
> ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin
> --
> 1.7.7.3
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 169 bytes --]
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 2/9] kernel.bbclass: move uImage handling to separate task
2011-12-14 21:20 ` Koen Kooi
@ 2011-12-15 6:23 ` Dmitry Eremin-Solenikov
2011-12-15 13:55 ` Bruce Ashfield
0 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-15 6:23 UTC (permalink / raw)
To: openembedded-core; +Cc: Koen Kooi
On 12/15/2011 01:20 AM, Koen Kooi wrote:
>
> Op 13 dec. 2011, om 16:19 heeft Dmitry Eremin-Solenikov het volgende geschreven:
>
>> As per org.oe.dev and meta-oe's kernel.bbclass move uImage creation to
>> separate task from do_deploy. This way the do_install task can also
>> benefit from generated uImage.
>>
>> The only major feature of oe-core's version (not to recreate uImage
>> if it exists) is retained in this patch
>
> The whole point of the OE uImage handling is that in general we know better than the kernel and can apply fixups if needed (turning on/off compression, etc)
Please check the history of OE-core uImage handling. Initially uImage
was always recreated (as it's currently done in meta-oe). Then
(422a017e6 on Oct 29, 2010) OE-core kernel.bbclass was changed to
default to not to recreate uImage if it was created by kbuild (IIRC it
was done so, because recreated uImages weren't always booting as they
required more setup). I don't know which way is correct. Maybe we should
add a hook that will tell if kernel.bbclass should prefer to recreate
uImage or to use kernel one. Would you like such variable?
Another point (that I probably failed to emphasize): currently
do_install and do_deploy will use different uImages. The image in /boot
on rootfs might be different from uImage really in deploy dir. I would
assume that this is not the expected way to do things.
>
>> . On the contra, as this version
>> was merged from meta-oe/org.oe.dev, new function has another feature:
>> it permits overriding the u-boot entrypoint via u-boot symbol.
>
> Not if uimage exists, see above
Of course.
>
>>
>> Signed-off-by: Dmitry Eremin-Solenikov<dbaryshkov@gmail.com>
>> ---
>> meta/classes/kernel.bbclass | 40 ++++++++++++++++++++++++----------------
>> 1 files changed, 24 insertions(+), 16 deletions(-)
>>
>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>> index a75c199..db00d2d 100644
>> --- a/meta/classes/kernel.bbclass
>> +++ b/meta/classes/kernel.bbclass
>> @@ -485,6 +485,30 @@ do_sizecheck() {
>>
>> addtask sizecheck before do_install after do_compile
>>
>> +do_uboot_mkimage() {
>> + if test "x${KERNEL_IMAGETYPE}" = "xuImage" -a \
>> + ! -e arch/${ARCH}/boot/uImage ; then
>> + ENTRYPOINT=${UBOOT_ENTRYPOINT}
>> + if test -n "${UBOOT_ENTRYSYMBOL}"; then
>> + ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \
>> + awk '$3=="${UBOOT_ENTRYSYMBOL}" {print $1}'`
>> + fi
>> + if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
>> + ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
>> + uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C none -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin arch/${ARCH}/boot/uImage
>> + rm -f linux.bin
>> + else
>> + ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
>> + rm -f linux.bin.gz
>> + gzip -9 linux.bin
>> + uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C gzip -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz arch/${ARCH}/boot/uImage
>> + rm -f linux.bin.gz
>> + fi
>> + fi
>> +}
>> +
>> +addtask uboot_mkimage before do_install after do_compile
>> +
>> KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
>> # Don't include the DATETIME variable in the sstate package signatures
>> KERNEL_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
>> @@ -496,22 +520,6 @@ kernel_do_deploy() {
>> tar -cvzf ${DEPLOYDIR}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib
>> fi
>>
>> - if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then
>> - if test -e arch/${ARCH}/boot/uImage ; then
>> - cp arch/${ARCH}/boot/uImage ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
>> - elif test -e arch/${ARCH}/boot/compressed/vmlinux ; then
>> - ${OBJCOPY} -O binary -R .note -R .comment -S arch/${ARCH}/boot/compressed/vmlinux linux.bin
>> - uboot-mkimage -A ${ARCH} -O linux -T kernel -C none -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
>> - rm -f linux.bin
>> - else
>> - ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux linux.bin
>> - rm -f linux.bin.gz
>> - gzip -9 linux.bin
>> - uboot-mkimage -A ${ARCH} -O linux -T kernel -C gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
>> - rm -f linux.bin.gz
>> - fi
>> - fi
>> -
>> cd ${DEPLOYDIR}
>> rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin
>> ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin
>> --
>> 1.7.7.3
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
2011-12-14 0:17 ` Dmitry Eremin-Solenikov
2011-12-14 0:19 ` Darren Hart
@ 2011-12-15 9:27 ` Koen Kooi
2011-12-15 13:57 ` Bruce Ashfield
1 sibling, 1 reply; 42+ messages in thread
From: Koen Kooi @ 2011-12-15 9:27 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov
Cc: Darren Hart, Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 879 bytes --]
Op 14 dec. 2011, om 01:17 heeft Dmitry Eremin-Solenikov het volgende geschreven:
> On Wed, Dec 14, 2011 at 4:15 AM, Darren Hart <dvhart@linux.intel.com> wrote:
>>
>>
>> On 12/13/2011 08:19 AM, Dmitry Eremin-Solenikov wrote:
>>> There is no point in compiling kernel modules in a separate task, run
>>> right after do_compile. On the other hand merging those tasks will e.g.
>>> make icecc used also for modules compilation, etc.
>>
>> This split was done intentionally to allow tasks to be inserted between
>> compile and compile_kernelmodules. See:
>
> Could you (or Koen) name any tasks that have to be inserted between kernel
> and modules compilation please?
Building external modules that are referenced by internal ones for example. But besides that, this also allows me to build just *Image quickly and not having to wait for the modules to build.
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 169 bytes --]
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 9/9] libatomic-ops: drop directory with documentation to remove QA warning
2011-12-13 22:07 ` Dmitry Eremin-Solenikov
@ 2011-12-15 12:26 ` Richard Purdie
0 siblings, 0 replies; 42+ messages in thread
From: Richard Purdie @ 2011-12-15 12:26 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Wed, 2011-12-14 at 02:07 +0400, Dmitry Eremin-Solenikov wrote:
> On 12/13/2011 11:48 PM, Richard Purdie wrote:
> > On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> >> Signed-off-by: Dmitry Eremin-Solenikov<dbaryshkov@gmail.com>
> >> ---
> >> .../pulseaudio/libatomics-ops_1.2.bb | 3 ++-
> >> 1 files changed, 2 insertions(+), 1 deletions(-)
> >>
> >> diff --git a/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb b/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
> >> index 184c167..f81aeb6 100644
> >> --- a/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
> >> +++ b/meta/recipes-multimedia/pulseaudio/libatomics-ops_1.2.bb
> >> @@ -26,5 +26,6 @@ ARM_INSTRUCTION_SET = "arm"
> >> inherit autotools pkgconfig
> >>
> >> do_install_append() {
> >> - mv ${D}${datadir}/libatomic_ops ${D}${datadir}/libatomic-ops || true
> >> + # those contain only docs, not necessary for now.
> >> + rm -rf ${D}${datadir}/libatomic_ops || true
> >> }
> >
> > Shouldn't we move that to docdir/${PN}?
>
> I'm thinking another way: why is the recipe called libatomicS-ops (note
> the S) if the upstream source is named as libatomc_ops (so it should
> become libatomic-ops). Then documentation will land in the proper place
> after the mv command which is currently in place.
I agree it should probably get renamed, I can't see a good reason for
that name. That will potentially cause some friction with other things
depending on it though :(
Cheers,
Richard
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 2/9] kernel.bbclass: move uImage handling to separate task
2011-12-15 6:23 ` Dmitry Eremin-Solenikov
@ 2011-12-15 13:55 ` Bruce Ashfield
2011-12-15 19:09 ` Tom Rini
0 siblings, 1 reply; 42+ messages in thread
From: Bruce Ashfield @ 2011-12-15 13:55 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Koen Kooi
On Thu, Dec 15, 2011 at 1:23 AM, Dmitry Eremin-Solenikov
<dbaryshkov@gmail.com> wrote:
> On 12/15/2011 01:20 AM, Koen Kooi wrote:
>>
>>
>> Op 13 dec. 2011, om 16:19 heeft Dmitry Eremin-Solenikov het volgende
>> geschreven:
>>
>>> As per org.oe.dev and meta-oe's kernel.bbclass move uImage creation to
>>> separate task from do_deploy. This way the do_install task can also
>>> benefit from generated uImage.
>>>
>>> The only major feature of oe-core's version (not to recreate uImage
>>> if it exists) is retained in this patch
>>
>>
>> The whole point of the OE uImage handling is that in general we know
>> better than the kernel and can apply fixups if needed (turning on/off
>> compression, etc)
>
>
> Please check the history of OE-core uImage handling. Initially uImage was
> always recreated (as it's currently done in meta-oe). Then (422a017e6 on Oct
> 29, 2010) OE-core kernel.bbclass was changed to default to not to recreate
> uImage if it was created by kbuild (IIRC it was done so, because recreated
> uImages weren't always booting as they required more setup). I don't know
> which way is correct. Maybe we should add a hook that will tell if
> kernel.bbclass should prefer to recreate uImage or to use kernel one. Would
> you like such variable?
If no one minds the tiny bit of extra complexity, this was the approach that I
was thinking about when reading this thread.
I can report for fact, that the uImages that were being generated by
the existing
rules were binary blobs of silent boot death on the powerpc boards that I was
using during initial development. The in tree images worked perfectly.
For everything I've done in the past, I've always used in tree uImages
or patched the
kernel tree itself to generated images that worked for the board in question.
The difference in approach could likely be chalked up to a guy just
trying to get a
kernel to boot, and someone working more closely with the bootloader -> kernel
handoff.
I think a variable, or some other switch, to support the two workflows
is a reasonable
compromise.
Cheers,
Bruce
>
> Another point (that I probably failed to emphasize): currently do_install
> and do_deploy will use different uImages. The image in /boot on rootfs might
> be different from uImage really in deploy dir. I would assume that this is
> not the expected way to do things.
>
>
>>
>>> . On the contra, as this version
>>> was merged from meta-oe/org.oe.dev, new function has another feature:
>>> it permits overriding the u-boot entrypoint via u-boot symbol.
>>
>>
>> Not if uimage exists, see above
>
>
> Of course.
>
>
>>
>>>
>>> Signed-off-by: Dmitry Eremin-Solenikov<dbaryshkov@gmail.com>
>>> ---
>>> meta/classes/kernel.bbclass | 40
>>> ++++++++++++++++++++++++----------------
>>> 1 files changed, 24 insertions(+), 16 deletions(-)
>>>
>>> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
>>> index a75c199..db00d2d 100644
>>> --- a/meta/classes/kernel.bbclass
>>> +++ b/meta/classes/kernel.bbclass
>>> @@ -485,6 +485,30 @@ do_sizecheck() {
>>>
>>> addtask sizecheck before do_install after do_compile
>>>
>>> +do_uboot_mkimage() {
>>> + if test "x${KERNEL_IMAGETYPE}" = "xuImage" -a \
>>> + ! -e arch/${ARCH}/boot/uImage ; then
>>> + ENTRYPOINT=${UBOOT_ENTRYPOINT}
>>> + if test -n "${UBOOT_ENTRYSYMBOL}"; then
>>> + ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \
>>> + awk '$3=="${UBOOT_ENTRYSYMBOL}" {print $1}'`
>>> + fi
>>> + if test -e arch/${ARCH}/boot/compressed/vmlinux ; then
>>> + ${OBJCOPY} -O binary -R .note -R .comment -S
>>> arch/${ARCH}/boot/compressed/vmlinux linux.bin
>>> + uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C none -a
>>> ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d
>>> linux.bin arch/${ARCH}/boot/uImage
>>> + rm -f linux.bin
>>> + else
>>> + ${OBJCOPY} -O binary -R .note -R .comment -S vmlinux
>>> linux.bin
>>> + rm -f linux.bin.gz
>>> + gzip -9 linux.bin
>>> + uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C gzip -a
>>> ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d
>>> linux.bin.gz arch/${ARCH}/boot/uImage
>>> + rm -f linux.bin.gz
>>> + fi
>>> + fi
>>> +}
>>> +
>>> +addtask uboot_mkimage before do_install after do_compile
>>> +
>>> KERNEL_IMAGE_BASE_NAME ?=
>>> "${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
>>> # Don't include the DATETIME variable in the sstate package signatures
>>> KERNEL_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
>>> @@ -496,22 +520,6 @@ kernel_do_deploy() {
>>> tar -cvzf
>>> ${DEPLOYDIR}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib
>>> fi
>>>
>>> - if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then
>>> - if test -e arch/${ARCH}/boot/uImage ; then
>>> - cp arch/${ARCH}/boot/uImage
>>> ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
>>> - elif test -e arch/${ARCH}/boot/compressed/vmlinux ; then
>>> - ${OBJCOPY} -O binary -R .note -R .comment -S
>>> arch/${ARCH}/boot/compressed/vmlinux linux.bin
>>> - uboot-mkimage -A ${ARCH} -O linux -T kernel -C
>>> none -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n
>>> "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin
>>> ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
>>> - rm -f linux.bin
>>> - else
>>> - ${OBJCOPY} -O binary -R .note -R .comment -S
>>> vmlinux linux.bin
>>> - rm -f linux.bin.gz
>>> - gzip -9 linux.bin
>>> - uboot-mkimage -A ${ARCH} -O linux -T kernel -C
>>> gzip -a ${UBOOT_ENTRYPOINT} -e ${UBOOT_ENTRYPOINT} -n
>>> "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin.gz
>>> ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
>>> - rm -f linux.bin.gz
>>> - fi
>>> - fi
>>> -
>>> cd ${DEPLOYDIR}
>>> rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin
>>> ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin
>>> ${KERNEL_IMAGE_SYMLINK_NAME}.bin
>>> --
>>> 1.7.7.3
>>>
>>>
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
>>
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
>
> --
> With best wishes
> Dmitry
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
2011-12-15 9:27 ` Koen Kooi
@ 2011-12-15 13:57 ` Bruce Ashfield
0 siblings, 0 replies; 42+ messages in thread
From: Bruce Ashfield @ 2011-12-15 13:57 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: Dmitry Eremin-Solenikov, Darren Hart
On Thu, Dec 15, 2011 at 4:27 AM, Koen Kooi <koen@dominion.thruhere.net> wrote:
>
> Op 14 dec. 2011, om 01:17 heeft Dmitry Eremin-Solenikov het volgende geschreven:
>
>> On Wed, Dec 14, 2011 at 4:15 AM, Darren Hart <dvhart@linux.intel.com> wrote:
>>>
>>>
>>> On 12/13/2011 08:19 AM, Dmitry Eremin-Solenikov wrote:
>>>> There is no point in compiling kernel modules in a separate task, run
>>>> right after do_compile. On the other hand merging those tasks will e.g.
>>>> make icecc used also for modules compilation, etc.
>>>
>>> This split was done intentionally to allow tasks to be inserted between
>>> compile and compile_kernelmodules. See:
>>
>> Could you (or Koen) name any tasks that have to be inserted between kernel
>> and modules compilation please?
>
> Building external modules that are referenced by internal ones for example. But besides that, this also allows me to build just *Image quickly and not having to wait for the modules to build.
I've had the same thing here, just building the main image and not
wanting to wait for
kernel modules to compile. More of an incremental ad-hoc, scp and reboot sort of
workflow, but only building what you need in that situation is just
what a person wants.
Cheers,
Bruce
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAk7pvXkACgkQMkyGM64RGpE2pwCdFjZuuNW4ler8ES4OsKddTaB2
> JnIAn0ME2FOwLyXeCS2DDBsTwKBFUKDt
> =l9hr
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass
2011-12-13 16:19 ` [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass Dmitry Eremin-Solenikov
2011-12-13 16:27 ` Phil Blundell
@ 2011-12-15 14:55 ` Richard Purdie
1 sibling, 0 replies; 42+ messages in thread
From: Richard Purdie @ 2011-12-15 14:55 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> Checking that all installed files are shipped is in reality a QA check.
> It would benefit from mechanisms like ERROR_QA/WARNING_QA. So move it
> into insane.bbclass. If some of the files are installed but should not
> be shipped for some reasons, one can add them to the variable
> IGNORE_UNSHIPPED_FILES.
>
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> meta/classes/insane.bbclass | 49 ++++++++++++++++++++++++++++++++++++++++-
> meta/classes/package.bbclass | 15 ------------
> 2 files changed, 47 insertions(+), 17 deletions(-)
I like the patch and have been thinking we should do something like
this. One minor comment below.
> diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
> index 5726e69..7a8643a 100644
> --- a/meta/classes/insane.bbclass
> +++ b/meta/classes/insane.bbclass
> @@ -100,7 +100,7 @@ def package_qa_get_machine_dict():
>
>
> # Currently not being used by default "desktop"
> -WARN_QA ?= "ldflags useless-rpaths rpaths"
> +WARN_QA ?= "ldflags useless-rpaths rpaths unshipped"
> ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms"
>
> def package_qa_clean_path(path,d):
> @@ -485,6 +485,48 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, d):
>
> return sane
>
> +IGNORE_UNSHIPPED_FILES ??= ""
> +
> +def packages_qa_unshipped_files(d):
> + skip = (d.getVar('INSANE_SKIP_${PN}', True) or "").split()
> + if "unshipped" in skip:
> + return False
How about just check for unshipped in QA_WARN and QA_ERROR here and if
not in either, just return? You cover handling ignoring files just
below.
> + seen = d.getVar('IGNORE_UNSHIPPED_FILES', True).split()
> + unshipped = []
> + dvar = d.getVar('PKGD', True)
> + destvar = d.getVar('PKGDEST', True)
> + packages = d.getVar('PACKAGES', True).split()
> + for p in packages:
Cheers,
Richard
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
` (9 preceding siblings ...)
2011-12-14 0:15 ` Darren Hart
@ 2011-12-15 14:56 ` Richard Purdie
10 siblings, 0 replies; 42+ messages in thread
From: Richard Purdie @ 2011-12-15 14:56 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> There is no point in compiling kernel modules in a separate task, run
> right after do_compile. On the other hand merging those tasks will e.g.
> make icecc used also for modules compilation, etc.
>
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> meta/classes/kernel.bbclass | 6 +-----
> 1 files changed, 1 insertions(+), 5 deletions(-)
Just to summarise the feedback, I think there valid reasons to have
these tasks separately so icecc is going to need to learn to deal with
this...
Cheers,
Richard
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-13 16:19 ` [PATCH 4/9] consolekit: fix sdk generation issues Dmitry Eremin-Solenikov
@ 2011-12-15 14:58 ` Richard Purdie
2011-12-15 15:06 ` Koen Kooi
2011-12-15 16:20 ` Cui, Dexuan
0 siblings, 2 replies; 42+ messages in thread
From: Richard Purdie @ 2011-12-15 14:58 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Koen Kooi
On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> Currently sdk generation might fail with the following error:
> | Collected errors:
> | * extract_archive: Cannot create symlink from ./var/log to
> 'volatile/log': File exists.
> ERROR: Function 'do_populate_sdk' failed
>
> This happens as consolekit package will include both /var/log/ConsoleKit
> and /var/volatile/log/ConsoleKit files:
> lumag@fangorn:~/OE-scripts$ dpkg-deb -c build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk | grep var
> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/
> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/log/
> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/log/ConsoleKit/
> lrwxrwxrwx root/root 0 2011-12-07 22:12 ./var/run -> volatile/run
> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/
> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/log/
> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/
> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/run/
> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
>
> Inclusion of both log directories causes this error. Drop the
> /var/log/ConsoleKit
> in favour of /var/volatile/log
>
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
This effectively reverts:
http://git.openembedded.org/openembedded-core/commit/?id=5608a748af2c754f60137ab7c3010ccce6bf9e40
so I think this fixes one problem at the expense of causing another.
Koen: Any comments?
> .../recipes-support/consolekit/consolekit_0.4.5.bb | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-support/consolekit/consolekit_0.4.5.bb b/meta/recipes-support/consolekit/consolekit_0.4.5.bb
> index 45f6ad3..9406d88 100644
> --- a/meta/recipes-support/consolekit/consolekit_0.4.5.bb
> +++ b/meta/recipes-support/consolekit/consolekit_0.4.5.bb
> @@ -2,7 +2,7 @@ DESCRIPTION = "ConsoleKit is a framework for defining and tracking users, login
> HOMEPAGE="http://www.freedesktop.org/wiki/Software/ConsoleKit"
> BUGTRACKER="https://bugs.freedesktop.org/buglist.cgi?query_format=specific&product=ConsoleKit"
>
> -PR = "r7"
> +PR = "r8"
>
> LICENSE = "GPLv2+"
> LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
> @@ -24,7 +24,7 @@ EXTRA_OECONF = "--with-systemdsystemunitdir=${base_libdir}/systemd/system/ \
> ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam-module --with-pam-module-dir=${base_libdir}/security', '--disable-pam-module', d)} \
> "
>
> -FILES_${PN} += "${localstatedir}/log/ConsoleKit ${libdir}/ConsoleKit ${base_libdir} ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
> +FILES_${PN} += "${libdir}/ConsoleKit ${base_libdir} ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
> FILES_${PN}-dbg += "${base_libdir}/security/.debug"
>
> PACKAGES =+ "pam-plugin-ck-connector"
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-15 14:58 ` Richard Purdie
@ 2011-12-15 15:06 ` Koen Kooi
2011-12-16 1:56 ` Cui, Dexuan
2011-12-16 12:42 ` Dmitry Eremin-Solenikov
2011-12-15 16:20 ` Cui, Dexuan
1 sibling, 2 replies; 42+ messages in thread
From: Koen Kooi @ 2011-12-15 15:06 UTC (permalink / raw)
To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1787 bytes --]
Op 15 dec. 2011, om 15:58 heeft Richard Purdie het volgende geschreven:
> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>> Currently sdk generation might fail with the following error:
>> | Collected errors:
>> | * extract_archive: Cannot create symlink from ./var/log to
>> 'volatile/log': File exists.
>> ERROR: Function 'do_populate_sdk' failed
>>
>> This happens as consolekit package will include both /var/log/ConsoleKit
>> and /var/volatile/log/ConsoleKit files:
>> lumag@fangorn:~/OE-scripts$ dpkg-deb -c build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk | grep var
>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/
>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/log/
>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/log/ConsoleKit/
>> lrwxrwxrwx root/root 0 2011-12-07 22:12 ./var/run -> volatile/run
>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/
>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/log/
>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/
>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/run/
>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
>>
>> Inclusion of both log directories causes this error. Drop the
>> /var/log/ConsoleKit
>> in favour of /var/volatile/log
>>
>> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
>
> This effectively reverts:
> http://git.openembedded.org/openembedded-core/commit/?id=5608a748af2c754f60137ab7c3010ccce6bf9e40
> so I think this fixes one problem at the expense of causing another.
> Koen: Any comments?
If you revert it consolekit won't work at runtime because it fails to start.
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 169 bytes --]
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-15 14:58 ` Richard Purdie
2011-12-15 15:06 ` Koen Kooi
@ 2011-12-15 16:20 ` Cui, Dexuan
2011-12-16 12:42 ` Dmitry Eremin-Solenikov
1 sibling, 1 reply; 42+ messages in thread
From: Cui, Dexuan @ 2011-12-15 16:20 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Koen Kooi
Richard Purdie wrote on 2011-12-15:
> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>> Currently sdk generation might fail with the following error:
>> | Collected errors:
>> | * extract_archive: Cannot create symlink from ./var/log to
>> 'volatile/log': File exists.
>> ERROR: Function 'do_populate_sdk' failed
>>
>> This happens as consolekit package will include both
>> /var/log/ConsoleKit and /var/volatile/log/ConsoleKit files:
>> lumag@fangorn:~/OE-scripts$ dpkg-deb -c
> build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk |
> grep var
>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/ drwxr-xr-x
>> root/root 0 2011-12-07 22:12 ./var/log/ drwxr-xr-x root/root
>> 0 2011-12-07 22:12 ./var/log/ConsoleKit/ lrwxrwxrwx root/root
>> 0 2011-12-07 22:12 ./var/run -> volatile/run drwxr-xr-x root/root
>> 0 2011-12-07 22:12 ./var/volatile/ drwxr-xr-x root/root 0
>> 2011-12-07 22:12 ./var/volatile/log/ drwxr-xr-x root/root 0
>> 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/ drwxr-xr-x root/root
>> 0 2011-12-07 22:12 ./var/volatile/run/ drwxr-xr-x root/root
>> 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
>>
>> Inclusion of both log directories causes this error. Drop the
>> /var/log/ConsoleKit in favour of /var/volatile/log
Hi Dmitry,
Could you please explain how and where the extract_archive error is caused?
Where is /var/log linked to /var/volatile/log?
Do you mean RP's patch "consolekit: Fix ${localstatedir} race" didn't fix the issue?
(I suspect so)
> This effectively reverts:
> http://git.openembedded.org/openembedded-core/commit/?id=5608a748
> af2c754f60137ab7c3010ccce6bf9e40 so I think this fixes one problem at
> the expense of causing another. Koen: Any comments?
Thanks,
-- Dexuan
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 2/9] kernel.bbclass: move uImage handling to separate task
2011-12-15 13:55 ` Bruce Ashfield
@ 2011-12-15 19:09 ` Tom Rini
2011-12-15 19:20 ` Bruce Ashfield
0 siblings, 1 reply; 42+ messages in thread
From: Tom Rini @ 2011-12-15 19:09 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Koen Kooi
On Thu, Dec 15, 2011 at 6:55 AM, Bruce Ashfield
<bruce.ashfield@gmail.com> wrote:
[snip]
> If no one minds the tiny bit of extra complexity, this was the approach that I
> was thinking about when reading this thread.
>
> I can report for fact, that the uImages that were being generated by
> the existing
> rules were binary blobs of silent boot death on the powerpc boards that I was
> using during initial development. The in tree images worked perfectly.
>
> For everything I've done in the past, I've always used in tree uImages
> or patched the
> kernel tree itself to generated images that worked for the board in question.
>
> The difference in approach could likely be chalked up to a guy just
> trying to get a
> kernel to boot, and someone working more closely with the bootloader -> kernel
> handoff.
>
> I think a variable, or some other switch, to support the two workflows
> is a reasonable
> compromise.
Part of the history[1], and I was surprised at the time too, was that
for ARM at least, rmk had said that you should not use the uImages
generated by the kernel. So the question is, has this changed? Is
this an ARM-only thing?
[1]: http://lists.linuxtogo.org/pipermail/openembedded-devel/2008-November/007096.html
--
Tom
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 2/9] kernel.bbclass: move uImage handling to separate task
2011-12-15 19:09 ` Tom Rini
@ 2011-12-15 19:20 ` Bruce Ashfield
0 siblings, 0 replies; 42+ messages in thread
From: Bruce Ashfield @ 2011-12-15 19:20 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Koen Kooi
On Thu, Dec 15, 2011 at 2:09 PM, Tom Rini <tom.rini@gmail.com> wrote:
> On Thu, Dec 15, 2011 at 6:55 AM, Bruce Ashfield
> <bruce.ashfield@gmail.com> wrote:
> [snip]
>> If no one minds the tiny bit of extra complexity, this was the approach that I
>> was thinking about when reading this thread.
>>
>> I can report for fact, that the uImages that were being generated by
>> the existing
>> rules were binary blobs of silent boot death on the powerpc boards that I was
>> using during initial development. The in tree images worked perfectly.
>>
>> For everything I've done in the past, I've always used in tree uImages
>> or patched the
>> kernel tree itself to generated images that worked for the board in question.
>>
>> The difference in approach could likely be chalked up to a guy just
>> trying to get a
>> kernel to boot, and someone working more closely with the bootloader -> kernel
>> handoff.
>>
>> I think a variable, or some other switch, to support the two workflows
>> is a reasonable
>> compromise.
>
> Part of the history[1], and I was surprised at the time too, was that
> for ARM at least, rmk had said that you should not use the uImages
> generated by the kernel. So the question is, has this changed? Is
> this an ARM-only thing?'
I've been booting uImages generated by the kernel on ARM boards since nearly
2008. So it may be more of a per-board thing now .. or something else entirely.
Cheers,
Bruce
>
> [1]: http://lists.linuxtogo.org/pipermail/openembedded-devel/2008-November/007096.html
>
> --
> Tom
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-15 15:06 ` Koen Kooi
@ 2011-12-16 1:56 ` Cui, Dexuan
2011-12-16 12:42 ` Dmitry Eremin-Solenikov
1 sibling, 0 replies; 42+ messages in thread
From: Cui, Dexuan @ 2011-12-16 1:56 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer, Richard Purdie
Cc: Dmitry Eremin-Solenikov, Koen Kooi
Koen Kooi wrote on 2011-12-15:
>
> Op 15 dec. 2011, om 15:58 heeft Richard Purdie het volgende geschreven:
>
>> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>>> Currently sdk generation might fail with the following error:
>>> | Collected errors:
>>> | * extract_archive: Cannot create symlink from ./var/log to
>>> 'volatile/log': File exists.
>>> ERROR: Function 'do_populate_sdk' failed
>>>
>>> This happens as consolekit package will include both
>>> /var/log/ConsoleKit and /var/volatile/log/ConsoleKit files:
>>> lumag@fangorn:~/OE-scripts$ dpkg-deb -c
> build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk |
> grep var
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/ drwxr-xr-x
>>> root/root 0 2011-12-07 22:12 ./var/log/ drwxr-xr-x root/root
>>> 0 2011-12-07 22:12 ./var/log/ConsoleKit/ lrwxrwxrwx root/root
>>> 0 2011-12-07 22:12 ./var/run -> volatile/run drwxr-xr-x root/root
>>> 0 2011-12-07 22:12 ./var/volatile/ drwxr-xr-x root/root
>>> 0 2011-12-07 22:12 ./var/volatile/log/ drwxr-xr-x root/root 0
>>> 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/ drwxr-xr-x root/root
>>> 0 2011-12-07 22:12 ./var/volatile/run/ drwxr-xr-x root/root
>>> 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
>>>
>>> Inclusion of both log directories causes this error. Drop the
>>> /var/log/ConsoleKit in favour of /var/volatile/log
>>>
>>> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
>>
>> This effectively reverts:
>>
> http://git.openembedded.org/openembedded-core/commit/?id=5608a748
> af2c7
>> 54f60137ab7c3010ccce6bf9e40 so I think this fixes one problem at the
>> expense of causing another.
>> Koen: Any comments?
>
> If you revert it consolekit won't work at runtime because it fails to start.
We need to find the proper fix.
meta-toolchain-gmae building (at least with ipk packaging) has been broken by this for half a month...
Thanks,
-- Dexuan
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-15 15:06 ` Koen Kooi
2011-12-16 1:56 ` Cui, Dexuan
@ 2011-12-16 12:42 ` Dmitry Eremin-Solenikov
1 sibling, 0 replies; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-16 12:42 UTC (permalink / raw)
To: openembedded-core; +Cc: Koen Kooi
Koen,
On 12/15/2011 07:06 PM, Koen Kooi wrote:
>
> Op 15 dec. 2011, om 15:58 heeft Richard Purdie het volgende geschreven:
>
>> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>>> Currently sdk generation might fail with the following error:
>>> | Collected errors:
>>> | * extract_archive: Cannot create symlink from ./var/log to
>>> 'volatile/log': File exists.
>>> ERROR: Function 'do_populate_sdk' failed
>>>
>>> This happens as consolekit package will include both /var/log/ConsoleKit
>>> and /var/volatile/log/ConsoleKit files:
>>> lumag@fangorn:~/OE-scripts$ dpkg-deb -c build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk | grep var
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/log/
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/log/ConsoleKit/
>>> lrwxrwxrwx root/root 0 2011-12-07 22:12 ./var/run -> volatile/run
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/log/
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/run/
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
>>>
>>> Inclusion of both log directories causes this error. Drop the
>>> /var/log/ConsoleKit
>>> in favour of /var/volatile/log
>>>
>>> Signed-off-by: Dmitry Eremin-Solenikov<dbaryshkov@gmail.com>
>>
>> This effectively reverts:
>> http://git.openembedded.org/openembedded-core/commit/?id=5608a748af2c754f60137ab7c3010ccce6bf9e40
>> so I think this fixes one problem at the expense of causing another.
>> Koen: Any comments?
>
> If you revert it consolekit won't work at runtime because it fails to start.
In your usecase, do you have a /var/volatile?
/var/volatile/log/ConsoleKit? Could you please be more specific in the
layout of your /var and in the error/trace of consolekit on your side?
I'd really like to solve this somehow as for now I have a broken SDK
generation (at it seems it's not my fault as other people on ML
suggested that they experienced errors with meta-toolchain-gmae).
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-15 16:20 ` Cui, Dexuan
@ 2011-12-16 12:42 ` Dmitry Eremin-Solenikov
2011-12-16 15:25 ` Richard Purdie
0 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-16 12:42 UTC (permalink / raw)
To: openembedded-core
On 12/15/2011 08:20 PM, Cui, Dexuan wrote:
> Richard Purdie wrote on 2011-12-15:
>> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>>> Currently sdk generation might fail with the following error:
>>> | Collected errors:
>>> | * extract_archive: Cannot create symlink from ./var/log to
>>> 'volatile/log': File exists.
>>> ERROR: Function 'do_populate_sdk' failed
>>>
>>> This happens as consolekit package will include both
>>> /var/log/ConsoleKit and /var/volatile/log/ConsoleKit files:
>>> lumag@fangorn:~/OE-scripts$ dpkg-deb -c
>> build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk |
>> grep var
>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/ drwxr-xr-x
>>> root/root 0 2011-12-07 22:12 ./var/log/ drwxr-xr-x root/root
>>> 0 2011-12-07 22:12 ./var/log/ConsoleKit/ lrwxrwxrwx root/root
>>> 0 2011-12-07 22:12 ./var/run -> volatile/run drwxr-xr-x root/root
>>> 0 2011-12-07 22:12 ./var/volatile/ drwxr-xr-x root/root 0
>>> 2011-12-07 22:12 ./var/volatile/log/ drwxr-xr-x root/root 0
>>> 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/ drwxr-xr-x root/root
>>> 0 2011-12-07 22:12 ./var/volatile/run/ drwxr-xr-x root/root
>>> 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
>>>
>>> Inclusion of both log directories causes this error. Drop the
>>> /var/log/ConsoleKit in favour of /var/volatile/log
> Hi Dmitry,
> Could you please explain how and where the extract_archive error is caused?
> Where is /var/log linked to /var/volatile/log?
I have tried building meta-toolchain-qte... and I got exactly the error
from my original message.
>
> Do you mean RP's patch "consolekit: Fix ${localstatedir} race" didn't fix the issue?
> (I suspect so)
Yes, I still had the issues even after PR's patch.
>
>> This effectively reverts:
>> http://git.openembedded.org/openembedded-core/commit/?id=5608a748
>> af2c754f60137ab7c3010ccce6bf9e40 so I think this fixes one problem at
>> the expense of causing another. Koen: Any comments?
>
> Thanks,
> -- Dexuan
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-16 12:42 ` Dmitry Eremin-Solenikov
@ 2011-12-16 15:25 ` Richard Purdie
2011-12-16 16:07 ` Dmitry Eremin-Solenikov
0 siblings, 1 reply; 42+ messages in thread
From: Richard Purdie @ 2011-12-16 15:25 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, 2011-12-16 at 16:42 +0400, Dmitry Eremin-Solenikov wrote:
> On 12/15/2011 08:20 PM, Cui, Dexuan wrote:
> > Richard Purdie wrote on 2011-12-15:
> >> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> >>> Currently sdk generation might fail with the following error:
> >>> | Collected errors:
> >>> | * extract_archive: Cannot create symlink from ./var/log to
> >>> 'volatile/log': File exists.
> >>> ERROR: Function 'do_populate_sdk' failed
> >>>
> >>> This happens as consolekit package will include both
> >>> /var/log/ConsoleKit and /var/volatile/log/ConsoleKit files:
> >>> lumag@fangorn:~/OE-scripts$ dpkg-deb -c
> >> build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk |
> >> grep var
> >>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/ drwxr-xr-x
> >>> root/root 0 2011-12-07 22:12 ./var/log/ drwxr-xr-x root/root
> >>> 0 2011-12-07 22:12 ./var/log/ConsoleKit/ lrwxrwxrwx root/root
> >>> 0 2011-12-07 22:12 ./var/run -> volatile/run drwxr-xr-x root/root
> >>> 0 2011-12-07 22:12 ./var/volatile/ drwxr-xr-x root/root 0
> >>> 2011-12-07 22:12 ./var/volatile/log/ drwxr-xr-x root/root 0
> >>> 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/ drwxr-xr-x root/root
> >>> 0 2011-12-07 22:12 ./var/volatile/run/ drwxr-xr-x root/root
> >>> 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
> >>>
> >>> Inclusion of both log directories causes this error. Drop the
> >>> /var/log/ConsoleKit in favour of /var/volatile/log
> > Hi Dmitry,
> > Could you please explain how and where the extract_archive error is caused?
> > Where is /var/log linked to /var/volatile/log?
>
> I have tried building meta-toolchain-qte... and I got exactly the error
> from my original message.
>
> >
> > Do you mean RP's patch "consolekit: Fix ${localstatedir} race" didn't fix the issue?
> > (I suspect so)
>
> Yes, I still had the issues even after PR's patch.
>
> >
> >> This effectively reverts:
> >> http://git.openembedded.org/openembedded-core/commit/?id=5608a748
> >> af2c754f60137ab7c3010ccce6bf9e40 so I think this fixes one problem at
> >> the expense of causing another. Koen: Any comments?
> >
> > Thanks,
> > -- Dexuan
I believe this is an installation ordering problem in opkg. If you apply
my opkg patch (and the nativesdk one I just posted), I don't see this
problem with meta-toolchain-gmae.
Cheers,
Richard
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-16 15:25 ` Richard Purdie
@ 2011-12-16 16:07 ` Dmitry Eremin-Solenikov
2011-12-16 16:46 ` Richard Purdie
0 siblings, 1 reply; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-16 16:07 UTC (permalink / raw)
To: openembedded-core
On 12/16/2011 07:25 PM, Richard Purdie wrote:
> On Fri, 2011-12-16 at 16:42 +0400, Dmitry Eremin-Solenikov wrote:
>> On 12/15/2011 08:20 PM, Cui, Dexuan wrote:
>>> Richard Purdie wrote on 2011-12-15:
>>>> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>>>>> Currently sdk generation might fail with the following error:
>>>>> | Collected errors:
>>>>> | * extract_archive: Cannot create symlink from ./var/log to
>>>>> 'volatile/log': File exists.
>>>>> ERROR: Function 'do_populate_sdk' failed
>>>>>
>>>>> This happens as consolekit package will include both
>>>>> /var/log/ConsoleKit and /var/volatile/log/ConsoleKit files:
>>>>> lumag@fangorn:~/OE-scripts$ dpkg-deb -c
>>>> build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk |
>>>> grep var
>>>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/ drwxr-xr-x
>>>>> root/root 0 2011-12-07 22:12 ./var/log/ drwxr-xr-x root/root
>>>>> 0 2011-12-07 22:12 ./var/log/ConsoleKit/ lrwxrwxrwx root/root
>>>>> 0 2011-12-07 22:12 ./var/run -> volatile/run drwxr-xr-x root/root
>>>>> 0 2011-12-07 22:12 ./var/volatile/ drwxr-xr-x root/root 0
>>>>> 2011-12-07 22:12 ./var/volatile/log/ drwxr-xr-x root/root 0
>>>>> 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/ drwxr-xr-x root/root
>>>>> 0 2011-12-07 22:12 ./var/volatile/run/ drwxr-xr-x root/root
>>>>> 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
>>>>>
>>>>> Inclusion of both log directories causes this error. Drop the
>>>>> /var/log/ConsoleKit in favour of /var/volatile/log
>>> Hi Dmitry,
>>> Could you please explain how and where the extract_archive error is caused?
>>> Where is /var/log linked to /var/volatile/log?
>>
>> I have tried building meta-toolchain-qte... and I got exactly the error
>> from my original message.
>>
>>>
>>> Do you mean RP's patch "consolekit: Fix ${localstatedir} race" didn't fix the issue?
>>> (I suspect so)
>>
>> Yes, I still had the issues even after PR's patch.
>>
>>>
>>>> This effectively reverts:
>>>> http://git.openembedded.org/openembedded-core/commit/?id=5608a748
>>>> af2c754f60137ab7c3010ccce6bf9e40 so I think this fixes one problem at
>>>> the expense of causing another. Koen: Any comments?
>>>
>>> Thanks,
>>> -- Dexuan
>
> I believe this is an installation ordering problem in opkg. If you apply
> my opkg patch (and the nativesdk one I just posted), I don't see this
> problem with meta-toolchain-gmae.
I still see one problem. Without my patch I have both
/var/volatile/log/ConsoleKit and /var/log/ConsoleKit in consolekit
package. Won't that cause troubles?
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 3/9] bitbake.conf, core-image-minimal-initramfs: add INITRAMFS_FSTYPES
2011-12-13 16:19 ` [PATCH 3/9] bitbake.conf, core-image-minimal-initramfs: add INITRAMFS_FSTYPES Dmitry Eremin-Solenikov
@ 2011-12-16 16:16 ` Richard Purdie
0 siblings, 0 replies; 42+ messages in thread
From: Richard Purdie @ 2011-12-16 16:16 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> Initramfs images don't benefit from usual IMAGE_FSTYPES overrides. The
> only sane values for them are "cpio.XXX". If IMAGE_FSTYPES is set to
> include 'live', building core-image-minimal-initramfs can result in
> build error, if the image is built before the kernel. To stop initramfs
> images from responding on IMAGE_FSTYPES settings, but still allow
> users/developers to override defaults (e.g. to generate "cpio.lzma"
> initramfs), introduce INITRAMFS_FSTYPES variable, by default set to
> "cpio.gz".
>
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> meta/conf/bitbake.conf | 1 +
> .../images/core-image-minimal-initramfs.bb | 2 +-
> 2 files changed, 2 insertions(+), 1 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 6/9] libgcc: reintroduce debug package, containing symbols
2011-12-13 16:19 ` [PATCH 6/9] libgcc: reintroduce debug package, containing symbols Dmitry Eremin-Solenikov
@ 2011-12-16 16:17 ` Richard Purdie
0 siblings, 0 replies; 42+ messages in thread
From: Richard Purdie @ 2011-12-16 16:17 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> meta/recipes-devtools/gcc/libgcc_4.6.bb | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 8/9] readline: drop empty dir to shut up QA warning
2011-12-13 16:19 ` [PATCH 8/9] readline: drop empty dir to shut up " Dmitry Eremin-Solenikov
@ 2011-12-16 16:17 ` Richard Purdie
0 siblings, 0 replies; 42+ messages in thread
From: Richard Purdie @ 2011-12-16 16:17 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> meta/recipes-core/readline/readline.inc | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-16 16:07 ` Dmitry Eremin-Solenikov
@ 2011-12-16 16:46 ` Richard Purdie
2011-12-16 17:55 ` Dmitry Eremin-Solenikov
0 siblings, 1 reply; 42+ messages in thread
From: Richard Purdie @ 2011-12-16 16:46 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Fri, 2011-12-16 at 20:07 +0400, Dmitry Eremin-Solenikov wrote:
> On 12/16/2011 07:25 PM, Richard Purdie wrote:
> > On Fri, 2011-12-16 at 16:42 +0400, Dmitry Eremin-Solenikov wrote:
> >> On 12/15/2011 08:20 PM, Cui, Dexuan wrote:
> >>> Richard Purdie wrote on 2011-12-15:
> >>>> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
> >>>>> Currently sdk generation might fail with the following error:
> >>>>> | Collected errors:
> >>>>> | * extract_archive: Cannot create symlink from ./var/log to
> >>>>> 'volatile/log': File exists.
> >>>>> ERROR: Function 'do_populate_sdk' failed
> >>>>>
> >>>>> This happens as consolekit package will include both
> >>>>> /var/log/ConsoleKit and /var/volatile/log/ConsoleKit files:
> >>>>> lumag@fangorn:~/OE-scripts$ dpkg-deb -c
> >>>> build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk |
> >>>> grep var
> >>>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/ drwxr-xr-x
> >>>>> root/root 0 2011-12-07 22:12 ./var/log/ drwxr-xr-x root/root
> >>>>> 0 2011-12-07 22:12 ./var/log/ConsoleKit/ lrwxrwxrwx root/root
> >>>>> 0 2011-12-07 22:12 ./var/run -> volatile/run drwxr-xr-x root/root
> >>>>> 0 2011-12-07 22:12 ./var/volatile/ drwxr-xr-x root/root 0
> >>>>> 2011-12-07 22:12 ./var/volatile/log/ drwxr-xr-x root/root 0
> >>>>> 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/ drwxr-xr-x root/root
> >>>>> 0 2011-12-07 22:12 ./var/volatile/run/ drwxr-xr-x root/root
> >>>>> 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
> >>>>>
> >>>>> Inclusion of both log directories causes this error. Drop the
> >>>>> /var/log/ConsoleKit in favour of /var/volatile/log
> >>> Hi Dmitry,
> >>> Could you please explain how and where the extract_archive error is caused?
> >>> Where is /var/log linked to /var/volatile/log?
> >>
> >> I have tried building meta-toolchain-qte... and I got exactly the error
> >> from my original message.
> >>
> >>>
> >>> Do you mean RP's patch "consolekit: Fix ${localstatedir} race" didn't fix the issue?
> >>> (I suspect so)
> >>
> >> Yes, I still had the issues even after PR's patch.
> >>
> >>>
> >>>> This effectively reverts:
> >>>> http://git.openembedded.org/openembedded-core/commit/?id=5608a748
> >>>> af2c754f60137ab7c3010ccce6bf9e40 so I think this fixes one problem at
> >>>> the expense of causing another. Koen: Any comments?
> >>>
> >>> Thanks,
> >>> -- Dexuan
> >
> > I believe this is an installation ordering problem in opkg. If you apply
> > my opkg patch (and the nativesdk one I just posted), I don't see this
> > problem with meta-toolchain-gmae.
>
> I still see one problem. Without my patch I have both
> /var/volatile/log/ConsoleKit and /var/log/ConsoleKit in consolekit
> package. Won't that cause troubles?
No, that wasn't the problem opkg was reporting. The problem opkg was
reporting was that base-files hadn't installed first and its responsible
for setting up the var symlinks.
Cheers,
Richard
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 4/9] consolekit: fix sdk generation issues
2011-12-16 16:46 ` Richard Purdie
@ 2011-12-16 17:55 ` Dmitry Eremin-Solenikov
0 siblings, 0 replies; 42+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-12-16 17:55 UTC (permalink / raw)
To: openembedded-core
On 12/16/2011 08:46 PM, Richard Purdie wrote:
> On Fri, 2011-12-16 at 20:07 +0400, Dmitry Eremin-Solenikov wrote:
>> On 12/16/2011 07:25 PM, Richard Purdie wrote:
>>> On Fri, 2011-12-16 at 16:42 +0400, Dmitry Eremin-Solenikov wrote:
>>>> On 12/15/2011 08:20 PM, Cui, Dexuan wrote:
>>>>> Richard Purdie wrote on 2011-12-15:
>>>>>> On Tue, 2011-12-13 at 20:19 +0400, Dmitry Eremin-Solenikov wrote:
>>>>>>> Currently sdk generation might fail with the following error:
>>>>>>> | Collected errors:
>>>>>>> | * extract_archive: Cannot create symlink from ./var/log to
>>>>>>> 'volatile/log': File exists.
>>>>>>> ERROR: Function 'do_populate_sdk' failed
>>>>>>>
>>>>>>> This happens as consolekit package will include both
>>>>>>> /var/log/ConsoleKit and /var/volatile/log/ConsoleKit files:
>>>>>>> lumag@fangorn:~/OE-scripts$ dpkg-deb -c
>>>>>> build/tmp--eglibc/deploy/ipk/core2/consolekit_0.4.5-r7_core2.ipk |
>>>>>> grep var
>>>>>>> drwxr-xr-x root/root 0 2011-12-07 22:12 ./var/ drwxr-xr-x
>>>>>>> root/root 0 2011-12-07 22:12 ./var/log/ drwxr-xr-x root/root
>>>>>>> 0 2011-12-07 22:12 ./var/log/ConsoleKit/ lrwxrwxrwx root/root
>>>>>>> 0 2011-12-07 22:12 ./var/run -> volatile/run drwxr-xr-x root/root
>>>>>>> 0 2011-12-07 22:12 ./var/volatile/ drwxr-xr-x root/root 0
>>>>>>> 2011-12-07 22:12 ./var/volatile/log/ drwxr-xr-x root/root 0
>>>>>>> 2011-12-07 22:12 ./var/volatile/log/ConsoleKit/ drwxr-xr-x root/root
>>>>>>> 0 2011-12-07 22:12 ./var/volatile/run/ drwxr-xr-x root/root
>>>>>>> 0 2011-12-07 22:12 ./var/volatile/run/ConsoleKit/
>>>>>>>
>>>>>>> Inclusion of both log directories causes this error. Drop the
>>>>>>> /var/log/ConsoleKit in favour of /var/volatile/log
>>>>> Hi Dmitry,
>>>>> Could you please explain how and where the extract_archive error is caused?
>>>>> Where is /var/log linked to /var/volatile/log?
>>>>
>>>> I have tried building meta-toolchain-qte... and I got exactly the error
>>>> from my original message.
>>>>
>>>>>
>>>>> Do you mean RP's patch "consolekit: Fix ${localstatedir} race" didn't fix the issue?
>>>>> (I suspect so)
>>>>
>>>> Yes, I still had the issues even after PR's patch.
>>>>
>>>>>
>>>>>> This effectively reverts:
>>>>>> http://git.openembedded.org/openembedded-core/commit/?id=5608a748
>>>>>> af2c754f60137ab7c3010ccce6bf9e40 so I think this fixes one problem at
>>>>>> the expense of causing another. Koen: Any comments?
>>>>>
>>>>> Thanks,
>>>>> -- Dexuan
>>>
>>> I believe this is an installation ordering problem in opkg. If you apply
>>> my opkg patch (and the nativesdk one I just posted), I don't see this
>>> problem with meta-toolchain-gmae.
>>
>> I still see one problem. Without my patch I have both
>> /var/volatile/log/ConsoleKit and /var/log/ConsoleKit in consolekit
>> package. Won't that cause troubles?
>
> No, that wasn't the problem opkg was reporting. The problem opkg was
> reporting was that base-files hadn't installed first and its responsible
> for setting up the var symlinks.
That is not the problem that was reported by opkg. That is what I saw in
the built package - /var/volatile/log/ConsoleKit and /var/log/ConsoleKit.
BTW, Koen. I've just built a consolekit package in Angstrom environment
with my patch applied and here is the interesting part:
lumag@fangorn:~/OE-scripts$ dpkg-deb -c
build/tmp-angstrom-eglibc/deploy/ipk/armv5te/consolekit_0.4.5-r8_armv5te.ipk
| grep var
drwxr-xr-x root/root 0 2011-12-16 21:32 ./var/
drwxr-xr-x root/root 0 2011-12-16 21:32 ./var/run/
drwxr-xr-x root/root 0 2011-12-16 21:32 ./var/run/ConsoleKit/
drwxr-xr-x root/root 0 2011-12-16 21:32 ./var/log/
drwxr-xr-x root/root 0 2011-12-16 21:32 ./var/log/ConsoleKit/
So the package does include the /var/log/ConsoleKit even without
explicit note on it. Could you please recheck your environment and try
building/checking consolekit package with my patch applied?
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 42+ messages in thread
end of thread, other threads:[~2011-12-16 18:03 UTC | newest]
Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
2011-12-13 16:19 ` [PATCH 2/9] kernel.bbclass: move uImage handling to separate task Dmitry Eremin-Solenikov
2011-12-14 21:20 ` Koen Kooi
2011-12-15 6:23 ` Dmitry Eremin-Solenikov
2011-12-15 13:55 ` Bruce Ashfield
2011-12-15 19:09 ` Tom Rini
2011-12-15 19:20 ` Bruce Ashfield
2011-12-13 16:19 ` [PATCH 3/9] bitbake.conf, core-image-minimal-initramfs: add INITRAMFS_FSTYPES Dmitry Eremin-Solenikov
2011-12-16 16:16 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 4/9] consolekit: fix sdk generation issues Dmitry Eremin-Solenikov
2011-12-15 14:58 ` Richard Purdie
2011-12-15 15:06 ` Koen Kooi
2011-12-16 1:56 ` Cui, Dexuan
2011-12-16 12:42 ` Dmitry Eremin-Solenikov
2011-12-15 16:20 ` Cui, Dexuan
2011-12-16 12:42 ` Dmitry Eremin-Solenikov
2011-12-16 15:25 ` Richard Purdie
2011-12-16 16:07 ` Dmitry Eremin-Solenikov
2011-12-16 16:46 ` Richard Purdie
2011-12-16 17:55 ` Dmitry Eremin-Solenikov
2011-12-13 16:19 ` [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass Dmitry Eremin-Solenikov
2011-12-13 16:27 ` Phil Blundell
2011-12-13 16:52 ` Dmitry Eremin-Solenikov
2011-12-15 14:55 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 6/9] libgcc: reintroduce debug package, containing symbols Dmitry Eremin-Solenikov
2011-12-16 16:17 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 7/9] ncurses: drop empty dir to remove QA warning Dmitry Eremin-Solenikov
2011-12-13 19:43 ` Khem Raj
2011-12-13 16:19 ` [PATCH 8/9] readline: drop empty dir to shut up " Dmitry Eremin-Solenikov
2011-12-16 16:17 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 9/9] libatomic-ops: drop directory with documentation to remove " Dmitry Eremin-Solenikov
2011-12-13 19:48 ` Richard Purdie
2011-12-13 22:07 ` Dmitry Eremin-Solenikov
2011-12-15 12:26 ` Richard Purdie
2011-12-13 16:22 ` [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Phil Blundell
2011-12-13 16:46 ` Dmitry Eremin-Solenikov
2011-12-14 0:15 ` Darren Hart
2011-12-14 0:17 ` Dmitry Eremin-Solenikov
2011-12-14 0:19 ` Darren Hart
2011-12-15 9:27 ` Koen Kooi
2011-12-15 13:57 ` Bruce Ashfield
2011-12-15 14:56 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox