openssl: fix powerpc & arc libatomic dependencies
[openwrt/openwrt.git] / package / libs / openssl / patches / 110-openwrt_targets.patch
1 From 0000000000000000000000000000000000000000 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 openwrt targets
5
6 Targets are named: linux-$(CONFIG_ARCH)-openwrt
7
8 Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
9
10 --- /dev/null
11 +++ b/Configurations/25-openwrt.conf
12 @@ -0,0 +1,52 @@
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-mips-openwrt" => {
38 + inherit_from => [ "linux-mips32", "openwrt" ],
39 + },
40 + "linux-mips64-openwrt" => {
41 + inherit_from => [ "linux64-mips64", "openwrt" ],
42 + },
43 + "linux-mips64el-openwrt" => {
44 + inherit_from => [ "linux64-mips64", "openwrt" ],
45 + },
46 + "linux-mipsel-openwrt" => {
47 + inherit_from => [ "linux-mips32", "openwrt" ],
48 + },
49 + "linux-powerpc-openwrt" => {
50 + inherit_from => [ "linux-ppc", "openwrt" ],
51 + },
52 + "linux-powerpc64-openwrt" => {
53 + inherit_from => [ "linux-ppc64", "openwrt" ],
54 + perlasm_scheme => "linux64v2",
55 + },
56 + "linux-x86_64-openwrt" => {
57 + inherit_from => [ "linux-x86_64", "openwrt" ],
58 + },
59 +
60 +### Basic default option
61 + "linux-generic32-openwrt" => {
62 + inherit_from => [ "linux-generic32", "openwrt" ],
63 + },
64 +);