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

Update Makefile to compile properly wrpc-sw submodule.

parent 096fa3a8
# .gitignore file # .gitignore file
xcompiler/*
# OS generated files # # OS generated files #
###################### ######################
*.bak *.bak
......
...@@ -14,8 +14,13 @@ ...@@ -14,8 +14,13 @@
## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
######################################################################## ########################################################################
SUBMOD_DIRS=spec-sw wr-nic fmc-dio wrpc-sw coht-vic SUBMOD_DIRS=spec-sw wr-nic fmc-dio coht-vic
MAKE_DIRS = spec-sw wr-nic fmc-dio wrpc-sw coht-vic #tools MAKE_DIRS = spec-sw wr-nic fmc-dio 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) #RUNME := $(shell test -d $(FMC_DRV) || git submodule update --init)
...@@ -40,14 +45,9 @@ patch: ...@@ -40,14 +45,9 @@ patch:
update: update:
./scripts/wr-ssk-get -f ./scripts/wr-ssk-get -f
git submodule update git submodule update
cd spec-sw @rm -rf $(XCOMPILER_DIR)
git submodule update mkdir -p $(XCOMPILER_DIR)
cd wr-nic cd $(XCOMPILER_DIR) && wget $(LM32_XCOMPILER_URL)/$(LM32_XCOMPILER_NAME) \
git submodule update && tar xvf $(LM32_XCOMPILER_NAME)
cd fmc-dio cd wrpc-sw && make spec_defconfig && \
git submodule update CROSS_COMPILE="$(shell pwd)/$(XCOMPILER_DIR)/$(LM32_XCOMPILER_NAME_DIR)/bin/lm32-elf-" make
cd wrpc-sw
git submodule update
cd coht-vic
git submodule update
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