[opensuse-buildservice] [Patch] obs/build : allow change of rpmbuilds --target through a macro in prjconf
Hi ! Please review the attached patch - if there're no objections, i'd like to commit it to svn. Reasoning: For the ARM port, we need to be able to set target of the build because in the qemu-usermode environment this is not what rpmbuild autodetects. With this patch we can use this in the prjconf: %ifarch armv5el Changetarget: armv5tel-suse-linux %endif %ifarch armv7el Changetarget: armv7l-suse-linux %endif Thus we've flexible with the target and could also adress different subtargets if we differ repo-names. Another important point is "osc build". The "build" package needs this change, too. Otherwise we'd end up with a wrong autodetection when doing a osc build e.g. on a beagleboard. I put guards around this code-path to only execute this for ARM. Best, Jan-Simon
participants (1)
-
Jan-Simon Möller