Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1274630 > unrolled thread

[PATCH 0/2] kbuild: add AFLAGS_REMOVE

Started byHeiko Carstens <heiko.carstens@de.ibm.com>
First post2015-11-21 12:10 +0100
Last post2015-11-21 12:10 +0100
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] kbuild: add AFLAGS_REMOVE Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-11-21 12:10 +0100
    [PATCH 2/2] s390: compile head.s always with -march=z900 Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-11-21 12:10 +0100

#1274630 — [PATCH 0/2] kbuild: add AFLAGS_REMOVE

FromHeiko Carstens <heiko.carstens@de.ibm.com>
Date2015-11-21 12:10 +0100
Subject[PATCH 0/2] kbuild: add AFLAGS_REMOVE
Message-ID<qxedj-4tu-5@gated-at.bofh.it>
Hi Michal,

these are just two simple patches which add
1) an AFLAGS_REMOVE option which works just like CFLAGS_REMOVE and
2) one user of it in s390 code.

If you agree this is ok, then these two patches could go upstream either
via your tree or the s390 tree.

Thanks,
Heiko

Heiko Carstens (2):
  kbuild: add AFLAGS_REMOVE_(basename).o option
  s390: compile head.s always with -march=z900

 arch/s390/kernel/Makefile | 6 ++++--
 scripts/Makefile.lib      | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

-- 
2.3.9

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1274631 — [PATCH 2/2] s390: compile head.s always with -march=z900

FromHeiko Carstens <heiko.carstens@de.ibm.com>
Date2015-11-21 12:10 +0100
Subject[PATCH 2/2] s390: compile head.s always with -march=z900
Message-ID<qxedj-4tu-7@gated-at.bofh.it>
In reply to#1274630
head.s on s390 contains some sanity checks if the kernel will run on a
machine or if the machine is too old, e.g. if the kernel contains
instructions not available on the machine. If so, it will emit an error
message to the console before it stops execution.

Therefore head.s contains only instructions which are availanble with the
earliest machine generation (z900).  In order to make sure we don't
accidently add instructions which are not available on z900, always compile
with -march=z900. This makes sure compilation will fail if wrong
instructions are used.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
 arch/s390/kernel/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/arch/s390/kernel/Makefile b/arch/s390/kernel/Makefile
index dc167a23b920..a53755e37e3d 100644
--- a/arch/s390/kernel/Makefile
+++ b/arch/s390/kernel/Makefile
@@ -34,8 +34,10 @@ CFLAGS_sysinfo.o += -w
 #
 CFLAGS_REMOVE_sclp.o = $(CC_FLAGS_FTRACE)
 ifneq ($(CC_FLAGS_MARCH),-march=z900)
-CFLAGS_REMOVE_sclp.o += $(CC_FLAGS_MARCH)
-CFLAGS_sclp.o	+= -march=z900
+CFLAGS_REMOVE_sclp.o 	+= $(CC_FLAGS_MARCH)
+CFLAGS_sclp.o		+= -march=z900
+AFLAGS_REMOVE_head.o	+= $(CC_FLAGS_MARCH)
+AFLAGS_head.o		+= -march=z900
 endif
 GCOV_PROFILE_sclp.o := n
 
-- 
2.3.9

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web