openssl: add ppc64 support
[openwrt/staging/chunkeey.git] / package / libs / openssl / patches / 110-openwrt_targets.patch
1 From 3d43acc6068f00dbfc0c9a06355e2c8f7d302d0f 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 diff --git a/Configurations/25-openwrt.conf b/Configurations/25-openwrt.conf
11 new file mode 100644
12 index 0000000000..86a86d31e4
13 --- /dev/null
14 +++ b/Configurations/25-openwrt.conf
15 @@ -0,0 +1,52 @@
16 +## Openwrt "CONFIG_ARCH" matching targets.
17 +
18 +# The targets need to end in '-openwrt' for the AFALG patch to work
19 +
20 +my %targets = (
21 + "openwrt" => {
22 + template => 1,
23 + CFLAGS => add("\$(OPENWRT_OPTIMIZATION_FLAGS)"),
24 + },
25 + "linux-aarch64-openwrt" => {
26 + inherit_from => [ "linux-aarch64", "openwrt" ],
27 + },
28 + "linux-arc-openwrt" => {
29 + inherit_from => [ "linux-generic32", "openwrt" ],
30 + },
31 + "linux-arm-openwrt" => {
32 + inherit_from => [ "linux-armv4", "openwrt" ],
33 + },
34 + "linux-armeb-openwrt" => {
35 + inherit_from => [ "linux-armv4", "openwrt" ],
36 + },
37 + "linux-i386-openwrt" => {
38 + inherit_from => [ "linux-x86", "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-x86_64-openwrt" => {
60 + inherit_from => [ "linux-x86_64", "openwrt" ],
61 + },
62 +
63 +### Basic default option
64 + "linux-generic32-openwrt" => {
65 + inherit_from => [ "linux-generic32", "openwrt" ],
66 + },
67 +);