[oe-commits] Antonio Ospite : image.bbclass: create /etc/ device_table from IMAGE_DEVICE_TABLES
git version control
git at git.openembedded.org
Wed Apr 28 16:24:45 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 79ec64232942ceec65237ed708b79c2f2ced6d67
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=79ec64232942ceec65237ed708b79c2f2ced6d67
Author: Antonio Ospite <ospite at studenti.unina.it>
Date: Mon Apr 26 05:36:34 2010 +0000
image.bbclass: create /etc/device_table from IMAGE_DEVICE_TABLES
Right now when the 'devices' script from initscripts is called the
layout specified in IMAGE_DEVICES_TABLES is lost.
With this change the default behaviour when no IMAGE_DEVICE_TABLES is
specified is to always use files/device_table-minimal.txt
Signed-off-by: Antonio Ospite <ospite at studenti.unina.it>
Signed-off-by: Koen Kooi <koen at openembedded.org>
---
classes/image.bbclass | 4 ++++
recipes/initscripts/initscripts_1.0.bb | 4 +++-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 8e202f0..0fcbc44 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -119,8 +119,12 @@ fakeroot do_rootfs () {
mkdir -p ${IMAGE_ROOTFS}
mkdir -p ${DEPLOY_DIR_IMAGE}
+ mkdir -p ${IMAGE_ROOTFS}/etc
+
if [ "${USE_DEVFS}" != "1" ]; then
+ rm -rf ${IMAGE_ROOTFS}/etc/device_table
for devtable in ${@get_devtable_list(d)}; do
+ cat $devtable >> ${IMAGE_ROOTFS}/etc/device_table
makedevs -r ${IMAGE_ROOTFS} -D $devtable
done
fi
diff --git a/recipes/initscripts/initscripts_1.0.bb b/recipes/initscripts/initscripts_1.0.bb
index 2c0689f..43cf347 100644
--- a/recipes/initscripts/initscripts_1.0.bb
+++ b/recipes/initscripts/initscripts_1.0.bb
@@ -4,7 +4,7 @@ PRIORITY = "required"
DEPENDS = "makedevs"
RDEPENDS = "makedevs"
LICENSE = "GPL"
-PR = "r117"
+PR = "r118"
SRC_URI = "file://functions \
file://halt \
@@ -35,6 +35,8 @@ SRC_URI = "file://functions \
SRC_URI_append_arm = " file://alignment.sh"
+CONFFILES_${PN} += "${sysconfdir}/device_table"
+
KERNEL_VERSION = ""
do_install () {
More information about the Openembedded-commits
mailing list