Rebase from upstream commit : 3bb9dcf44627ffdd313fe92c563ae454b6ff8aa6
[librecmc/librecmc.git] / package / libs / openssl / patches / 110-openwrt_targets.patch
1 From 9a83f8fb7c46215dfb8d6dc2e2cc612bc2a0fd01 Mon Sep 17 00:00:00 2001
2 From: Eneas U de Queiroz <cote2004-github@yahoo.com>
3 Date: Thu, 27 Sep 2018 08:30:24 -0300
4 Subject: Add librecmc targets
5
6 Targets are named: linux-$(CONFIG_ARCH)-librecmc
7
8 Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
9
10 --- /dev/null
11 +++ b/Configurations/25-librecmc.conf
12 @@ -0,0 +1,48 @@
13 +## Openwrt "CONFIG_ARCH" matching targets.
14 +
15 +# The targets need to end in '-librecmc' for the AFALG patch to work
16 +
17 +my %targets = (
18 +    "librecmc" => {
19 +       template        => 1,
20 +       CFLAGS          => add("\$(LIBRECMC_OPTIMIZATION_FLAGS)"),
21 +    },
22 +    "linux-aarch64-librecmc" => {
23 +        inherit_from    => [ "linux-aarch64", "librecmc" ],
24 +    },
25 +    "linux-arc-librecmc" => {
26 +        inherit_from    => [ "linux-generic32", "librecmc" ],
27 +    },
28 +    "linux-arm-librecmc" => {
29 +        inherit_from    => [ "linux-armv4", "librecmc" ],
30 +    },
31 +    "linux-armeb-librecmc" => {
32 +        inherit_from    => [ "linux-armv4", "librecmc" ],
33 +    },
34 +    "linux-i386-librecmc" => {
35 +        inherit_from    => [ "linux-x86", "librecmc" ],
36 +    },
37 +    "linux-mips-librecmc" => {
38 +        inherit_from    => [ "linux-mips32", "librecmc" ],
39 +    },
40 +    "linux-mips64-librecmc" => {
41 +        inherit_from    => [ "linux64-mips64", "librecmc" ],
42 +    },
43 +    "linux-mips64el-librecmc" => {
44 +        inherit_from    => [ "linux64-mips64", "librecmc" ],
45 +    },
46 +    "linux-mipsel-librecmc" => {
47 +        inherit_from    => [ "linux-mips32", "librecmc" ],
48 +    },
49 +    "linux-powerpc-librecmc" => {
50 +        inherit_from    => [ "linux-ppc", "librecmc" ],
51 +    },
52 +    "linux-x86_64-librecmc" => {
53 +        inherit_from    => [ "linux-x86_64", "librecmc" ],
54 +    },
55 +
56 +### Basic default option
57 +    "linux-generic32-librecmc" => {
58 +        inherit_from    => [ "linux-generic32", "librecmc" ],
59 +    },
60 +);