linux-essential-mata: build with gcc6

Part of the wider effort to switch downstream kernels away from the regular
gcc package. While it would be best to switch this kernel to use LLVM,
gcc6 is the best option to prevent runtime breakages and still keep the
process of switching easy. If the maintainer wishes, they can try porting
this package to use LLVM later.

See https://gitlab.postmarketos.org/postmarketOS/postmarketos/-/work_items/123
and https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/3928
for more information.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9057>
This commit is contained in:
Aster Boese
2026-08-05 11:15:34 +00:00
parent 2aa60edc03
commit 9c42c540d1
4 changed files with 139 additions and 14 deletions
@@ -0,0 +1,36 @@
From 966d3ac2409b59f431e1397f5ab8e9ee74ba5ae0 Mon Sep 17 00:00:00 2001
From: Iskren Chernev <me@iskren.info>
Date: Sat, 20 Feb 2021 00:49:45 +0200
Subject: [PATCH 3/6] Remove gcc python wrapper
---
Makefile | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 15a18b3cd15f6..e6a72c1a84fe9 100644
--- a/Makefile
+++ b/Makefile
@@ -348,7 +348,7 @@
# Make variables (CC, etc...)
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld
-REAL_CC = $(CROSS_COMPILE)gcc
+CC = $(CROSS_COMPILE)gcc
CPP = $(CC) -E
AR = $(CROSS_COMPILE)ar
NM = $(CROSS_COMPILE)nm
@@ -362,10 +362,6 @@
PERL = perl
PYTHON = python
CHECK = sparse
-
-# Use the wrapper for the compiler. This wrapper scans for new
-# warnings and causes the build to stop upon encountering them.
-CC = $(srctree)/scripts/gcc-wrapper.py $(REAL_CC)
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
-Wbitwise -Wno-return-void $(CF)
--
2.30.1