You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by st...@apache.org on 2016/10/11 10:10:08 UTC

[1/4] incubator-incubator-mynewt-pkg-pkg git commit: first commit

Repository: incubator-incubator-mynewt-pkg-pkg
Updated Branches:
  refs/heads/master [created] d12f2c567


first commit


Project: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/commit/5abaf5fe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/tree/5abaf5fe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/diff/5abaf5fe

Branch: refs/heads/master
Commit: 5abaf5fef1f2b29259f3240199e5494750d6e11e
Parents: 
Author: Sterling Hughes <st...@apache.org>
Authored: Sun Oct 9 11:04:32 2016 +0100
Committer: Sterling Hughes <st...@apache.org>
Committed: Sun Oct 9 11:04:32 2016 +0100

----------------------------------------------------------------------
 README.md | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/blob/5abaf5fe/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d9fd348
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# incubator-mynewt-pkg-pkg


[4/4] incubator-incubator-mynewt-pkg-pkg git commit: add documentation to the sample package

Posted by st...@apache.org.
add documentation to the sample package


Project: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/commit/d12f2c56
Tree: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/tree/d12f2c56
Diff: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/diff/d12f2c56

Branch: refs/heads/master
Commit: d12f2c567da85bbfc2acfe5882425e83d12e4e5f
Parents: 1b73639
Author: Sterling Hughes <st...@apache.org>
Authored: Tue Oct 11 12:08:21 2016 +0200
Committer: Sterling Hughes <st...@apache.org>
Committed: Tue Oct 11 12:08:21 2016 +0200

----------------------------------------------------------------------
 .gitignore                    | 33 +++++++++++++++++++++++++++++++++
 README.md                     | 13 ++++++++++++-
 include/your-path/your-file.h | 31 +++++++++++++++++++++++++++++++
 src/your-source.c             | 18 ++++++++++++++++++
 4 files changed, 94 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/blob/d12f2c56/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ff4c547
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,33 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+.app.db
+.app
+bin
+obj
+tags
+.gdb_history
+.gdb_out
+.gdb_cmds
+.gdbinit
+*~
+.DS_Store
+*.swp
+*.swo
+

http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/blob/d12f2c56/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index d9fd348..57d8245 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,12 @@
-# incubator-mynewt-pkg-pkg
+# Sample Package Definition
+
+This is a basic definition of a sample Mynewt package.
+
+The source files are located in the src/ directory.
+
+Header files are located in include/ 
+
+pkg.yml contains the base definition of the package.
+
+Any questions?  Please refer to the documentation at 
+http://mynewt.apache.org/ or ask questions on dev@mynewt.apache.org

http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/blob/d12f2c56/include/your-path/your-file.h
----------------------------------------------------------------------
diff --git a/include/your-path/your-file.h b/include/your-path/your-file.h
index e69de29..8716e48 100644
--- a/include/your-path/your-file.h
+++ b/include/your-path/your-file.h
@@ -0,0 +1,31 @@
+/*
+ * This is a sample header file for your package.  Feel free to delete this
+ * file, or rename it.
+ *
+ * Package include files are located under the <pkg>/include/<pkg-name>
+ * directory.  When referencing include files in this directory, the
+ * include statement should be:
+ *
+ * #include "pkg-name/file-name.h"
+ *
+ * If you are referencing package includes from another package, you must
+ * list the package who's includes you are referencing as a dependency in
+ * the pkg.yml file.  By adding the package as a dependency, newt will
+ * automatically add -I<pkg>/include to the CFLAGS when compiling your
+ * package.
+ *
+ * If you want to provide architecture specific header files, you can do
+ * this by putting it into the "arch/your-arch/pkg-name".  For example,
+ * to have a header file that is overrode for Cortex-M4 architectures, you
+ * would put the file in the following location:
+ *
+ * * <your-pkg>/include/<your-pkg>/arch/cortex_m4/<your-pkg>/file-name.h
+ *
+ * And you can then include it with the following include statement:
+ *
+ * #include "pkg-name/file-name.h"
+ *
+ * And depending on what architecture is specified (usually controlled by
+ * BSP or MCU definition), the correct architecture directory will be
+ * included.
+ */

http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/blob/d12f2c56/src/your-source.c
----------------------------------------------------------------------
diff --git a/src/your-source.c b/src/your-source.c
index e69de29..2f8c1dc 100644
--- a/src/your-source.c
+++ b/src/your-source.c
@@ -0,0 +1,18 @@
+/**
+ * Depending on the type of package, there are different
+ * compilation rules for this directory.  This comment applies
+ * to packages of type "pkg."  For other types of packages,
+ * please view the documentation at http://mynewt.apache.org/.
+ *
+ * Put source files in this directory.  All files that have a *.c
+ * ending are recursively compiled in the src/ directory and its
+ * descendants.  The exception here is the arch/ directory, which
+ * is ignored in the default compilation.
+ *
+ * The arch/<your-arch>/ directories are manually added and
+ * recursively compiled for all files that end with either *.c
+ * or *.a.  Any directories in arch/ that don't match the
+ * architecture being compiled are not compiled.
+ *
+ * Architecture is set by the BSP/MCU combination.
+ */


[2/4] incubator-incubator-mynewt-pkg-pkg git commit: add template include file and pkg.yml

Posted by st...@apache.org.
add template include file and pkg.yml


Project: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/commit/d149f6d4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/tree/d149f6d4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/diff/d149f6d4

Branch: refs/heads/master
Commit: d149f6d47e720eee5565db49e7ea214f07bfe4d5
Parents: 5abaf5f
Author: Sterling Hughes <st...@apache.org>
Authored: Sun Oct 9 12:30:30 2016 +0100
Committer: Sterling Hughes <st...@apache.org>
Committed: Sun Oct 9 12:30:30 2016 +0100

----------------------------------------------------------------------
 include/your-path/your-file.h |  0
 pkg.yml                       | 26 ++++++++++++++++++++++++++
 2 files changed, 26 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/blob/d149f6d4/include/your-path/your-file.h
----------------------------------------------------------------------
diff --git a/include/your-path/your-file.h b/include/your-path/your-file.h
new file mode 100644
index 0000000..e69de29

http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/blob/d149f6d4/pkg.yml
----------------------------------------------------------------------
diff --git a/pkg.yml b/pkg.yml
new file mode 100644
index 0000000..4e16759
--- /dev/null
+++ b/pkg.yml
@@ -0,0 +1,26 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+pkg.name: your-pkg-name
+pkg.description: "Description of your package"
+pkg.author: "You <yo...@you.org>"
+pkg.homepage: "http://your-url.org/"
+pkg.keywords:
+
+pkg.deps:


[3/4] incubator-incubator-mynewt-pkg-pkg git commit: base of sample source file

Posted by st...@apache.org.
base of sample source file


Project: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/commit/1b73639e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/tree/1b73639e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/diff/1b73639e

Branch: refs/heads/master
Commit: 1b73639ef9c10c9b59213be1377b4acc20aec71d
Parents: d149f6d
Author: Sterling Hughes <st...@apache.org>
Authored: Sun Oct 9 12:31:15 2016 +0100
Committer: Sterling Hughes <st...@apache.org>
Committed: Sun Oct 9 12:31:15 2016 +0100

----------------------------------------------------------------------
 src/your-source.c | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-incubator-mynewt-pkg-pkg/blob/1b73639e/src/your-source.c
----------------------------------------------------------------------
diff --git a/src/your-source.c b/src/your-source.c
new file mode 100644
index 0000000..e69de29