abuild: simplify cross strip
I can't explain why this code was added in the first place. I made a comment at the commit (f459607d (comment 399364)).
Looking through all code paths I came to this conclusion:
${subpkgarch:-$pkgarch}
can only ever be noarch
or $CARCH
.
Since noarch
is already checked for it can only be $CARCH
when
entering the case statement. This means the second case statement always
matches and the third one can be removed. The second and first case
statement do the same thing as $CROSS_COMPILE
. The value is
${CHOST}-
when $CBUILD_ARCH
and $CARCH
don't match.
Partially reverts f459607da76
Edited by Sertonix