From: Jared Holzman <j.holzman@genesysdesign.com.au>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] target/cramfs/cramfs.mk: Fix device table not being passed to mkcramfs
Date: Tue, 02 Dec 2008 15:15:22 +1100 [thread overview]
Message-ID: <4934B65A.90804@genesysdesign.com.au> (raw)
While mkcramfs was being patched to support a device table, the target device table was not being passed to the mkcramfs options. This patch fixes that
Signed-off-by: Jared Holzman <j.holzman@genesysdesign.com.au>
Index: target/cramfs/cramfs.mk
===================================================================
--- target/cramfs/cramfs.mk (revision 24069)
+++ target/cramfs/cramfs.mk (working copy)
@@ -40,11 +40,15 @@
#
#############################################################
ifeq ($(BR2_ENDIAN),"BIG")
-CRAMFS_ENDIANNESS=-b
+CRAMFS_OPTS=-b
else
-CRAMFS_ENDIANNESS=-l
+CRAMFS_OPTS=-l
endif
+ifneq ($(TARGET_DEVICE_TABLE),)
+CRAMFS_OPTS += -D $(TARGET_DEVICE_TABLE)
+endif
+
CRAMFS_TARGET=$(IMAGE).cramfs
cramfsroot: host-fakeroot makedevs cramfs
@@ -68,7 +72,7 @@
>> $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
endif
# Use fakeroot so mkcramfs believes the previous fakery
- echo "$(CRAMFS_DIR)/mkcramfs -q $(CRAMFS_ENDIANNESS) " \
+ echo "$(CRAMFS_DIR)/mkcramfs -q $(CRAMFS_OPTS) " \
"$(TARGET_DIR) $(CRAMFS_TARGET)" >> $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
chmod a+x $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
$(STAGING_DIR)/usr/bin/fakeroot -- $(PROJECT_BUILD_DIR)/_fakeroot.$(notdir $(CRAMFS_TARGET))
---
Regards,
Jared Holzman
------------------------------------------------------------------------
*Electronics Design Engineer*
*Genesys Electronics Design Pty Ltd*
Unit 5, 33 Ryde Rd Pymble
NSW, Australia 2073
Direct: +612 9496 8924
Phone: +612 9496 8900
Fax: +612 9496 8999
j.holzman at genesysdesign.com.au <mailto:j.holzman@genesysdesign.com.au>
www.genesysdesign.com.au <http://www.genesysdesign.com.au>
------------------------------------------------------------------------
next reply other threads:[~2008-12-02 4:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 4:15 Jared Holzman [this message]
2008-12-02 9:15 ` [Buildroot] [PATCH] target/cramfs/cramfs.mk: Fix device table not being passed to mkcramfs Peter Korsgaard
2008-12-03 3:14 ` Hamish Moffatt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4934B65A.90804@genesysdesign.com.au \
--to=j.holzman@genesysdesign.com.au \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.