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