aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-12-28 17:03:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-12-28 17:03:48 +0000
commit95997c5a9f613a824d91dff72e1b392a7cf97b70 (patch)
treee274d289b889a676aac0d96448b8c62f3462b2ce /docs
parent1668fb67c36a8db0e228639348d2999a3d0e06d2 (diff)
downloadmaster-187ad058-95997c5a9f613a824d91dff72e1b392a7cf97b70.tar.gz
master-187ad058-95997c5a9f613a824d91dff72e1b392a7cf97b70.tar.bz2
master-187ad058-95997c5a9f613a824d91dff72e1b392a7cf97b70.zip
document Build/InstallDev
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9993 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'docs')
-rw-r--r--docs/build.tex13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/build.tex b/docs/build.tex
index c45b905040..730451ede6 100644
--- a/docs/build.tex
+++ b/docs/build.tex
@@ -342,6 +342,19 @@ directly as the Nth argument to \texttt{BuildPackage}.
Contains all environment variables that are passed to the make command
\end{itemize}
+\textbf{\texttt{Build/InstallDev} (optional):} \\
+ If your package provides a library that needs to be made available to other packages,
+ you can use the \texttt{Build/InstallDev} template to copy it into the staging directory
+ which is used to collect all files that other packages might depend on at build time.
+ When it is called by the build system, two parameters are passed to it. \texttt{\$(1)} points to
+ the regular staging dir, typically \texttt{staging\_dir/\textit{ARCH}}, while \texttt{\$(2)} points
+ to \texttt{staging\_dir/host}. The host staging dir is only used for binaries, which are
+ to be executed or linked against on the host and its \texttt{bin/} subdirectory is included
+ in the \texttt{PATH} which is passed down to the build system processes.
+ Please use \texttt{\$(1)} and \texttt{\$(2)} here instead of the build system variables
+ \texttt{\$(STAGING\_DIR)} and \texttt{\$(STAGING\_DIR\_HOST)}, because the build system behavior
+ when staging libraries might change in the future to include automatic uninstallation.
+
\textbf{\texttt{Package/\textit{<name>}/install}:} \\
A set of commands to copy files out of the compiled source and into the ipkg
which is represented by the \texttt{\$(1)} directory. Note that there are currently