Makefile.lib: add disasm and ln commands
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> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
b859e325e9
commit
8e724b3d3e
4
Makefile
4
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
|
||||
|
|
|
@ -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 $< $@
|
||||
|
|
Loading…
Reference in New Issue