We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff3536 commit 926eb96Copy full SHA for 926eb96
1 file changed
.github/workflows/test-build-psoc6.yml
@@ -43,7 +43,10 @@ jobs:
43
- name: Patch cy_syslib.c to declare cy_delay32kMs
44
run: |
45
# Add extern declaration for cy_delay32kMs directly in cy_syslib.c
46
- sed -i '/#include "cy_syslib.h"/a \\\n/* Extern declaration for delay variable */\nextern uint32_t cy_delay32kMs;' lib/psoc6pdl/drivers/source/cy_syslib.c
+ # Find the line with the include and add the extern declaration after it
47
+ awk '/#include "cy_syslib.h"/ {print; print ""; print "/* Extern declaration for delay variable */"; print "extern uint32_t cy_delay32kMs;"; next} 1' \
48
+ lib/psoc6pdl/drivers/source/cy_syslib.c > /tmp/cy_syslib_patched.c
49
+ mv /tmp/cy_syslib_patched.c lib/psoc6pdl/drivers/source/cy_syslib.c
50
51
- name: Workaround for sources.list
52
0 commit comments