summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Yardley <lst@openwrt.org>2006-11-26 21:28:16 +0000
committerTim Yardley <lst@openwrt.org>2006-11-26 21:28:16 +0000
commit10a7c91908868f03f4d7a24fb6932faac5d2820b (patch)
treef3f8fcc16af2c538afcafa0cddc7bd2ac136da2f /docs
parentb7831105b451d80125669f695dd89433adf77bb5 (diff)
downloadmtk-20170518-10a7c91908868f03f4d7a24fb6932faac5d2820b.zip
mtk-20170518-10a7c91908868f03f4d7a24fb6932faac5d2820b.tar.gz
mtk-20170518-10a7c91908868f03f4d7a24fb6932faac5d2820b.tar.bz2
some more build docs
SVN-Revision: 5648
Diffstat (limited to 'docs')
-rw-r--r--docs/build.tex27
-rw-r--r--docs/openwrt.tex4
2 files changed, 24 insertions, 7 deletions
diff --git a/docs/build.tex b/docs/build.tex
index e9cdaf3..1b7f764 100644
--- a/docs/build.tex
+++ b/docs/build.tex
@@ -245,7 +245,7 @@ and abstracted to the point where you only need to specify a few variables.
\item \texttt{PKG\_SOURCE} \\
The filename of the original sources
\item \texttt{PKG\_SOURCE\_URL} \\
- Where to download the sources from
+ Where to download the sources from (no trailing slash)
\item \texttt{PKG\_MD5SUM} \\
A checksum to validate the download
\item \texttt{PKG\_CAT} \\
@@ -255,7 +255,9 @@ and abstracted to the point where you only need to specify a few variables.
\end{itemize}
The \texttt{PKG\_*} variables define where to download the package from;
-\texttt{@SF} is a special keyword for downloading packages from sourceforge.
+\texttt{@SF} is a special keyword for downloading packages from sourceforge. There is also
+another keyword of \texttt{@GNU} for grabbing GNU source releases.
+
The md5sum is used to verify the package was downloaded correctly and
\texttt{PKG\_BUILD\_DIR} defines where to find the package after the sources are
uncompressed into \texttt{\$(BUILD\_DIR)}.
@@ -331,7 +333,26 @@ After you've created your \texttt{package/\textit{<name>}/Makefile}, the new pac
will automatically show in the menu the next time you run "make menuconfig" and if selected
will be built automatically the next time "\texttt{make}" is run.
-\subsubsection{Troubleshooting}
+
+\subsection{Conventions}
+
+There are a couple conventions to follow regarding packages:
+
+\begin{itemize}
+ \item \texttt{files}
+ \begin{enumerate}
+ \item configuration files follow the convention \\
+ \texttt{\textit{<name>}.conf}
+ \item init files follow the convention \\
+ \texttt{\textit{<name>}.init}
+ \end{enumerate}
+ \item \texttt{patches}
+ \begin{enumerate}
+ \item patches are numerically prefixed and named related to what they do
+ \end{enumerate}
+\end{itemize}
+
+\subsection{Troubleshooting}
If you find your package doesn't show up in menuconfig, try the following command to
see if you get the correct description:
diff --git a/docs/openwrt.tex b/docs/openwrt.tex
index e63eac3..07098b3 100644
--- a/docs/openwrt.tex
+++ b/docs/openwrt.tex
@@ -4,14 +4,11 @@
\usepackage[T1]{fontenc}
\usepackage{ae,aecompl,aeguill}
\usepackage{fancyvrb}
-
\setlength{\parindent}{0pt}
\setlength{\parskip}\medskipamount
\begin{document}
-
\tableofcontents
-
\chapter{The Router}
\section{Getting started}
\subsection{Installation}
@@ -39,5 +36,4 @@
\section{Debugging and debricking}
\subsection{Adding a serial port}
\subsection{JTAG}
-
\end{document}