diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-23 10:07:22 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-04-03 14:07:58 +0200 |
commit | 2ba996fa8931260bffc9514d26f48b4f52171705 (patch) | |
tree | 5761f90b6e1f4d35c7340f0ccc31b2e05ac03f1b | |
parent | bsps: Fix baud settings (diff) | |
download | rtems-2ba996fa8931260bffc9514d26f48b4f52171705.tar.bz2 |
bsp/qoriq: Add post-link hook
-rw-r--r-- | c/src/lib/libbsp/powerpc/qoriq/make/custom/qoriq.inc | 7 |
1 files changed, 7 insertions, 0 deletions
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 |