Commit ec70905b authored by Miguel Jimenez Lopez's avatar Miguel Jimenez Lopez

Update Makefile to compile properly wrpc-sw submodule.

parent 096fa3a8
# .gitignore file
xcompiler/*
# OS generated files #
######################
*.bak
......
......@@ -17,6 +17,11 @@
SUBMOD_DIRS=spec-sw wr-nic fmc-dio wrpc-sw coht-vic
MAKE_DIRS = spec-sw wr-nic fmc-dio wrpc-sw coht-vic #tools
LM32_XCOMPILER_URL="https://www.ohwr.org/project/wrpc-sw/uploads/2776ce0ba43503d1486ae205b48fb450"
LM32_XCOMPILER_NAME="lm32_host_64bit.tar.xz"
XCOMPILER_DIR="xcompiler"
LM32_XCOMPILER_NAME_DIR="lm32-gcc-4.5.3"
#RUNME := $(shell test -d $(FMC_DRV) || git submodule update --init)
## Call the sub folder Makefiles
......@@ -40,14 +45,9 @@ patch:
update:
./scripts/wr-ssk-get -f
git submodule update
cd spec-sw
git submodule update
cd wr-nic
git submodule update
cd fmc-dio
git submodule update
cd wrpc-sw
git submodule update
cd coht-vic
git submodule update
@rm -rf $(XCOMPILER_DIR)
mkdir -p $(XCOMPILER_DIR)
cd $(XCOMPILER_DIR) && wget $(LM32_XCOMPILER_URL)/$(LM32_XCOMPILER_NAME) \
&& tar xvf $(LM32_XCOMPILER_NAME)
cd wrpc-sw && make spec_defconfig && \
CROSS_COMPILE="$(shell pwd)/$(XCOMPILER_DIR)/$(LM32_XCOMPILER_NAME_DIR)/bin/lm32-elf-" make
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment