forked from Imagelibrary/rtems
bsp/qoriq: Add post-link hook
This commit is contained in:
@@ -16,3 +16,10 @@ CFLAGS_OPTIMIZE_V = -O2 -g
|
||||
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
|
||||
|
||||
LDFLAGS = -Wl,--gc-sections
|
||||
|
||||
define bsp-post-link
|
||||
$(OBJCOPY) -O binary '$@' '$(basename $@).bin'
|
||||
gzip -f -9 '$(basename $@).bin'
|
||||
mkimage -A ppc -O linux -T kernel -a 0x4000 -e 0x4000 -name '$(notdir $@)' -d '$(basename $@).bin.gz' '$(basename $@).img'
|
||||
$(default-bsp-post-link)
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user