From 040a4358818cbee7c04b629d6401356c1e3348e8 Mon Sep 17 00:00:00 2001 From: jammyjellyfish Date: Fri, 14 Apr 2023 18:02:12 +0800 Subject: [PATCH] Support specify CC --- 0003-support-specify-cc.patch | 31 +++++++++++++++++++++++++++++++ b43-tools.spec | 6 +++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 0003-support-specify-cc.patch diff --git a/0003-support-specify-cc.patch b/0003-support-specify-cc.patch new file mode 100644 index 0000000..48bed09 --- /dev/null +++ b/0003-support-specify-cc.patch @@ -0,0 +1,31 @@ +diff -up b43-tools-b43-fwcutter-019/assembler/Makefile.orig b43-tools-b43-fwcutter-019/assembler/Makefile +--- b43-tools-b43-fwcutter-019/assembler/Makefile.orig 2023-04-14 17:57:15.364761457 +0800 ++++ b43-tools-b43-fwcutter-019/assembler/Makefile 2023-04-14 17:57:38.824863305 +0800 +@@ -1,5 +1,5 @@ + # The toolchain definitions +-CC = gcc ++CC ?= gcc + LEX = flex + YACC = bison + SPARSE = sparse +diff -up b43-tools-b43-fwcutter-019/disassembler/Makefile.orig b43-tools-b43-fwcutter-019/disassembler/Makefile +--- b43-tools-b43-fwcutter-019/disassembler/Makefile.orig 2023-04-14 17:57:15.368761475 +0800 ++++ b43-tools-b43-fwcutter-019/disassembler/Makefile 2023-04-14 17:57:52.608923148 +0800 +@@ -1,5 +1,5 @@ + # The toolchain definitions +-CC = gcc ++CC ?= gcc + SPARSE = sparse + + V = @ # Verbose build: make V=1 +diff -up b43-tools-b43-fwcutter-019/fwcutter/Makefile.orig b43-tools-b43-fwcutter-019/fwcutter/Makefile +diff -up b43-tools-b43-fwcutter-019/ssb_sprom/Makefile.orig b43-tools-b43-fwcutter-019/ssb_sprom/Makefile +--- b43-tools-b43-fwcutter-019/ssb_sprom/Makefile.orig 2023-04-14 17:57:15.372761492 +0800 ++++ b43-tools-b43-fwcutter-019/ssb_sprom/Makefile 2023-04-14 17:58:02.344965413 +0800 +@@ -1,5 +1,5 @@ + # The toolchain definitions +-CC = cc ++CC ?= cc + SPARSE = sparse + + V = @ # Verbose build: make V=1 diff --git a/b43-tools.spec b/b43-tools.spec index 84857eb..8b3d11c 100644 --- a/b43-tools.spec +++ b/b43-tools.spec @@ -1,6 +1,6 @@ Name: b43-tools Version: 019 -Release: 6 +Release: 7 Summary: Tools for the Broadcom 43xx series WLAN chip License: GPLv2 and GPLv2+ and GPLv3 and BSD-2-Clause and Public Domain URL: https://bues.ch/cgit/b43-tools.git @@ -8,6 +8,7 @@ Source0: https://bues.ch/cgit/b43-tools.git/snapshot/b43-tools-b43-fwcutt BuildRequires: bison flex flex-static python3-devel gcc Patch0001: 0001-b43-tools-fix-format-security-errors.patch Patch0002: 0002-Explicitly-use-python3.patch +Patch0003: 0003-support-specify-cc.patch %description Tools for the Broadcom 43xx series WLAN chip. @@ -50,6 +51,9 @@ cd debug %{python3_sitelib}/* %changelog +* Fri Apr 14 2023 jammyjellyfish - 019-7 +- Support specify CC + * Mon May 31 2021 baizhonggui - 019-6 - Add gcc in BuildRequires -- Gitee