aboutsummaryrefslogtreecommitdiffstats
path: root/projects/XUPVVH/apply_patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'projects/XUPVVH/apply_patches.sh')
-rwxr-xr-xprojects/XUPVVH/apply_patches.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/projects/XUPVVH/apply_patches.sh b/projects/XUPVVH/apply_patches.sh
new file mode 100755
index 0000000..843a9e7
--- /dev/null
+++ b/projects/XUPVVH/apply_patches.sh
@@ -0,0 +1,9 @@
+# some of the generated files have CR characters in additon to EOL characters
+# which mess with our patch commands.
+dos2unix XUPVVH.srcs/sources_1/ip/phy_ddr4/rtl/cal/ddr4_v2_2_cal_rd_en.sv
+
+for f in ./patches/*.patch
+do
+ patch -p0 < $f
+done
+