Drop 002-disable-atomics-mips-and-ppc.patch. It papered over link errors for
64-bit atomics on MIPS and PPC, which happen because stress-ng strips -latomic
whenever $(CC) matches "musl-gcc" -- as our cross toolchains do. Pass
LIB_ATOMIC=-latomic instead; libatomic is already in DEPENDS. Its stress-fractal
hunk was in any case dead since upstream
24c30b7fa narrowed the row counter back
to int32_t, which MIPS32 and PPC32 increment atomically inline.
Signed-off-by: Alexandru Ardelean <redacted>
endef
MAKE_FLAGS += \
- KERNEL=Linux
+ KERNEL=Linux \
+ LIB_ATOMIC=-latomic
define Package/stress-ng/install
$(INSTALL_DIR) $(1)/usr/bin
+++ /dev/null
---- a/stress-fractal.c
-+++ b/stress-fractal.c
-@@ -90,6 +90,10 @@ static void stress_fractal_deinit(void)
- }
- }
-
-+#if (defined(STRESS_ARCH_MIPS) || defined(STRESS_ARCH_PPC64) || defined(STRESS_ARCH_PPC))
-+#undef HAVE_ATOMIC_FETCH_ADD
-+#endif
-+
- /*
- * stress_fractal_get_row()
- * get next row to be computed, will wrap around. Wrap arounds
---- a/stress-misaligned.c
-+++ b/stress-misaligned.c
-@@ -53,6 +53,10 @@
- #undef HAVE_ATOMIC
- #endif
-
-+#if (defined(STRESS_ARCH_MIPS) || defined(STRESS_ARCH_PPC64) || defined(STRESS_ARCH_PPC))
-+#undef HAVE_ATOMIC
-+#endif
-+
- #if defined(HAVE_LIB_RT) && \
- defined(HAVE_TIMER_CREATE) && \
- defined(HAVE_TIMER_DELETE) && \