summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ca3ca90)
raw | patch | inline | side by side (parent: ca3ca90)
author | Justin Sobota <jsobota@ti.com> | |
Tue, 29 Jan 2013 22:38:06 +0000 (17:38 -0500) | ||
committer | Justin Sobota <jsobota@ti.com> | |
Tue, 29 Jan 2013 22:38:06 +0000 (17:38 -0500) |
24 files changed:
diff --git a/config.bld b/config.bld
index 5f9ef0e8f92ab195844d5727b7d2e137deed69b1..393e28de84eaa7bb9e07382e896e9c2cfe337145 100644 (file)
--- a/config.bld
+++ b/config.bld
var lldPartNumber = java.lang.System.getenv("PARTNO");\r
\r
/* Include Path */\r
-var lldIncludePath = " -i" + lldPath + "/src" + " -i" + lldPath + " -i" + lldPath + "/test";\r
+var lldIncludePath = " -i" + lldPath + "/src" + " -i" + lldPath + " -i" + lldPath + "/test" + " -i" + lldPath + "/util/libfdt";\r
\r
/* Configure the RM Release Version Information */\r
var lldReleaseVersion = [02,00,00,00];\r
diff --git a/include/rm_treeloc.h b/include/rm_treeloc.h
index 24e882373b8b2fb9da330b3e978f1f06ab8684fb..080408f20b300db9db04aca75a9d874098c3b21f 100644 (file)
--- a/include/rm_treeloc.h
+++ b/include/rm_treeloc.h
/* RM external includes */
#include <ti/drv/rm/rm.h>
-/* AVL BBST includes */
-#include <ti/drv/rm/include/tree.h>
+/* Tree algorithm includes */
+#include <ti/drv/rm/util/tree.h>
/**********************************************************************
*************** Tree Node Data Structure Definitions *****************
diff --git a/package.bld b/package.bld
index a05e6807f08c0779ff3227a1109cb76f19efefb1..751f1cb2415c03b22483a01e03dbe70b7499c4ac 100644 (file)
--- a/package.bld
+++ b/package.bld
*****************************************************************************/\r
\r
/* List of all subdirectories that combine to make the RM Package. */\r
-var subDirectories = [ "src", "docs", "include", "test"];\r
+var subDirectories = [ "src", "docs", "include", "test", "util"];\r
\r
/* Determine if we need to create the InstallJammer Application or not? \r
* RM Deliverables be either of the following formats:\r
******************************************************************/\r
\r
print ("*************** RM Build Information ****************");\r
-print ("RM Install : " + lldInstallType);\r
-print ("RM Version : " + lldReleaseVersion);\r
-print ("Tools Directory : " + toolsBaseDir);\r
-print ("RTSC File Name : " + lldRTSCFileName);\r
-print ("RM Path : " + lldPath);\r
-print ("Coverity Analysis : " + (coverityAnalysis == "ON" ? "ON" : "OFF"));\r
-print ("CC LE opts : " + C66LE.ccOpts.prefix);\r
-print ("CC BE opts : " + C66BE.ccOpts.prefix);\r
+print ("RM Install : " + lldInstallType);\r
+print ("RM Version : " + lldReleaseVersion);\r
+print ("Tools Directory : " + toolsBaseDir);\r
+print ("RTSC File Name : " + lldRTSCFileName);\r
+print ("RM Path : " + lldPath);\r
+print ("Coverity Analysis : " + (coverityAnalysis == "ON" ? "ON" : "OFF"));\r
+print ("CC LE opts : " + C66LE.ccOpts.prefix);\r
+print ("CC BE opts : " + C66BE.ccOpts.prefix);\r
print ("***********************************************************");\r
\r
/* Create the release package for the RM */\r
diff --git a/src/Module.xs b/src/Module.xs
index 69271f5c9516f52e6dd17b92e6b55b4b82037e31..b240df90d983746422fdaba7d21bea6edb1b460d 100644 (file)
--- a/src/Module.xs
+++ b/src/Module.xs
"src/rm_transport.c",
"src/rm_tree.c",
"src/rm_dtb_util.c",
- "src/libfdt/fdt.c",
- "src/libfdt/fdt_ro.c",
- "src/libfdt/fdt_rw.c",
- "src/libfdt/fdt_strerror.c",
- "src/libfdt/fdt_sw.c",
- "src/libfdt/fdt_wip.c",
+ "util/libfdt/fdt.c",
+ "util/libfdt/fdt_ro.c",
+ "util/libfdt/fdt_rw.c",
+ "util/libfdt/fdt_strerror.c",
+ "util/libfdt/fdt_sw.c",
+ "util/libfdt/fdt_wip.c",
];
/**************************************************************************
/* Add all the .c files to the release package. */
var testFiles = libUtility.listAllFiles (".c", "src", true);
for (var k = 0 ; k < testFiles.length; k++)
- Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
-
- /* Add all the .h files to the release package. */
- var testFiles = libUtility.listAllFiles (".h", "src", true);
- for (var k = 0 ; k < testFiles.length; k++)
- Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
-
- /* Add all the .c files to the release package. */
- var testFiles = libUtility.listAllFiles (".c", "src/libfdt", true);
- for (var k = 0 ; k < testFiles.length; k++)
- Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
-
- /* Add all the .h files to the release package. */
- var testFiles = libUtility.listAllFiles (".h", "src/libfdt", true);
- for (var k = 0 ; k < testFiles.length; k++)
- Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
+ Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
}
diff --git a/src/libfdt/Module.xs.test b/src/libfdt/Module.xs.test
+++ /dev/null
@@ -1,51 +0,0 @@
-/******************************************************************************
- * FILE PURPOSE: LIBFDT specification file.
- ******************************************************************************
- * FILE NAME: module.xs
- *
- * DESCRIPTION:
- * This file contains the module specification for the LIBFDT directory.
- *
- * Copyright (C) 2012, Texas Instruments, Inc.
- *****************************************************************************/
-
-/* Load the library utility. */
-var libUtility = xdc.loadCapsule ("../build/buildlib.xs");
-
-var libfdtFile = [
- "libfdt/fdt.c",
- "libfdt/fdt_ro.c",
- "libfdt/fdt_rw.c",
- "libfdt/fdt_strerror.c",
- "libfdt/fdt_sw.c",
- "libfdt/fdt_wip.c",
-];
-
-/**************************************************************************
- * FUNCTION NAME : modBuild
- **************************************************************************
- * DESCRIPTION :
- * The function is used to build all the components of the RM library
- **************************************************************************/
-function modBuild()
-{
- /* Build the libraries for all the targets specified. */
- for (var targets=0; targets < Build.targets.length; targets++)
- {
- var libOptions = {
- incs: lldIncludePath,
- };
-
- libUtility.buildLibrary (libOptions, "ti.drv.rm.libfdt", Build.targets[targets], libfdtFile);
- }
-
- /* Add all the .c files to the release package. */
- var testFiles = libUtility.listAllFiles (".c", "libfdt", true);
- for (var k = 0 ; k < testFiles.length; k++)
- Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
-
- /* Add all the .h files to the release package. */
- var testFiles = libUtility.listAllFiles (".h", "libfdt", true);
- for (var k = 0 ; k < testFiles.length; k++)
- Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
-}
diff --git a/src/rm.c b/src/rm.c
index ee73b1f425727bdea6a5082fb13638b3092fa0a8..b03ccddad431f9e93ef57388e5cc2f17cc1ad807 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
#include <ti/drv/rm/include/rm_treeloc.h>\r
\r
/* RM LIBFDT includes */\r
-#include <ti/drv/rm/src/libfdt/libfdt.h>\r
+#include <ti/drv/rm/util/libfdt/libfdt.h>\r
\r
-/* AVL BBST includes */\r
-#include <ti/drv/rm/include/tree.h>\r
+/* Tree algorithm includes */\r
+#include <ti/drv/rm/util/tree.h>\r
\r
/* RM OSAL layer */\r
#include <rm_osal.h>\r
diff --git a/src/rm_dtb_util.c b/src/rm_dtb_util.c
index 9bd024ce0507422853e8ee7c32650e017064c753..e08f306600964c5a3d02a08ce75047aa894ec0dd 100644 (file)
--- a/src/rm_dtb_util.c
+++ b/src/rm_dtb_util.c
#include <rm_osal.h>
/* LIBFDT includes */
-#include <ti/drv/rm/src/libfdt/libfdt.h>
-#include <ti/drv/rm/src/libfdt/libfdt_env.h>
+#include <ti/drv/rm/util/libfdt/libfdt.h>
+#include <ti/drv/rm/util/libfdt/libfdt_env.h>
/**********************************************************************
********************Common DTB Parsing Functions**********************
diff --git a/src/rm_nameserver.c b/src/rm_nameserver.c
index c4a9e1a7270fa6085c56832ec3ba3da55d73d723..589ab6a4a6f4f66c796de8adea8f11a88a1cac20 100644 (file)
--- a/src/rm_nameserver.c
+++ b/src/rm_nameserver.c
#include <ti/drv/rm/include/rm_nameserverloc.h>
#include <ti/drv/rm/include/rm_treeloc.h>
-/* AVL BBST includes */
-#include <ti/drv/rm/include/tree.h>
+/* Tree algorithm includes */
+#include <ti/drv/rm/util/tree.h>
/* RM OSAL layer */
#include <rm_osal.h>
diff --git a/src/rm_policy.c b/src/rm_policy.c
index b49582b6d748debd1e7355ffb7e605c74b127418..b6a5c5e92c6293e9d74880e92010d92ee707b3a2 100644 (file)
--- a/src/rm_policy.c
+++ b/src/rm_policy.c
#include <ti/drv/rm/include/rm_dtb_utilloc.h>
/* RM LIBFDT includes */
-#include <ti/drv/rm/src/libfdt/libfdt.h>
+#include <ti/drv/rm/util/libfdt/libfdt.h>
-/* AVL BBST includes */
-#include <ti/drv/rm/include/tree.h>
+/* Tree algorithm includes */
+#include <ti/drv/rm/util/tree.h>
/* RM OSAL layer */
#include <rm_osal.h>
diff --git a/util/Module.xs b/util/Module.xs
--- /dev/null
+++ b/util/Module.xs
@@ -0,0 +1,42 @@
+/******************************************************************************
+ * FILE PURPOSE: RM include files.
+ ******************************************************************************
+ * FILE NAME: module.xs
+ *
+ * DESCRIPTION:
+ * This file contains the module specification for RM util directory
+ *
+ * Copyright (C) 2012-2013, Texas Instruments, Inc.
+ *****************************************************************************/
+
+/* Load the library utility. */
+var libUtility = xdc.loadCapsule ("../build/buildlib.xs");
+
+/**************************************************************************
+ * FUNCTION NAME : modBuild
+ **************************************************************************
+ * DESCRIPTION :
+ * The function is used to add all the header files in the include
+ * directory into the package.
+ **************************************************************************/
+function modBuild()
+{
+ /* Add tree algorithm files to the release package. */
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/tree.h";
+
+ /* Add libfdt library files to the relesae packages */
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/fdt.c";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/fdt.h";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/fdt_ro.c";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/fdt_rw.c";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/fdt_strerror.c";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/fdt_sw.c";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/fdt_wip.c";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/libfdt.h";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/libfdt_env.h";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/libfdt_internal.h";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/Makefile.libfdt";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/TODO";
+ Pkg.otherFiles[Pkg.otherFiles.length++] = "util/libfdt/version.lds";
+}
+
diff --git a/src/libfdt/TODO b/util/libfdt/TODO
diff --git a/src/libfdt/fdt.c b/util/libfdt/fdt.c
similarity index 98%
rename from src/libfdt/fdt.c
rename to util/libfdt/fdt.c
index 6bf65fe48b62a70d22791bdc600b1c2d700528b6..e56833ae9b6ffaee67281dc959b0c263ccc24c15 100644 (file)
rename from src/libfdt/fdt.c
rename to util/libfdt/fdt.c
index 6bf65fe48b62a70d22791bdc600b1c2d700528b6..e56833ae9b6ffaee67281dc959b0c263ccc24c15 100644 (file)
--- a/src/libfdt/fdt.c
+++ b/util/libfdt/fdt.c
*/
#include "libfdt_env.h"
-#include <ti/drv/rm/src/libfdt/fdt.h>
-#include <ti/drv/rm/src/libfdt/libfdt.h>
+#include <fdt.h>
+#include <libfdt.h>
#include "libfdt_internal.h"
diff --git a/src/libfdt/fdt.h b/util/libfdt/fdt.h
diff --git a/src/libfdt/fdt_ro.c b/util/libfdt/fdt_ro.c
similarity index 99%
rename from src/libfdt/fdt_ro.c
rename to util/libfdt/fdt_ro.c
index 9baf89492621a540196c7036d600e3b1417300eb..02b6d687537fac11e13a835502b1c16c98fb7603 100644 (file)
rename from src/libfdt/fdt_ro.c
rename to util/libfdt/fdt_ro.c
index 9baf89492621a540196c7036d600e3b1417300eb..02b6d687537fac11e13a835502b1c16c98fb7603 100644 (file)
--- a/src/libfdt/fdt_ro.c
+++ b/util/libfdt/fdt_ro.c
*/
#include "libfdt_env.h"
-#include <ti/drv/rm/src/libfdt/fdt.h>
-#include <ti/drv/rm/src/libfdt/libfdt.h>
+#include <fdt.h>
+#include <libfdt.h>
#include "libfdt_internal.h"
diff --git a/src/libfdt/fdt_rw.c b/util/libfdt/fdt_rw.c
similarity index 99%
rename from src/libfdt/fdt_rw.c
rename to util/libfdt/fdt_rw.c
index 40d9b5cf111113c8690168f8e5f02fdfdcfb501e..994037bbbda93ea8c71fe9b3208c2fe9d20ca034 100644 (file)
rename from src/libfdt/fdt_rw.c
rename to util/libfdt/fdt_rw.c
index 40d9b5cf111113c8690168f8e5f02fdfdcfb501e..994037bbbda93ea8c71fe9b3208c2fe9d20ca034 100644 (file)
--- a/src/libfdt/fdt_rw.c
+++ b/util/libfdt/fdt_rw.c
*/
#include "libfdt_env.h"
-#include <ti/drv/rm/src/libfdt/fdt.h>
-#include <ti/drv/rm/src/libfdt/libfdt.h>
+#include <fdt.h>
+#include <libfdt.h>
#include "libfdt_internal.h"
similarity index 97%
rename from src/libfdt/fdt_strerror.c
rename to util/libfdt/fdt_strerror.c
index 67dec2feacdbc21f8f1bc4643bc49bbaeea6ee42..e6c3ceee8c58c56beee386e6ed730e32c4ff646b 100644 (file)
rename from src/libfdt/fdt_strerror.c
rename to util/libfdt/fdt_strerror.c
index 67dec2feacdbc21f8f1bc4643bc49bbaeea6ee42..e6c3ceee8c58c56beee386e6ed730e32c4ff646b 100644 (file)
*/
#include "libfdt_env.h"
-#include <ti/drv/rm/src/libfdt/fdt.h>
-#include <ti/drv/rm/src/libfdt/libfdt.h>
+#include <fdt.h>
+#include <libfdt.h>
#include "libfdt_internal.h"
diff --git a/src/libfdt/fdt_sw.c b/util/libfdt/fdt_sw.c
similarity index 98%
rename from src/libfdt/fdt_sw.c
rename to util/libfdt/fdt_sw.c
index aa5236d66406b2423deeb6c22a09ed5a0bcbb741..55ebebf1eb20e8c7f9200881f99ecf03632db9a3 100644 (file)
rename from src/libfdt/fdt_sw.c
rename to util/libfdt/fdt_sw.c
index aa5236d66406b2423deeb6c22a09ed5a0bcbb741..55ebebf1eb20e8c7f9200881f99ecf03632db9a3 100644 (file)
--- a/src/libfdt/fdt_sw.c
+++ b/util/libfdt/fdt_sw.c
*/
#include "libfdt_env.h"
-#include <ti/drv/rm/src/libfdt/fdt.h>
-#include <ti/drv/rm/src/libfdt/libfdt.h>
+#include <fdt.h>
+#include <libfdt.h>
#include "libfdt_internal.h"
diff --git a/src/libfdt/fdt_wip.c b/util/libfdt/fdt_wip.c
similarity index 97%
rename from src/libfdt/fdt_wip.c
rename to util/libfdt/fdt_wip.c
index b32829086c239c476a2ba9635f6a023a9d992665..6025fa1fe8feeb046a68605776d0d1ecac1efe9f 100644 (file)
rename from src/libfdt/fdt_wip.c
rename to util/libfdt/fdt_wip.c
index b32829086c239c476a2ba9635f6a023a9d992665..6025fa1fe8feeb046a68605776d0d1ecac1efe9f 100644 (file)
--- a/src/libfdt/fdt_wip.c
+++ b/util/libfdt/fdt_wip.c
*/
#include "libfdt_env.h"
-#include <ti/drv/rm/src/libfdt/fdt.h>
-#include <ti/drv/rm/src/libfdt/libfdt.h>
+#include <fdt.h>
+#include <libfdt.h>
#include "libfdt_internal.h"
diff --git a/src/libfdt/libfdt.h b/util/libfdt/libfdt.h
similarity index 99%
rename from src/libfdt/libfdt.h
rename to util/libfdt/libfdt.h
index 3cb3153b9c0757618e6f34b41e7b6e1b68079936..55f3eb3042d68756239b05acf96c2a721982c3a2 100644 (file)
rename from src/libfdt/libfdt.h
rename to util/libfdt/libfdt.h
index 3cb3153b9c0757618e6f34b41e7b6e1b68079936..55f3eb3042d68756239b05acf96c2a721982c3a2 100644 (file)
--- a/src/libfdt/libfdt.h
+++ b/util/libfdt/libfdt.h
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <ti/drv/rm/src/libfdt/libfdt_env.h>
-#include <ti/drv/rm/src/libfdt/fdt.h>
+#include <libfdt_env.h>
+#include <fdt.h>
#define FDT_FIRST_SUPPORTED_VERSION 0x10
#define FDT_LAST_SUPPORTED_VERSION 0x11
struct fdt_header *fdth = (struct fdt_header*)fdt; \
fdth->name = cpu_to_fdt32(val); \
}
-__fdt_set_hdr(magic)
-__fdt_set_hdr(totalsize)
-__fdt_set_hdr(off_dt_struct)
-__fdt_set_hdr(off_dt_strings)
-__fdt_set_hdr(off_mem_rsvmap)
-__fdt_set_hdr(version)
-__fdt_set_hdr(last_comp_version)
-__fdt_set_hdr(boot_cpuid_phys)
-__fdt_set_hdr(size_dt_strings)
-__fdt_set_hdr(size_dt_struct)
+__fdt_set_hdr(magic);
+__fdt_set_hdr(totalsize);
+__fdt_set_hdr(off_dt_struct);
+__fdt_set_hdr(off_dt_strings);
+__fdt_set_hdr(off_mem_rsvmap);
+__fdt_set_hdr(version);
+__fdt_set_hdr(last_comp_version);
+__fdt_set_hdr(boot_cpuid_phys);
+__fdt_set_hdr(size_dt_strings);
+__fdt_set_hdr(size_dt_struct);
#undef __fdt_set_hdr
/**
similarity index 98%
rename from src/libfdt/libfdt_internal.h
rename to util/libfdt/libfdt_internal.h
index b27abe145f7b29996c2e8a85c158f137e3c59fe4..381133ba81df7d02c375d7a1462d650136abd6d1 100644 (file)
rename from src/libfdt/libfdt_internal.h
rename to util/libfdt/libfdt_internal.h
index b27abe145f7b29996c2e8a85c158f137e3c59fe4..381133ba81df7d02c375d7a1462d650136abd6d1 100644 (file)
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <ti/drv/rm/src/libfdt/fdt.h>
+#include <fdt.h>
#define FDT_ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
#define FDT_TAGALIGN(x) (FDT_ALIGN((x), FDT_TAGSIZE))
diff --git a/include/tree.h b/util/tree.h