• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョンcdbd727c20ad7aac7797dc8c95e485e1a4c6901b (tree)
日時2016-07-11 02:05:46
作者Richard Henderson <rth@twid...>
コミッターRichard Henderson

ログメッセージ

build: Use $(AS) for optionrom explicitly

For clang before 3.5, -fno-integrated-as does not exist,
so the workaround in 5f6f0e27fb24 fails to build.

Use clang's default assembler for linux-user/safe-syscall.S,
and explicitly change to use the system assembler for the
option roms.

Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>

変更サマリ

差分

--- a/configure
+++ b/configure
@@ -368,6 +368,7 @@ else
368368 fi
369369
370370 ar="${AR-${cross_prefix}ar}"
371+as="${AS-${cross_prefix}as}"
371372 ccas="${CCAS-$cc}"
372373 cpp="${CPP-$cc -E}"
373374 objcopy="${OBJCOPY-${cross_prefix}objcopy}"
@@ -4490,13 +4491,6 @@ if test "$fortify_source" != "no"; then
44904491 fi
44914492 fi
44924493
4493-#################################################
4494-# clang does not support the 16-bit assembly for roms
4495-
4496-if echo | $ccas -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
4497- ccas="$ccas -fno-integrated-as"
4498-fi
4499-
45004494 ##########################################
45014495 # check if struct fsxattr is available via linux/fs.h
45024496
@@ -5515,6 +5509,7 @@ echo "CXX=$cxx" >> $config_host_mak
55155509 echo "OBJCC=$objcc" >> $config_host_mak
55165510 echo "AR=$ar" >> $config_host_mak
55175511 echo "ARFLAGS=$ARFLAGS" >> $config_host_mak
5512+echo "AS=$as" >> $config_host_mak
55185513 echo "CCAS=$ccas" >> $config_host_mak
55195514 echo "CPP=$cpp" >> $config_host_mak
55205515 echo "OBJCOPY=$objcopy" >> $config_host_mak
@@ -5988,6 +5983,7 @@ for rom in seabios vgabios ; do
59885983 config_mak=roms/$rom/config.mak
59895984 echo "# Automatically generated by configure - do not modify" > $config_mak
59905985 echo "SRC_PATH=$source_path/roms/$rom" >> $config_mak
5986+ echo "AS=$as" >> $config_mak
59915987 echo "CCAS=$ccas" >> $config_mak
59925988 echo "CC=$cc" >> $config_mak
59935989 echo "BCC=bcc" >> $config_mak
--- a/pc-bios/optionrom/Makefile
+++ b/pc-bios/optionrom/Makefile
@@ -20,6 +20,9 @@ build-all: multiboot.bin linuxboot.bin kvmvapic.bin
2020 # suppress auto-removal of intermediate files
2121 .SECONDARY:
2222
23+%.o: %.S
24+ $(call quiet-command,$(CPP) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o - $< | $(AS) $(ASFLAGS) -o $@," AS $(TARGET_DIR)$@")
25+
2326 %.img: %.o
2427 $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@")
2528
--- a/rules.mak
+++ b/rules.mak
@@ -69,7 +69,7 @@ LINK = $(call quiet-command, $(LINKPROG) $(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS) -o
6969 $(version-obj-y) $(call extract-libs,$1) $(LIBS)," LINK $(TARGET_DIR)$@")
7070
7171 %.o: %.S
72- $(call quiet-command,$(CCAS) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@")
72+ $(call quiet-command,$(CCAS) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," CCAS $(TARGET_DIR)$@")
7373
7474 %.o: %.cc
7575 $(call quiet-command,$(CXX) $(QEMU_INCLUDES) $(QEMU_CXXFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) $($@-cflags) -c -o $@ $<," CXX $(TARGET_DIR)$@")