Skip to contentSkip to conversation

Customflags for cmd_objcopy

PATCH Konrad Eisele 3 participants 3 messages Feb 3, 2003 Kbuild

lore
Share & tools
lore
#0 lore raw

like with cmd_ld in scripts/Makefile.lib having possibility to add customflags with cmk_objcopy would be nice. When building a ROMKernel I'd like to use:
OBJCOPYFLAGS_rompiggydata := --remove-section=.text OBJCOPYFLAGS_$(MODEL)piggytext := --only-section=.text Currently I have to define my own cmd.
Konrad

scripts/Makefile.lib Mon Feb 3 16:56:04 2003 renamed from scripts/Makefile.lib Fri Jan 17 03:22:09 2003 +1 -1
@@ -173,7 +173,7 @@
 # ---------------------------------------------------------------------------
 
 quiet_cmd_objcopy = OBJCOPY $@
-cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $< $@
+cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
 
 # Gzip
 # ---------------------------------------------------------------------------

______________________________________________________________________________
Werden Sie kreativ! Bei WEB.DE FreeMail heisst es jetzt nicht nur schreiben, sondern auch gestalten. http://freemail.web.de/features/?mc=021142

#1 lore raw
Quoted 5 lines · Konrad Eisele

like with cmd_ld in scripts/Makefile.lib having possibility to add customflags with cmk_objcopy would be nice. When building a ROMKernel I'd like to use:
OBJCOPYFLAGS_rompiggydata := --remove-section=.text OBJCOPYFLAGS_$(MODEL)piggytext := --only-section=.text

Looks good to me.

Sam

#2 lore raw
In reply to Konrad Eisele
Quoted 5 lines · Konrad Eisele

like with cmd_ld in scripts/Makefile.lib having possibility to add customflags with cmk_objcopy would be nice. When building a ROMKernel I'd like to use:
OBJCOPYFLAGS_rompiggydata := --remove-section=.text OBJCOPYFLAGS_$(MODEL)piggytext := --only-section=.text

Makes sense. Could you send your $(if_changed ) thing as patch, too? And possibly for all if_changed_*? (Privately will do)

--Kai