From 2ba996fa8931260bffc9514d26f48b4f52171705 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 23 Mar 2017 10:07:22 +0100 Subject: bsp/qoriq: Add post-link hook --- c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc b/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc index 84a426cf80..695c574a9f 100644 --- a/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc +++ b/c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc @@ -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 -- cgit v1.2.3