Commit eb963443 authored by mru's avatar mru

configure: set TARGET_EXEC and TARGET_PATH

TARGET_EXEC specifies a command to execute cross-compiled binaries,
e.g. through a remote shell or an emulator.

TARGET_PATH specifies the path to the build directory on the target,
e.g. mounted over NFS.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15913 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5777fadb
...@@ -118,6 +118,8 @@ show_help(){ ...@@ -118,6 +118,8 @@ show_help(){
echo " --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]" echo " --cross-prefix=PREFIX use PREFIX for compilation tools [$cross_prefix]"
echo " --enable-cross-compile assume a cross-compiler is used" echo " --enable-cross-compile assume a cross-compiler is used"
echo " --target-os=OS compiler targets OS [$target_os]" echo " --target-os=OS compiler targets OS [$target_os]"
echo " --target-exec=CMD command to run executables on target"
echo " --target-path=DIR path to view of build directory on target"
echo " --cc=CC use C compiler CC [$cc]" echo " --cc=CC use C compiler CC [$cc]"
echo " --host-cc=HOSTCC use host C compiler HOSTCC" echo " --host-cc=HOSTCC use host C compiler HOSTCC"
echo " --host-cflags=HCFLAGS use HCFLAGS when compiling for host" echo " --host-cflags=HCFLAGS use HCFLAGS when compiling for host"
...@@ -916,7 +918,9 @@ CMDLINE_SET=" ...@@ -916,7 +918,9 @@ CMDLINE_SET="
host_libs host_libs
logfile logfile
source_path source_path
target_exec
target_os target_os
target_path
" "
# code dependency declarations # code dependency declarations
...@@ -1121,6 +1125,8 @@ LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIBNAME)"' ...@@ -1121,6 +1125,8 @@ LIB_INSTALL_EXTRA_CMD='$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
host_cflags='-O3 -g -Wall' host_cflags='-O3 -g -Wall'
host_libs='-lm' host_libs='-lm'
target_path='.'
# gcc stupidly only outputs the basename of targets with -MM, but we need the # gcc stupidly only outputs the basename of targets with -MM, but we need the
# full relative path for objects in subdirectories for non-recursive Make. # full relative path for objects in subdirectories for non-recursive Make.
DEPEND_CMD='$(CC) $(CFLAGS) -MM -MG $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o," -e "s,\\([[:space:]]\\)\\(version\\.h\\),\\1\$$(BUILD_ROOT_REL)/\\2,"' DEPEND_CMD='$(CC) $(CFLAGS) -MM -MG $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o," -e "s,\\([[:space:]]\\)\\(version\\.h\\),\\1\$$(BUILD_ROOT_REL)/\\2,"'
...@@ -2239,6 +2245,8 @@ echo "HOSTCC=$host_cc" >> config.mak ...@@ -2239,6 +2245,8 @@ echo "HOSTCC=$host_cc" >> config.mak
echo "HOSTCFLAGS=$host_cflags" >> config.mak echo "HOSTCFLAGS=$host_cflags" >> config.mak
echo "HOSTLDFLAGS=$host_ldflags" >> config.mak echo "HOSTLDFLAGS=$host_ldflags" >> config.mak
echo "HOSTLIBS=$host_libs" >> config.mak echo "HOSTLIBS=$host_libs" >> config.mak
echo "TARGET_EXEC=$target_exec" >> config.mak
echo "TARGET_PATH=$target_path" >> config.mak
if enabled bigendian; then if enabled bigendian; then
echo "WORDS_BIGENDIAN=yes" >> config.mak echo "WORDS_BIGENDIAN=yes" >> config.mak
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment