[FE training-materials-updates] Add a prebuilt module example and advise the use of such modules in the labs

Maxime Ripard maxime.ripard at free-electrons.com
Mon Oct 1 14:56:26 CEST 2012


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=84ad1c0cc698b44e8f86ffa12fbeb4c4ed559818

>---------------------------------------------------------------

commit 84ad1c0cc698b44e8f86ffa12fbeb4c4ed559818
Author: Maxime Ripard <maxime.ripard at free-electrons.com>
Date:   Mon Oct 1 14:56:56 2012 +0200

    Add a prebuilt module example and advise the use of such modules in the labs
    
    Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>


>---------------------------------------------------------------

84ad1c0cc698b44e8f86ffa12fbeb4c4ed559818
 .../android-system-customization.tex               |    7 +++++--
 .../android-build-system-modules.tex               |   13 +++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/labs/android-system-customization/android-system-customization.tex b/labs/android-system-customization/android-system-customization.tex
index c035086..0eab2d6 100644
--- a/labs/android-system-customization/android-system-customization.tex
+++ b/labs/android-system-customization/android-system-customization.tex
@@ -21,8 +21,11 @@ the name of the product that is used through the command line passed to the
 kernel to match the name of your product. You can pass the product name through
 the \code{androidboot.hardware} kernel parameter.
 
-Now, setup a custom init config file that will be used only by your product and
-make it create the file \code{/data/hello_world}.
+Now, setup a custom init config file that will be used only by your
+product and make it create the file \code{/data/hello_world}. As we
+will need to copy prebuilt files to the image, we will prefer to
+declare prebuilt modules over the deprecated \code{PRODUCT_COPY_FILES}
+mechanism.
 
 The system should compile and boot flawlessly on the DevKit8000, with all the
 corrections we made earlier.
diff --git a/slides/android-build-system-modules/android-build-system-modules.tex b/slides/android-build-system-modules/android-build-system-modules.tex
index ad13e98..ca94018 100644
--- a/slides/android-build-system-modules/android-build-system-modules.tex
+++ b/slides/android-build-system-modules/android-build-system-modules.tex
@@ -228,6 +228,19 @@ include $(BUILD_EXECUTABLE)
   \end{itemize}
 \end{frame}
 
+\begin{frame}[fragile]
+  \frametitle{Prebuilt Package Example}
+\begin{minted}{make}
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE := configuration_files.txt
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
+\end{minted}
+\end{frame}
+
 \begin{frame}
   \frametitle{Make and clean a module}
   \begin{itemize}



More information about the training-materials-updates mailing list