Commit a15f8233 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

trivial: simplify make rule for binary config

... and it saves 60 bytes if CMD_CONFIG is set!
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent a49cf395
......@@ -173,10 +173,9 @@ OBJCOPY-TARGET-$(CONFIG_LM32) = -O elf32-lm32 -B lm32
OBJCOPY-TARGET-$(CONFIG_HOST_PROCESS) = -O elf64-x86-64 -B i386
config.o: .config
sed '1,3d' .config > .config.bin
grep CONFIG .config > .config.bin
dd bs=1 count=1 if=/dev/zero 2> /dev/null >> .config.bin
$(OBJCOPY) -I binary $(OBJCOPY-TARGET-y) \
--rename-section .data=.data.config .config.bin $@
$(OBJCOPY) -I binary $(OBJCOPY-TARGET-y) .config.bin $@
rm -f .config.bin
%.bin: %.elf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment