[rtems commit] bsp/qoriq: Add post-link hook
Sebastian Huber
sebh at rtems.org
Mon Apr 3 12:08:53 UTC 2017
Module: rtems
Branch: master
Commit: 2ba996fa8931260bffc9514d26f48b4f52171705
Changeset: http://git.rtems.org/rtems/commit/?id=2ba996fa8931260bffc9514d26f48b4f52171705
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Mar 23 10:07:22 2017 +0100
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 84a426c..695c574 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
More information about the vc
mailing list