diff options
author | Mike Leach <mike.leach@linaro.org> | 2023-12-11 21:25:47 +0000 |
---|---|---|
committer | Mike Leach <mike.leach@linaro.org> | 2023-12-18 14:58:40 +0000 |
commit | bb6979a64ef1b91776b26821791717f161d477bb (patch) | |
tree | 035f97991d78a90e2828031487506ef8e9ea00b0 | |
parent | e7bdf8f3c88b93e0ee568ebb21a64faae8f62258 (diff) | |
download | OpenCSD-bb6979a64ef1b91776b26821791717f161d477bb.tar.gz |
build: Update GCC directory version handling
Setting GCCDIR=1 when using makefile.dev will cause the output directory to be
of the form builddir/<arch>/GCC_<ver>
Fix makefile to allow for version numbers longer than 3 characters.
e.g. 11.3
Signed-off-by: Mike Leach <mike.leach@linaro.org>
-rw-r--r-- | decoder/build/linux/makefile.dev | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/build/linux/makefile.dev b/decoder/build/linux/makefile.dev index aaaa983..4b0b4b0 100644 --- a/decoder/build/linux/makefile.dev +++ b/decoder/build/linux/makefile.dev @@ -57,7 +57,7 @@ CFLAGS += $(MFLAG) LDFLAGS += $(MFLAG) ifdef GCCDIR -GCCVER:= $(shell $(CROSS_COMPILE)gcc -dumpversion | cut -c 1-3) +GCCVER:= $(shell $(CROSS_COMPILE)gcc -dumpversion | sed 's/\([0-9]*\.[0-9]*\).*/\1/') PLAT_DIR=builddir/linux$(BIT_VARIANT)/GCC_$(GCCVER) else PLAT_DIR=linux$(BIT_VARIANT)/$(BUILD_VARIANT) |