mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
Solve all config problems, make a local site.exp file.
This commit is contained in:
@ -144,7 +144,32 @@ uninstall: force
|
|||||||
# -rm -f $(datadir)/*.exp
|
# -rm -f $(datadir)/*.exp
|
||||||
-rm -fr $(targetdir)
|
-rm -fr $(targetdir)
|
||||||
|
|
||||||
check: all
|
site.exp: ./config.status
|
||||||
|
@echo "Making a new config file..."
|
||||||
|
-@rm -f ./tmp?
|
||||||
|
@touch site.exp
|
||||||
|
-@mv site.exp site.bak
|
||||||
|
@echo "## these variables are automatically generated by make ##" > ./tmp0
|
||||||
|
@echo "# Do not edit here. If you wish to override these values" >> ./tmp0
|
||||||
|
@echo "# add them to the last section" >> ./tmp0
|
||||||
|
@echo "set host_os ${host_os}" >> ./tmp0
|
||||||
|
@echo "set host_alias ${host_alias}" >> ./tmp0
|
||||||
|
@echo "set host_cpu ${host_cpu}" >> ./tmp0
|
||||||
|
@echo "set host_vendor ${host_vendor}" >> ./tmp0
|
||||||
|
@echo "set target_os ${target_os}" >> ./tmp0
|
||||||
|
@echo "set target_alias ${target_alias}" >> ./tmp0
|
||||||
|
@echo "set target_cpu ${target_cpu}" >> ./tmp0
|
||||||
|
@echo "set target_vendor ${target_vendor}" >> ./tmp0
|
||||||
|
@echo "set srcdir ${srcdir}" >> ./tmp0
|
||||||
|
@echo "set exec_prefix ${exec_prefix}" >> ./tmp0
|
||||||
|
@echo "set objdir `pwd`" >> ./tmp0
|
||||||
|
@echo "## All variables above are generated by configure. Do Not Edit ##" >> ./tmp0
|
||||||
|
@cat ./tmp0 > site.exp
|
||||||
|
@cat site.bak | sed \
|
||||||
|
-e '1,/^## All variables above are.*##/ d' >> site.exp
|
||||||
|
@rm -f ./tmp1 ./tmp0
|
||||||
|
|
||||||
|
check: all site.exp
|
||||||
$(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB)
|
$(RUNTEST) $(RUNTESTFLAGS) --tool gdb GDB=$(GDB)
|
||||||
|
|
||||||
subdir_do: force
|
subdir_do: force
|
||||||
|
Reference in New Issue
Block a user