build/xen: fix assembler instruction tests
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 28 Apr 2016 13:07:37 +0000 (15:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Apr 2016 13:07:37 +0000 (15:07 +0200)
commit7fb252bd41da06647c9783a0716ba29e0f15cec6
treed2cb073d6e8058fe706f19eba2a5a1abed536f81
parentd22c9bf7c3067b17cbd9cdfd8b81941dd6fb8d77
build/xen: fix assembler instruction tests

The current test performed in order to check if the assembler supports
certain instructions doesn't take into account the value of AFLAGS, which
when using clang contains the option that disables the integrated assembler
due to the lack of features.

As a result of this, the current instruction tests were performed against the
integrated assembler, but then at build time the non-integrated assembler
was used. If both have feature-parity, this is a non-issue, but we cannot
assume this.

Fix this by passing AFLAGS in the instruction test, and including the arch
Rules.mk makefile after AFLAGS is set.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Config.mk
xen/Rules.mk