mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 1/8] Makefile.lib: add disasm and ln commands
Date: Sun, 12 Aug 2012 16:22:39 +0200	[thread overview]
Message-ID: <1344781367-13547-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1344781367-13547-1-git-send-email-s.hauer@pengutronix.de>

disasm: For generating an disasssembly of an ELF file
ln: For creating a softlink

Use the disasm command for generating barebox.S

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 Makefile             |    4 +---
 scripts/Makefile.lib |    6 ++++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index ce1506c..06a94c3 100644
--- a/Makefile
+++ b/Makefile
@@ -254,6 +254,7 @@ MAKEFLAGS += --include-dir=$(srctree)
 
 # We need some generic definitions.
 include $(srctree)/scripts/Kbuild.include
+include $(srctree)/scripts/Makefile.lib
 
 # Make variables (CC, etc...)
 
@@ -703,9 +704,6 @@ endif
 	@echo " * Init Calls content" >> barebox.S
 	$(Q)$(OBJDUMP) -j .barebox_initcalls -d barebox >> barebox.S
 else
-quiet_cmd_disasm = DISASM  $@
-      cmd_disasm = $(OBJDUMP) -d $< > $@
-
 barebox.S: barebox FORCE
 	$(call if_changed,disasm)
 endif
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 1a5b2b5..cb46db2 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -242,3 +242,9 @@ quiet_cmd_xzmisc = XZMISC  $@
 cmd_xzmisc = (cat $(filter-out FORCE,$^) | \
 	xz --check=crc32 --lzma2=dict=1MiB) > $@ || \
 	(rm -f $@ ; false)
+
+quiet_cmd_disasm = DISASM  $@
+cmd_disasm = $(OBJDUMP) -d $< > $@
+
+quiet_cmd_ln = LN      $@
+cmd_ln = ln -sf $< $@
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2012-08-12 14:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-12 14:22 [PATCH v2] pbl updates Sascha Hauer
2012-08-12 14:22 ` Sascha Hauer [this message]
2012-08-12 14:22 ` [PATCH 2/8] Makefile: generate a barebox-flash-image link Sascha Hauer
2012-08-12 14:22 ` [PATCH 4/8] ARM s3c boards: Do not hardcode image sizes Sascha Hauer
2012-08-12 14:37   ` Juergen Beisert
2012-08-12 14:22 ` [PATCH 5/8] ARM boards: Make boards pbl safe Sascha Hauer
2012-08-12 14:22 ` [PATCH 6/8] ARM Makefile: Do not hardcode targets in MLO/netx/davinci/s5p Sascha Hauer
2012-08-12 14:22 ` [PATCH 7/8] ARM: fix netx/MLO/s5p image build for pbl Sascha Hauer
2012-08-12 14:22 ` [PATCH 8/8] ARM pbl: generate zbarebox.map in $(obj) Sascha Hauer
2012-08-12 18:03 ` [PATCH v2] pbl updates Jean-Christophe PLAGNIOL-VILLARD

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=1344781367-13547-2-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox