This commit is contained in:
Yann MAGNIN 2022-05-14 11:59:17 +02:00
commit d045a33212
3 changed files with 32 additions and 2 deletions

30
giteapc.make Normal file
View File

@ -0,0 +1,30 @@
# giteapc: version=1
VERSION_BINUTILS := 2.37
VERSION_GCC := 11.2.0
# Try to find if the file is involved by giteapc or vxsdk
ifeq ($(GITEAPC_PREFIX),)
PREFIX ?= $(VXSDK_PREFIX)
endif
ifeq ($(VXSDK_PREFIX),)
PREFIX ?= $(GITEAPC_PREFIX)
endif
configure:
@ cd ./scripts/binutils && ./configure.sh --version=$(VERSION_BINUTILS)
@ cd ./scripts/gcc && ./configure.sh --version=$(VERSION_GCC)
build:
@ cd ./scripts/binutils && ./build.sh
@ cd ./scripts/gcc && ./build.sh
install:
@ cd ./scripts/binutils && ./install.sh --prefix="$(PREFIX)"
@ cd ./scripts/gcc && ./install.sh --prefix="$(PREFIX)"
uninstall:
@ cd ./scripts/binutils && ./uninstall.sh --prefix="$(PREFIX)"
@ cd ./scripts/gcc && ./uninstall.sh --prefix="$(PREFIX)"
.PHONY: configure build install uninstall

View File

@ -49,7 +49,7 @@ PREFIX="$prefix"
# Check that the configuration step has been effectuated
if [[ ! -d ../../build/binutils/build ]]; then
if [[ ! -d ../../build/binutils/bin ]]; then
echo "error: Are you sure to have configured binutils ? it seems that" >&2
echo " the build directory is missing..." >&2
exit 1

View File

@ -49,7 +49,7 @@ PREFIX="$prefix"
# Check that the configuration step has been effectuated
if [[ ! -d ../../build/gcc/build ]]; then
if [[ ! -d ../../build/gcc/bin ]]; then
echo "error: Are you sure to have configured GCC ? it seems that" >&2
echo " the build directory is missing..." >&2
exit 1