seoul: update to recent seoul branch
Required to use intel82576vf in 64bit host mode
This commit is contained in:
parent
009adff441
commit
0654877392
|
@ -1,4 +1,4 @@
|
||||||
SEOUL_REV = 6ee3f454c66fa9fb427ff161ced3fccf6462311a
|
SEOUL_BRANCH = genode_13_08
|
||||||
SEOUL = seoul-git
|
SEOUL = seoul-git
|
||||||
SEOUL_URL = https://github.com/alex-ab/seoul.git
|
SEOUL_URL = https://github.com/alex-ab/seoul.git
|
||||||
|
|
||||||
|
@ -24,30 +24,42 @@ python_not_installed:
|
||||||
@false;
|
@false;
|
||||||
endif
|
endif
|
||||||
|
|
||||||
prepare:: $(CONTRIB_DIR)/$(SEOUL)
|
prepare:: fetch-new-version $(CONTRIB_DIR)/$(SEOUL)/genode_prepared
|
||||||
|
|
||||||
#
|
#
|
||||||
# Port-specific local rules
|
# Port-specific local rules
|
||||||
#
|
#
|
||||||
$(DOWNLOAD_DIR)/$(SEOUL)/.git:
|
$(DOWNLOAD_DIR)/$(SEOUL):
|
||||||
$(VERBOSE)git clone $(SEOUL_URL) $(DOWNLOAD_DIR)/$(SEOUL) && \
|
$(VERBOSE)git clone $(SEOUL_URL) $(DOWNLOAD_DIR)/$(SEOUL) && \
|
||||||
cd download/seoul-git && \
|
cd $(DOWNLOAD_DIR)/$(SEOUL) && \
|
||||||
git reset --hard $(SEOUL_REV) && \
|
git checkout $(SEOUL_BRANCH) && \
|
||||||
cd ../.. && touch $@
|
rm -f $(CURDIR)/$(CONTRIB_DIR)/$(SEOUL)/genode_prepared
|
||||||
|
|
||||||
|
fetch-new-version: $(DOWNLOAD_DIR)/$(SEOUL)
|
||||||
|
$(VERBOSE)(cd download/seoul-git && \
|
||||||
|
git fetch origin --dry-run 2>&1 | grep "$(SEOUL_BRANCH)" && \
|
||||||
|
git pull origin && \
|
||||||
|
rm -f $(CURDIR)/$(CONTRIB_DIR)/$(SEOUL)/genode_prepared) | true
|
||||||
|
|
||||||
I82576VF_DIR = $(CONTRIB_DIR)/$(SEOUL)/model/intel82576vf
|
I82576VF_DIR = $(CONTRIB_DIR)/$(SEOUL)/model/intel82576vf
|
||||||
EXECUTOR_DIR = $(CONTRIB_DIR)/$(SEOUL)/executor
|
EXECUTOR_DIR = $(CONTRIB_DIR)/$(SEOUL)/executor
|
||||||
|
|
||||||
$(CONTRIB_DIR)/$(SEOUL)/.git: $(DOWNLOAD_DIR)/$(SEOUL)/.git
|
$(CONTRIB_DIR)/$(SEOUL):
|
||||||
$(VERBOSE)git clone $(DOWNLOAD_DIR)/$(SEOUL) $(CONTRIB_DIR)/$(SEOUL)
|
$(VERBOSE)git clone $(DOWNLOAD_DIR)/$(SEOUL) $(CONTRIB_DIR)/$(SEOUL) && \
|
||||||
@# fix python version in code generator scripts
|
cd $(CONTRIB_DIR)/$(SEOUL) && \
|
||||||
$(VERBOSE)sed -i "s/env python2/env $(PYTHON2)/" $(I82576VF_DIR)/genreg.py $(EXECUTOR_DIR)/build_instructions.py
|
git checkout $(SEOUL_BRANCH)
|
||||||
@# call code generators
|
|
||||||
$(VERBOSE)cd $(EXECUTOR_DIR); \
|
|
||||||
./build_instructions.py > instructions.inc
|
|
||||||
$(VERBOSE)cd $(I82576VF_DIR); \
|
|
||||||
./genreg.py reg_pci.py ../../include/model/intel82576vfpci.inc
|
|
||||||
$(VERBOSE)cd $(I82576VF_DIR); \
|
|
||||||
./genreg.py reg_mmio.py ../../include/model/intel82576vfmmio.inc
|
|
||||||
|
|
||||||
$(CONTRIB_DIR)/$(SEOUL): $(CONTRIB_DIR)/$(SEOUL)/.git
|
$(CONTRIB_DIR)/$(SEOUL)/genode_prepared: $(CONTRIB_DIR)/$(SEOUL)
|
||||||
|
$(VERBOSE)cd $(CONTRIB_DIR)/$(SEOUL) && git checkout -f $(SEOUL_BRANCH)
|
||||||
|
$(VERBOSE)echo "fix python version in code generator scripts ..." && \
|
||||||
|
sed -i "s/env python2/env $(PYTHON2)/" $(I82576VF_DIR)/genreg.py $(EXECUTOR_DIR)/build_instructions.py && \
|
||||||
|
echo "call code generators ..." && \
|
||||||
|
cd $(EXECUTOR_DIR) && \
|
||||||
|
./build_instructions.py > instructions.inc && \
|
||||||
|
cd $(CURDIR)/$(I82576VF_DIR) && \
|
||||||
|
./genreg.py reg_pci.py ../../include/model/intel82576vfpci.inc && \
|
||||||
|
cd $(CURDIR)/$(I82576VF_DIR) && \
|
||||||
|
./genreg.py reg_mmio.py ../../include/model/intel82576vfmmio.inc && \
|
||||||
|
touch $(CURDIR)/$@
|
||||||
|
|
||||||
|
.PHONY: fetch-new-version
|
||||||
|
|
Loading…
Reference in New Issue