diff --git a/giteapc.make b/giteapc.make index df2fd19..b259899 100644 --- a/giteapc.make +++ b/giteapc.make @@ -1,10 +1,15 @@ # giteapc: version=1 -PREFIX ?= $(GITEAPC_PREFIX) VERSION_BINUTILS := 2.37 VERSION_GCC := 11.2.0 --include giteapc-config.make +# 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) diff --git a/vxsdk.toml b/vxsdk.toml new file mode 100644 index 0000000..d660ac4 --- /dev/null +++ b/vxsdk.toml @@ -0,0 +1,10 @@ +[package] +name = 'sh-elf-vhex' +version = '1.0.0' +type = 'custom' + +[[build]] +custom.configure = 'make -f giteapc.make configure' +custom.build = 'make -f giteapc.make build' +custom.install = 'make -f giteapc.make install' +custom.uninstall = 'make -f giteapc.make uninstall'