You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds a `.host-arch` symlink to build output; this doesn't get committed (for hopefully obvious reasons), but allows for things like `CMD` and `update.sh` to have a known-effective target for testing the output further in some way.
This was a mapping we already had thanks to `ARCH_TEST`, so I've also reordered our builds such that they're grouped by "host" architecture and sorted by "preference"/compatibility (with the goal that we get a more "correct" `.host-arch` symlink).
# the following steps are grouped into "architecture families" and roughly ordered in a descending compatibility way such that we end up with the most accurate ".host-arch" symlink we can reasonably get
63
+
57
64
RUN set -ex; \
58
65
make clean all test \
59
66
TARGET_ARCH='amd64' \
60
67
CROSS_COMPILE='x86_64-linux-gnu-' \
61
68
ARCH_TEST='amd64'
62
-
63
69
RUN set -ex; \
64
70
make clean all test \
65
-
TARGET_ARCH='arm32v5' \
66
-
CROSS_COMPILE='arm-linux-gnueabi-' \
67
-
# EXTRA_CFLAGS='-march=armv5te' \
68
-
ARCH_TEST='armel'
71
+
TARGET_ARCH='i386' \
72
+
CROSS_COMPILE='i686-linux-gnu-' \
73
+
ARCH_TEST='i386'
69
74
70
75
RUN set -ex; \
71
76
make clean all test \
72
-
TARGET_ARCH='arm32v6' \
73
-
CROSS_COMPILE='arm-linux-gnueabi-' \
74
-
EXTRA_CFLAGS='-march=armv6+fp' \
75
-
ARCH_TEST='armhf'
77
+
TARGET_ARCH='arm64v8' \
78
+
CROSS_COMPILE='aarch64-linux-gnu-' \
79
+
ARCH_TEST='arm64'
76
80
77
81
RUN set -ex; \
78
82
make clean all test \
79
83
TARGET_ARCH='arm32v7' \
80
84
CROSS_COMPILE='arm-linux-gnueabihf-' \
81
85
# EXTRA_CFLAGS='-march=armv7-a+fp' \
82
86
ARCH_TEST='armhf'
83
-
84
87
RUN set -ex; \
85
88
make clean all test \
86
-
TARGET_ARCH='arm64v8' \
87
-
CROSS_COMPILE='aarch64-linux-gnu-' \
88
-
ARCH_TEST='arm64'
89
-
89
+
TARGET_ARCH='arm32v6' \
90
+
CROSS_COMPILE='arm-linux-gnueabi-' \
91
+
EXTRA_CFLAGS='-march=armv6+fp' \
92
+
ARCH_TEST='armhf'
90
93
RUN set -ex; \
91
94
make clean all test \
92
-
TARGET_ARCH='i386' \
93
-
CROSS_COMPILE='i686-linux-gnu-' \
94
-
ARCH_TEST='i386'
95
+
TARGET_ARCH='arm32v5' \
96
+
CROSS_COMPILE='arm-linux-gnueabi-' \
97
+
# EXTRA_CFLAGS='-march=armv5te' \
98
+
ARCH_TEST='armel'
95
99
96
100
RUN set -ex; \
97
101
make clean all test \
@@ -118,6 +122,6 @@ RUN set -ex; \
118
122
CROSS_COMPILE='s390x-linux-gnu-' \
119
123
ARCH_TEST='s390x'
120
124
121
-
RUN find \( -name 'hello' -or -name 'hello.txt' \) -exec file '{}' + -exec ls -lh '{}' +
0 commit comments