c6ce65d3d0
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
36 lines
1.5 KiB
Diff
36 lines
1.5 KiB
Diff
--- a/common/board_f.c 2014-08-19 08:42:46.000000000 +0200
|
|
+++ b/common/board_f.c 2020-09-15 09:40:56.739298301 +0200
|
|
@@ -78,24 +78,24 @@
|
|
************************************************************************
|
|
* May be supplied by boards if desired
|
|
*/
|
|
-inline void __coloured_LED_init(void) {}
|
|
+void __coloured_LED_init(void) {}
|
|
void coloured_LED_init(void)
|
|
__attribute__((weak, alias("__coloured_LED_init")));
|
|
-inline void __red_led_on(void) {}
|
|
+void __red_led_on(void) {}
|
|
void red_led_on(void) __attribute__((weak, alias("__red_led_on")));
|
|
-inline void __red_led_off(void) {}
|
|
+void __red_led_off(void) {}
|
|
void red_led_off(void) __attribute__((weak, alias("__red_led_off")));
|
|
-inline void __green_led_on(void) {}
|
|
+void __green_led_on(void) {}
|
|
void green_led_on(void) __attribute__((weak, alias("__green_led_on")));
|
|
-inline void __green_led_off(void) {}
|
|
+void __green_led_off(void) {}
|
|
void green_led_off(void) __attribute__((weak, alias("__green_led_off")));
|
|
-inline void __yellow_led_on(void) {}
|
|
+void __yellow_led_on(void) {}
|
|
void yellow_led_on(void) __attribute__((weak, alias("__yellow_led_on")));
|
|
-inline void __yellow_led_off(void) {}
|
|
+void __yellow_led_off(void) {}
|
|
void yellow_led_off(void) __attribute__((weak, alias("__yellow_led_off")));
|
|
-inline void __blue_led_on(void) {}
|
|
+void __blue_led_on(void) {}
|
|
void blue_led_on(void) __attribute__((weak, alias("__blue_led_on")));
|
|
-inline void __blue_led_off(void) {}
|
|
+void __blue_led_off(void) {}
|
|
void blue_led_off(void) __attribute__((weak, alias("__blue_led_off")));
|
|
|
|
/*
|