Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add support for DM8168 and DM8148 with the --with-platform flag in co…

…nfigure
  • Loading branch information...
commit 1eeb31b33deb11e08707c967bf005d6607e5bccd 1 parent 18aff11
@DavidSoto DavidSoto authored
View
1  Makefile.am
@@ -22,6 +22,7 @@ linker.script: $(srcdir)/linker.script.in
-e "s?@FC_INSTALL_DIR@?$(FC_INSTALL_DIR)?" \
-e "s?@UIA_INSTALL_DIR@?$(UIA_INSTALL_DIR)?" \
-e "s?@LINUXUTILS_INSTALL_DIR@?$(LINUXUTILS_INSTALL_DIR)?" \
+ -e "s?@PLATFORM@?$(TARGETPLATFORM)?" \
$< > $@
libOMX_Core.pc: $(srcdir)/libOMX_Core.pc.in
View
2  Makefile.in
@@ -186,6 +186,7 @@ SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
+TARGETPLATFORM = @TARGETPLATFORM@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
@@ -738,6 +739,7 @@ linker.script: $(srcdir)/linker.script.in
-e "s?@FC_INSTALL_DIR@?$(FC_INSTALL_DIR)?" \
-e "s?@UIA_INSTALL_DIR@?$(UIA_INSTALL_DIR)?" \
-e "s?@LINUXUTILS_INSTALL_DIR@?$(LINUXUTILS_INSTALL_DIR)?" \
+ -e "s?@PLATFORM@?$(TARGETPLATFORM)?" \
$< > $@
libOMX_Core.pc: $(srcdir)/libOMX_Core.pc.in
View
27 configure
@@ -616,6 +616,7 @@ am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
OMXVERSION
+TARGETPLATFORM
EZSDKDIR
CPP
OTOOL64
@@ -735,6 +736,7 @@ enable_fast_install
with_gnu_ld
enable_libtool_lock
with_ezsdkdir
+with_platform
'
ac_precious_vars='build_alias
host_alias
@@ -745,7 +747,8 @@ LDFLAGS
LIBS
CPPFLAGS
CPP
-EZSDKDIR'
+EZSDKDIR
+TARGETPLATFORM'
# Initialize some variables set by options.
@@ -1383,6 +1386,8 @@ Optional Packages:
both]
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-ezsdkdir=<path> Set the path for the ezsdk
+ --with-platform=<targetPlatform>
+ Set the platform of your target board
Some influential environment variables:
CC C compiler command
@@ -1394,6 +1399,8 @@ Some influential environment variables:
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
EZSDKDIR path for the ezsdk location
+ TARGETPLATFORM
+ target platform
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
@@ -10489,6 +10496,24 @@ if test -z $EZSDKDIR ; then
as_fn_error $? "you need to provide the path for the EZSDK installation dir!" "$LINENO" 5
fi
+
+
+# Check whether --with-platform was given.
+if test "${with_platform+set}" = set; then :
+ withval=$with_platform; { $as_echo "$as_me:${as_lineno-$LINENO}: Setting the platform \"$withval\"" >&5
+$as_echo "$as_me: Setting the platform \"$withval\"" >&6;}
+ TARGETPLATFORM=$withval
+
+
+
+fi
+
+
+if test -z $TARGETPLATFORM ; then
+ as_fn_error $? "you need to provide the platform that you are using!" "$LINENO" 5
+fi
+
+
if ! test -f $EZSDKDIR/Rules.make ; then
as_fn_error $? "Can not find Rules.make in the EZSDK installation directory provided ($EZSDKDIR/Rules.make)" "$LINENO" 5
fi
View
14 configure.ac
@@ -24,6 +24,20 @@ if test -z $EZSDKDIR ; then
AC_MSG_ERROR([you need to provide the path for the EZSDK installation dir!])
fi
+AC_ARG_VAR([TARGETPLATFORM], [target platform])
+AC_ARG_WITH(platform,
+ [AS_HELP_STRING([--with-platform=<targetPlatform>],
+ [Set the platform of your target board])],
+ [AC_MSG_NOTICE([Setting the platform "$withval"])
+ AC_SUBST([TARGETPLATFORM],[$withval])
+ ]
+)
+
+if test -z $TARGETPLATFORM ; then
+ AC_MSG_ERROR([you need to provide the platform that you are using!])
+fi
+
+
if ! test -f $EZSDKDIR/Rules.make ; then
AC_MSG_ERROR([Can not find Rules.make in the EZSDK installation directory provided ($EZSDKDIR/Rules.make)])
fi
View
10 linker.script.in
@@ -2,20 +2,20 @@ INPUT(
@OMX_INSTALL_DIR@/lib/ti/omx/omxcore/lib/a8host/debug/omxcore.av5T
@OMX_INSTALL_DIR@/lib/ti/omx/domx/lib/a8host/debug/domx.av5T
@OSAL_INSTALL_DIR@/packages/linuxdist/build/lib/osal.a
- @OMX_INSTALL_DIR@/lib/omxobjs/obj/ti816x-evm/a8host/debug/omxcore_cfg.ov5T
- @OMX_INSTALL_DIR@/lib/omxobjs/obj/ti816x-evm/a8host/debug/domx_cfg.ov5T
+ @OMX_INSTALL_DIR@/lib/omxobjs/obj/@PLATFORM@/a8host/debug/omxcore_cfg.ov5T
+ @OMX_INSTALL_DIR@/lib/omxobjs/obj/@PLATFORM@/a8host/debug/domx_cfg.ov5T
@OMX_INSTALL_DIR@/lib/ti/omx/memcfg/lib/a8host/debug/memcfg.av5T
- @OMX_INSTALL_DIR@/lib/omxobjs/obj/ti816x-evm/a8host/debug/memtbl_cfg.ov5T
+ @OMX_INSTALL_DIR@/lib/omxobjs/obj/@PLATFORM@/a8host/debug/memtbl_cfg.ov5T
@OMX_INSTALL_DIR@/lib/ti/timmosal/lib/a8host/debug/timmosal.av5T
@SYSLINK_INSTALL_DIR@/packages/ti/syslink/lib/syslink.a_release
@FC_INSTALL_DIR@/packages/ti/sdo/rcm/lib/debug/rcm_syslink.av5T
@OMX_INSTALL_DIR@/lib/ti/omx/domx/delegates/shmem/lib/a8host/debug/domx_delegates_shmem.av5T
@FC_INSTALL_DIR@/packages/ti/sdo/fc/memutils/lib/release/memutils.av5T
@OSAL_INSTALL_DIR@/packages/linuxdist/cstubs/lib/cstubs.a
- @OMX_INSTALL_DIR@/lib/omxobjs/obj/ti816x-evm/a8host/debug/domxProxyWrappers.ov5T
+ @OMX_INSTALL_DIR@/lib/omxobjs/obj/@PLATFORM@/a8host/debug/domxProxyWrappers.ov5T
@FC_INSTALL_DIR@/packages/ti/sdo/fc/global/lib/debug/fcsettings.av5T
@LINUXUTILS_INSTALL_DIR@/packages/ti/sdo/linuxutils/cmem/lib/cmem.a470MV
@OMX_INSTALL_DIR@/lib/ti/omx/domx/obj/a8host/debug/OmxRpcCbSkel.ov5T
- @OMX_INSTALL_DIR@/lib/omxobjs/obj/ti816x-evm/a8host/debug/domx_delegates_shmem_cfg.ov5T
+ @OMX_INSTALL_DIR@/lib/omxobjs/obj/@PLATFORM@/a8host/debug/domx_delegates_shmem_cfg.ov5T
@UIA_INSTALL_DIR@/packages/ti/uia/linux/lib/servicemgr.a
)
Please sign in to comment.
Something went wrong with that request. Please try again.