blob: d02bc03fb89f7893692e9e81a77c2dc2180d59f3 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Eneas U de Queiroz <cote2004-github@yahoo.com>
3Date: Thu, 27 Sep 2018 08:30:24 -0300
4Subject: Add openwrt targets
5
6Targets are named: linux-$(CONFIG_ARCH)-openwrt
7
8Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
9
10--- /dev/null
11+++ b/Configurations/25-openwrt.conf
12@@ -0,0 +1,59 @@
13+## Openwrt "CONFIG_ARCH" matching targets.
14+
15+# The targets need to end in '-openwrt' for the AFALG patch to work
16+
17+my %targets = (
18+ "openwrt" => {
19+ template => 1,
20+ CFLAGS => add("\$(OPENWRT_OPTIMIZATION_FLAGS)"),
21+ },
22+ "linux-aarch64-openwrt" => {
23+ inherit_from => [ "linux-aarch64", "openwrt" ],
24+ },
25+ "linux-arc-openwrt" => {
26+ inherit_from => [ "linux-latomic", "openwrt" ],
27+ },
28+ "linux-arm-openwrt" => {
29+ inherit_from => [ "linux-armv4", "openwrt" ],
30+ },
31+ "linux-armeb-openwrt" => {
32+ inherit_from => [ "linux-armv4", "openwrt" ],
33+ },
34+ "linux-i386-openwrt" => {
35+ inherit_from => [ "linux-x86", "openwrt" ],
36+ },
37+ "linux-loongarch64-openwrt" => {
38+ inherit_from => [ "linux64-loongarch64", "openwrt" ],
39+ },
40+ "linux-mips-openwrt" => {
41+ inherit_from => [ "linux-mips32", "openwrt" ],
42+ },
43+ "linux-mips64-openwrt" => {
44+ inherit_from => [ "linux64-mips64", "openwrt" ],
45+ },
46+ "linux-mips64el-openwrt" => {
47+ inherit_from => [ "linux64-mips64", "openwrt" ],
48+ },
49+ "linux-mipsel-openwrt" => {
50+ inherit_from => [ "linux-mips32", "openwrt" ],
51+ },
52+ "linux-powerpc-openwrt" => {
53+ inherit_from => [ "linux-ppc", "openwrt" ],
54+ },
55+ "linux-powerpc64-openwrt" => {
56+ inherit_from => [ "linux-ppc64", "openwrt" ],
57+ perlasm_scheme => "linux64v2",
58+ },
59+ "linux-riscv64-openwrt" => {
60+ inherit_from => [ "linux-generic64", "openwrt" ],
61+ perlasm_scheme => "linux64",
62+ },
63+ "linux-x86_64-openwrt" => {
64+ inherit_from => [ "linux-x86_64", "openwrt" ],
65+ },
66+
67+### Basic default option
68+ "linux-generic32-openwrt" => {
69+ inherit_from => [ "linux-generic32", "openwrt" ],
70+ },
71+);