mirror of
https://github.com/parallella/parallella-hw.git
synced 2025-04-01 00:26:53 +00:00
Added external repo fpgahdl_xilinx from analog devices.
Added helper scripts for external repo fetch & sparse checkout.
This commit is contained in:
parent
b5dfbdc4e4
commit
cf954a9169
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "fpga/externals/fpgahdl_xilinx"]
|
||||
path = fpga/externals/fpgahdl_xilinx
|
||||
url = https://github.com/analogdevicesinc/fpgahdl_xilinx
|
22
fpga/externals/README.md
vendored
22
fpga/externals/README.md
vendored
@ -6,4 +6,26 @@ This directory is to hold checkouts of repositories from external sources that a
|
||||
|
||||
- 1 ADI HDMI IP: https://github.com/analogdevicesinc/fpgahdl_xilinx
|
||||
|
||||
## Fetching content of external repos:
|
||||
|
||||
When this repo is cloned, there will be a directory for each external repository but initially it will be empty.
|
||||
To populate it when needed, run the get_xxxx script for that repository, e.g. ./get_fpgahdl_xilinx.
|
||||
|
||||
## Adding external repos:
|
||||
|
||||
```
|
||||
$ cd <root of local repository>
|
||||
$ git submodule add <repository URL> fpga/externals/<name of repo>
|
||||
|
||||
# For example:
|
||||
|
||||
$ cd ../..
|
||||
$ git submodule add https://github.com/analogdevicesinc/fpgahdl_xilinx fpga/externals/fpgahdl_xilinx
|
||||
```
|
||||
Then add a corresponding get_xxxx script and optionally a list of directories to include if doing a sparse checkout.
|
||||
Add those files to git, and commit the new setup.
|
||||
|
||||
# NOTES
|
||||
|
||||
Do not make any changes to the external repository's files or folders from here, submodules are notoriously difficult to deal with if changes are made locally.
|
||||
|
||||
|
1
fpga/externals/fpgahdl_xilinx
vendored
Submodule
1
fpga/externals/fpgahdl_xilinx
vendored
Submodule
Submodule fpga/externals/fpgahdl_xilinx added at 9ba3ed9df6
4
fpga/externals/fpgahdl_xilinx.sco
vendored
Normal file
4
fpga/externals/fpgahdl_xilinx.sco
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/cf_lib
|
||||
/README.md
|
||||
/.git*
|
||||
|
10
fpga/externals/get_fpgahdl_xilinx
vendored
Normal file
10
fpga/externals/get_fpgahdl_xilinx
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
pushd ../../
|
||||
git submodule init
|
||||
git submodule update
|
||||
popd
|
||||
cp fpgahdl_xilinx.sco ../../.git/modules/fpga/externals/fpgahdl_xilinx/info/sparse-checkout
|
||||
cd fpgahdl_xilinx
|
||||
git config core.sparsecheckout true
|
||||
git read-tree -mu HEAD
|
||||
cd ..
|
||||
|
Loading…
Reference in New Issue
Block a user