103ab731ab
* runit is kept at -Np0 ```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 ```
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
diff --git a/Make.common b/Make.common
|
|
index 3f0b919..562a03e 100644
|
|
--- a/Make.common
|
|
+++ b/Make.common
|
|
@@ -34,21 +34,13 @@ ARCH ?= $(HOSTARCH)
|
|
# Note: TIANOBASE is defined in master Makefile and exported
|
|
GENFW = $(TIANOBASE)/BaseTools/Source/C/bin/GenFw
|
|
prefix = /usr/bin/
|
|
-ifeq ($(ARCH),aarch64)
|
|
- CC = $(prefix)aarch64-linux-gnu-gcc
|
|
- AS = $(prefix)aarch64-linux-gnu-as
|
|
- LD = $(prefix)aarch64-linux-gnu-ld
|
|
- AR = $(prefix)aarch64-linux-gnu-ar
|
|
- RANLIB = $(prefix)aarch64-linux-gnu-ranlib
|
|
- OBJCOPY = $(prefix)aarch64-linux-gnu-objcopy
|
|
-else
|
|
- CC = $(prefix)gcc
|
|
- AS = $(prefix)as
|
|
- LD = $(prefix)ld
|
|
- AR = $(prefix)ar
|
|
- RANLIB = $(prefix)ranlib
|
|
- OBJCOPY = $(prefix)objcopy
|
|
-endif
|
|
+
|
|
+CC = $(prefix)$(CROSS_COMPILE)gcc
|
|
+AS = $(prefix)$(CROSS_COMPILE)as
|
|
+LD = $(prefix)$(CROSS_COMPILE)ld
|
|
+AR = $(prefix)$(CROSS_COMPILE)ar
|
|
+RANLIB = $(prefix)$(CROSS_COMPILE)ranlib
|
|
+OBJCOPY = $(prefix)$(CROSS_COMPILE)objcopy
|
|
|
|
ifeq ($(MAKEWITH),TIANO)
|
|
# Below file defines TARGET (RELEASE or DEBUG) and TOOL_CHAIN_TAG (GCC44, GCC45, GCC46, or GCC47)
|
|
|