mirror of
https://github.com/LiBwrt-op/openwrt-6.x.git
synced 2025-12-16 16:57:28 +00:00
This mainly improve the CFLAGS handling on compilation of OpenSSL. The CFLAGS are currently passed 2 times generating compilation warning due to -fhonour-copts passed 2 times. This can be improved by passing the CFLAGS as env to the OpenSSL Configure tool. For consistency we do the same for CPPFLAGS and LDFLAGS. This permits to drop redundant flags in the Compile phase and from the .conf file. Link: https://github.com/openwrt/openwrt/pull/20665 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
68 lines
1.9 KiB
Diff
68 lines
1.9 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Eneas U de Queiroz <cote2004-github@yahoo.com>
|
|
Date: Thu, 27 Sep 2018 08:30:24 -0300
|
|
Subject: Add openwrt targets
|
|
|
|
Targets are named: linux-$(CONFIG_ARCH)-openwrt
|
|
|
|
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
|
|
|
|
--- /dev/null
|
|
+++ b/Configurations/25-openwrt.conf
|
|
@@ -0,0 +1,55 @@
|
|
+## Openwrt "CONFIG_ARCH" matching targets.
|
|
+
|
|
+# The targets need to end in '-openwrt' for the AFALG patch to work
|
|
+
|
|
+my %targets = (
|
|
+ "linux-aarch64-openwrt" => {
|
|
+ inherit_from => [ "linux-aarch64" ],
|
|
+ },
|
|
+ "linux-arc-openwrt" => {
|
|
+ inherit_from => [ "linux-latomic" ],
|
|
+ },
|
|
+ "linux-arm-openwrt" => {
|
|
+ inherit_from => [ "linux-armv4" ],
|
|
+ },
|
|
+ "linux-armeb-openwrt" => {
|
|
+ inherit_from => [ "linux-armv4" ],
|
|
+ },
|
|
+ "linux-i386-openwrt" => {
|
|
+ inherit_from => [ "linux-x86" ],
|
|
+ },
|
|
+ "linux-loongarch64-openwrt" => {
|
|
+ inherit_from => [ "linux64-loongarch64" ],
|
|
+ },
|
|
+ "linux-mips-openwrt" => {
|
|
+ inherit_from => [ "linux-mips32" ],
|
|
+ },
|
|
+ "linux-mips64-openwrt" => {
|
|
+ inherit_from => [ "linux64-mips64" ],
|
|
+ },
|
|
+ "linux-mips64el-openwrt" => {
|
|
+ inherit_from => [ "linux64-mips64" ],
|
|
+ },
|
|
+ "linux-mipsel-openwrt" => {
|
|
+ inherit_from => [ "linux-mips32" ],
|
|
+ },
|
|
+ "linux-powerpc-openwrt" => {
|
|
+ inherit_from => [ "linux-ppc" ],
|
|
+ },
|
|
+ "linux-powerpc64-openwrt" => {
|
|
+ inherit_from => [ "linux-ppc64" ],
|
|
+ perlasm_scheme => "linux64v2",
|
|
+ },
|
|
+ "linux-riscv64-openwrt" => {
|
|
+ inherit_from => [ "linux-generic64" ],
|
|
+ perlasm_scheme => "linux64",
|
|
+ },
|
|
+ "linux-x86_64-openwrt" => {
|
|
+ inherit_from => [ "linux-x86_64" ],
|
|
+ },
|
|
+
|
|
+### Basic default option
|
|
+ "linux-generic32-openwrt" => {
|
|
+ inherit_from => [ "linux-generic32" ],
|
|
+ },
|
|
+);
|