From f285bb2349d6a3f740a48a365bc91b1b86e0de08 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 17 Nov 2015 15:19:55 +0100 Subject: [PATCH] doc: move pkg/PORTING.md and pkg/USING.md to doxygen --- doc/doxygen/riot.doxyfile | 2 +- pkg/PORTING.md | 22 ---------------- pkg/USING.md | 5 ---- pkg/doc.txt | 55 ++++++++++++++++++++++++++++++--------- 4 files changed, 43 insertions(+), 41 deletions(-) delete mode 100644 pkg/PORTING.md delete mode 100644 pkg/USING.md diff --git a/doc/doxygen/riot.doxyfile b/doc/doxygen/riot.doxyfile index 8b21edbc7..bfb923c5d 100644 --- a/doc/doxygen/riot.doxyfile +++ b/doc/doxygen/riot.doxyfile @@ -758,8 +758,8 @@ INPUT = ../../doc.txt \ ../../cpu \ ../../boards \ ../../drivers \ - ../../sys \ ../../pkg \ + ../../sys \ src/ \ src/mainpage.md \ src/getting-started.md diff --git a/pkg/PORTING.md b/pkg/PORTING.md deleted file mode 100644 index f6506f01c..000000000 --- a/pkg/PORTING.md +++ /dev/null @@ -1,22 +0,0 @@ -This directory provides some porting information for libraries and programs to -use with RIOT (to build an external module). If you'd like to add a package to -RIOT you need to add a directory with the name of your package to this directory. -Your directory should contain at least two files: - - * **One or more patch files** - Your patches of the upstream application of - the package to make it build with RIOT. - * **Makefile**- A Makefile describing how to get the upstream application, - apply the patch and how to build the package as a RIOT module. - A rough template for several methods of acquiring a package is provided in - Makefile.git, Makefile.http, and Makefile.svn - -### Creating a patch with git - -Assuming your upstream application resides in a git repository, you can create -the patch files as follows: - * checkout the targeted version of the upstream application - * conduct necessary changes (e.g. edit, add, or remove some files) - * commit your changes using `git commit` - * create the patch files using `git format-patch -n HEAD~N` where `N` is the - number of commits you did - * move the resulting patch files to the corresponding subfolder of pkg diff --git a/pkg/USING.md b/pkg/USING.md deleted file mode 100644 index 1de618b4c..000000000 --- a/pkg/USING.md +++ /dev/null @@ -1,5 +0,0 @@ -Packages are included to your application as external modules. Thus you only -have to add the following line to your application (and update your INCLUDE path -accordingly): - - USEPKG += diff --git a/pkg/doc.txt b/pkg/doc.txt index d97acce3e..8ee8f21c3 100644 --- a/pkg/doc.txt +++ b/pkg/doc.txt @@ -1,15 +1,44 @@ -/* - * Copyright (C) 2015 INRIA - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - /** - * @defgroup pkg Packages - * @brief RIOT supports the integration of external libraries. These - * libraries can be used as BSD-like packages, i.e. they are - * downloaded automatically at compile-time (if needed) and linked - * against RIOT. + * @defgroup pkg Packages + * @{ + * @brief External libraries and applications + * + * Using packages + * ============== + * To add a package to the list of compiled modules you have to add it to the + * `USEPKG` macro in your application's Makefile. If the package provides + * header files you might need to update the `INCLUDE` macro, too: + * + * ~~~~~~~~ {.mk} + * USEPKG += + * INCLUDE += $(RIOTBASE)/pkg//... + * ~~~~~~~~ + * + * Porting an external library + * =========================== + * Structure of a package + * ---------------------- + * This module provides porting information for libraries and applications to use + * with RIOT (to build an external module). If you'd like to add a package to RIOT + * you need to add a directory with the name of your package to this directory. + * This directory should contain at least two files: + * + * * **Zero or more patch files**: Your patches of the upstream application of + * the package to make it build with RIOT. + * * **Makefile**: A Makefile describing how to get the upstream application, + * apply the patch and how to build the package as a RIOT module. + * A rough template for several methods of acquiring a package is provided in + * `pkg/Makefile.git`, `pkg/Makefile.http`, and `pkg/Makefile.svn` + * + * Creating a patch with git + * ------------------------- + * Assuming your upstream library resides in a git repository, you can create the + * patch files as follows: + * * checkout the targeted version of the upstream application + * * create a new branch (e.g. `riot-port`) + * * conduct necessary changes (e.g. edit, add, or remove some files) + * * commit your changes using `git commit` + * * create the patch files using `git format-patch -n riot-port` + * * move the resulting patch files to the corresponding subfolder of pkg + * @} */