On 22.12.2020 00:34, atler wrote:
+%{__make} \
+%ifarch armv5tl armv5tel arm5tejl
+       UNAME_M=armv5l \
+%else
+%ifarch armv6l armv6hl
+       UNAME_M=armv6l \
+%else
+%ifarch armv7l armv7hl armv7hnl
+       UNAME_M=armv6l \
+%else
+%ifarch armv8l armv8hl armv8hnl armv8hcnl
+       UNAME_M=armv8l \
+%else
+       UNAME_M=%{_target_cpu} \
+%endif
+%endif
+%endif
+%endif

you can simplify these by removing the some of the "else"-s.

for example "ifarch armv5tl" is matched, it can't be matched with "ifarch armv6l" so 'else' for 'ifarch armv5t' is redundant.

_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to