summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-yocto
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2019-03-24 23:11:52 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-25 23:19:53 +0000
commit4ee44b0b54c11d6877477b3030d2121ef84ba8e6 (patch)
treeba4357decc77f5851c5783b12462ff381474ab23 /meta/recipes-kernel/linux/linux-yocto
parent3e0eb102ecaafc42594005fce6a43ec2132026d1 (diff)
downloadpoky-4ee44b0b54c11d6877477b3030d2121ef84ba8e6.tar.gz
linux-yocto/4.19: integrate arm systemtap fix
Richard had pushed an explicit patch to fix systemtap for arm on the 4.19 kernel in time for M3. The patch has now been integrated into the repo itself and can be dropped from the recipe. (From OE-Core rev: 552b3cd0e0d442d867b4432e5b81019cadd2f4fa) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-yocto')
-rw-r--r--meta/recipes-kernel/linux/linux-yocto/0001-arm-Makefile-Fix-systemtap-4.19.patch62
1 files changed, 0 insertions, 62 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto/0001-arm-Makefile-Fix-systemtap-4.19.patch b/meta/recipes-kernel/linux/linux-yocto/0001-arm-Makefile-Fix-systemtap-4.19.patch
deleted file mode 100644
index 0a84b13b59..0000000000
--- a/meta/recipes-kernel/linux/linux-yocto/0001-arm-Makefile-Fix-systemtap-4.19.patch
+++ /dev/null
@@ -1,62 +0,0 @@
1From c2995494e311c113177db50ff140cebd94fd4011 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Sun, 10 Mar 2019 06:43:15 +0000
4Subject: [PATCH] arm/Makefile: Fix systemtap
5
6Currently systemtap fails to operate correctly on armv7 systems such as beaglebone and
7soon, qemuarm.
8
9
10root@qemuarm:/usr/src/kernel# env -uARCH -uKBUILD_EXTMOD -uCROSS_COMPILE -uKBUILD_IMAGE -uKCONFIG_CONFIG -uINSTALL_PATH -uLD_LIBRARY_PATH PATH=/usr/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin make -C /lib/modules/4.19.19-yocto-standard/build M=/tmp/staptcNU6M modules CONFIG_DEBUG_INFO= CONFIG_STACK_VALIDATION= ARCH=arm stap_4321_src.i --no-print-directory -j2 V=1
11test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
12echo >&2; \
13echo >&2 " ERROR: Kernel configuration is invalid."; \
14echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
15echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
16echo >&2 ; \
17/bin/false)
18mkdir -p /tmp/staptcNU6M/.tmp_versions ; rm -f /tmp/staptcNU6M/.tmp_versions/*
19make -f ./scripts/Makefile.build obj=/tmp/staptcNU6M
20(cat /dev/null; echo kernel//tmp/staptcNU6M/stap_4321.ko;) > /tmp/staptcNU6M/modules.order
21 gcc -Wp,-MD,/tmp/staptcNU6M/.stap_4321_src.o.d -nostdinc -isystem /usr/lib/gcc/arm-poky-linux-gnueabi/8.3.0/include -I./arch/arm/include -I./arch/arm/include/generated -I./include -I./arch/arm/include/uapi -I./arch/arm/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fno-ipa-sra -mabi=aapcs-linux -mfpu=vfp -funwind-tables -marm -Wa,-mno-warn-deprecated -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-int-in-bool-context -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -Wno-packed-not-aligned -Iinclude2/asm/mach-default -I/lib/modules/4.19.19-yocto-standard/build -include /tmp/staptcNU6M/stapconf_4321.h -D "STP_NO_VELREL_CHECK" -freorder-blocks -fasynchronous-unwind-tables -Wframe-larger-than=512 -fno-ipa-icf -Wno-unused -Wno-tautological-compare -Werror -I/usr/share/systemtap/runtime -DMODULE -DKBUILD_BASENAME='"stap_4321_src"' -DKBUILD_MODNAME='"stap_4321"' -c -o /tmp/staptcNU6M/stap_4321_src.o /tmp/staptcNU6M/stap_4321_src.c
22/tmp/ccaE9CMG.s: Assembler messages:
23/tmp/ccaE9CMG.s:49: Error: selected processor does not support `dmb ish' in ARM mode
24/tmp/ccaE9CMG.s:52: Error: architectural extension `mp' is not allowed for the current b
25
26(which was from running the stap command with -v -v -v -k and then being able to run the command individually)
27
28Note that it says armv5t above.
29
30That comes from the code this patch changes
31
32root@qemuarm:/usr/src/kernel# gcc -march=armv7-a /tmp/staptcNU6M/stap_4321_aux_0.c
33cc1: error: -mfloat-abi=hard: selected processor lacks an FPU
34
35which makes me wonder if cc-option fails unless -mfpu-vfp is on the commandline too.
36
37Since we have a gcc which accepts the armv7-a arch, just remove the cc-option
38wrapper unconditionally here.
39
40Upstream-Status: Submitted [Alternative patch discussion on arm-linux mailing list]
41
42Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
43---
44 arch/arm/Makefile | 2 +-
45 1 file changed, 1 insertion(+), 1 deletion(-)
46
47diff --git a/arch/arm/Makefile b/arch/arm/Makefile
48index ecb99f7ac613..8513ba79ea04 100644
49--- a/arch/arm/Makefile
50+++ b/arch/arm/Makefile
51@@ -64,7 +64,7 @@ KBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra)
52 # macro, but instead defines a whole series of macros which makes
53 # testing for a specific architecture or later rather impossible.
54 arch-$(CONFIG_CPU_32v7M) =-D__LINUX_ARM_ARCH__=7 -march=armv7-m -Wa,-march=armv7-m
55-arch-$(CONFIG_CPU_32v7) =-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
56+arch-$(CONFIG_CPU_32v7) =-D__LINUX_ARM_ARCH__=7 -march=armv7-a -Wa$(comma)-march=armv7-a
57 arch-$(CONFIG_CPU_32v6) =-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6)
58 # Only override the compiler option if ARMv6. The ARMv6K extensions are
59 # always available in ARMv7
60--
612.20.1
62