summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2003-09-20 04:17:20 +0000
committerChris Larson <clarson@kergoth.com>2003-09-20 04:17:20 +0000
commit563974e5114be9538383de023accd5959e1b2fa8 (patch)
treef703b06dc6254e76397969b2f976cfbd133f74a3 /doc
parentff745fbbabbd02ac6d2ec1681b2b42b889b0ac34 (diff)
downloadbitbake-563974e5114be9538383de023accd5959e1b2fa8.tar.gz
Diffstat (limited to 'doc')
-rw-r--r--doc/TRANSITION54
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/TRANSITION b/doc/TRANSITION
new file mode 100644
index 000000000..7871fca4e
--- /dev/null
+++ b/doc/TRANSITION
@@ -0,0 +1,54 @@
+OpenEmbedded Transition Guide(s)
+--
+
+Moving from the OpenZaurus "buildroot" to the OE infrastructure:
+
+There are a number of things to note. One of the first things you'll
+notice is that the core buildsystem is now completely independent of
+the package metadata. You'll also note that we are not using any form
+of makefile to manage the metadata. This is a completely different system.
+
+One thing to note is command syntax.
+
+In buildroot, to build the entirety, one simply runs 'make'.
+In OE, assuming OEDIR is set, OEDIR/bin is in the path, the toolchain
+is in the path, and conf/local.conf has TARGET_ARCH set to your target,
+you can simply cd to the dir containing the .oe files and run 'oemake'.
+One can also set OEFILES to a list of the available .oe files, with full path,
+and run oemake.
+
+In buildroot, to build a single package, one runs make SUBDIRS=packages/pkgname [task],
+where task is any number of targets, including clean, binary, package, et cetera.
+In OE, to build a single package, it is far simpler. Run oebuild [task] path/to/pkgname.oe,
+or simply oebuild path/to/pkgname.oe to default to a full build.
+
+See oebuild --help and oemake --help for further details.
+The deployment tools and syntax are still being written and decided upon, respectively.
+
+Next, we'll compare and contrast some metadata differences.
+
+buildroot - OE
+----------------------------------
+Name - PN (automatically set based on .oe filename)
+Version - PV (automatically set based on .oe filename)
+Revision - PR (defaults to r0, generally set otherwise in the .oe)
+Sources - SRC_URI (note that the syntax differs here. Sources was a semicolon
+ delimited block of sources, where each source was url <space>
+ comma-seperated-options. SRC_URI is simply a space-seperated
+ set of URIs, with the options expressed in normal URI style)
+SourceTree - S
+$(stamp-binary): - do_compile () { ...
+$(stamp-rootinstall): - do_install () { ...
+$(stamp-staginginstall):- do_stage () { ...
+$(stamp-sourcetree): - do_unpack () { ...
+ do_patch () { ...
+
+
+One final thing to note is that OE supports a form of inheritence. This
+capability allows us to very easily abstract out commonalities and avoid
+duplication of work. An excellent example of this is our 'autotools.oeclass',
+which is to be utilized for autoconf/automake based buildsystems.
+
+Thanks,
+Chris Larson - kergoth at handhelds dot org
+Embedded Linux Developer - clarson at ti dot com