move examples under documentation
authorTimo Savola <tsavola@movial.fi>
Wed, 18 Jun 2008 13:52:39 +0000 (16:52 +0300)
committerTimo Savola <tsavola@movial.fi>
Wed, 18 Jun 2008 13:52:39 +0000 (16:52 +0300)
12 files changed:
doc/example/component-meta/plug [new file with mode: 0644]
doc/example/component-meta/sample.package [new file with mode: 0644]
doc/example/project-config/boards [new file with mode: 0644]
doc/example/project-config/components [new file with mode: 0644]
doc/example/project-config/main [new file with mode: 0644]
doc/example/project-config/rootfs [new file with mode: 0644]
examples/component-meta/plug [deleted file]
examples/component-meta/sample.package [deleted file]
examples/project-config/boards [deleted file]
examples/project-config/components [deleted file]
examples/project-config/main [deleted file]
examples/project-config/rootfs [deleted file]

diff --git a/doc/example/component-meta/plug b/doc/example/component-meta/plug
new file mode 100644 (file)
index 0000000..e4638f4
--- /dev/null
@@ -0,0 +1,16 @@
+# This is a sample .matrix/plug file
+
+MATRIX_BUILD_STYLE = autotools
+
+# this makes the build happen outside of the source tree
+MATRIX_OBJ_DIR = meta/obj
+
+# run autogen.sh with no parameters
+MATRIX_AUTOGEN_WITH = ""
+
+ifdef custom_flag
+MATRIX_CONFIGURE_ENV = "CC=my-special-gcc"
+endif
+MATRIX_CONFIGURE_ARGS = "--prefix=/usr"
+
+
diff --git a/doc/example/component-meta/sample.package b/doc/example/component-meta/sample.package
new file mode 100644 (file)
index 0000000..4dc841f
--- /dev/null
@@ -0,0 +1,7 @@
+name="sample"
+depends="some_package1:>=1.2.3-m5:flag1,flag2 some_package2"
+conflicts="some_package3::flag some_package1::flag3"
+license="GPL 9"
+description="A Sample Package"
+
+
diff --git a/doc/example/project-config/boards b/doc/example/project-config/boards
new file mode 100644 (file)
index 0000000..9f3b66d
--- /dev/null
@@ -0,0 +1,39 @@
+# The AMD64 64bit x86 cpus on a generic desktop
+Board(name      = 'x86_64',
+      arch      = 'x86_64',
+      gcc_march = 'i686',
+      gnu_host  = 'i686-pc-linux-gnu')
+
+# Generic i686+ desktop PC
+Board(name      = 'x86_i686',
+      arch      = 'i386',
+      gcc_march = 'i686',
+      gnu_host  = 'i686-pc-linux-gnu')
+
+# Plain old i386 PC
+Board(name      = 'x86_i386',
+      arch      = 'i386',
+      gcc_march = 'i386',
+      gnu_host  = 'i386-pc-linux-gnu')
+
+# Generic ARM target for ARMv5 (ARM9/11 processors)
+Board(name        = 'arm',
+      arch        = 'arm',
+      gcc_march   = 'armv5t',
+      gcc_options = '-O2 -mfloat-abi=softfp -Wno-poison-system-directories',
+      gnu_host    = 'arm-unknown-linux-gnueabi')
+
+# Nokia 770 Internet Tablet
+Board(name        = 'nokia_770',
+      arch        = 'arm',
+      gcc_march   = 'armv5t',
+      gcc_options = '-O2 -mfloat-abi=softfp',
+      gnu_host    = 'armv5t-unknown-linux-gnueabi')
+
+# Nokia n800 Internet Tablet
+Board(name        = 'nokia_800',
+      arch        = 'arm',
+      gcc_march   = 'armv6',
+      gcc_mfpu    = 'vfp',
+      gcc_options = '-O2 -mfloat-abi=softfp',
+      gnu_host    = 'armv6-unknown-linux-gnueabi')
diff --git a/doc/example/project-config/components b/doc/example/project-config/components
new file mode 100644 (file)
index 0000000..d5f702c
--- /dev/null
@@ -0,0 +1,2 @@
+Component('busybox')
+Component('my-application')
diff --git a/doc/example/project-config/main b/doc/example/project-config/main
new file mode 100644 (file)
index 0000000..0291121
--- /dev/null
@@ -0,0 +1,15 @@
+parse('boards')
+parse('components')
+
+roots = [
+       'example.com:/matrix-repos',
+]
+
+board = 'arm'
+
+flags = [
+       'debug',
+       'no-docs',
+       'no-examples',
+       'no-tests',
+]
diff --git a/doc/example/project-config/rootfs b/doc/example/project-config/rootfs
new file mode 100644 (file)
index 0000000..15875f8
--- /dev/null
@@ -0,0 +1,93 @@
+# List of paths that will be copied (recursively)
+include_paths = [
+  "/bin",
+  "/sbin",
+  "/lib",
+  "/etc",
+  "/home",
+  "/usr/bin",
+  "/usr/sbin",
+  "/usr/lib",
+  "/usr/libexec",
+  "/usr/share/locale/en_GB",
+  "/usr/share/X11",
+  "/usr/share/fonts",
+  "/usr/share/hal",
+  "/usr/share/kilikali",
+  "/usr/share/themes",
+  "/usr/share/dbus-1",
+  "/usr/share/application-registry",
+  "/usr/share/applications",
+  "/usr/share/pixmaps",
+  "/usr/share/icons",
+  "/usr/share/scim/icons",
+  "/usr/share/matchbox",
+  "/usr/share/matchbox-keyboard",
+  "/usr/share/matchbox-panel/battery",
+  "/usr/share/gnome",
+  "/usr/share/gnome-volume-manager",
+  "/usr/share/mime-info",
+  "/usr/share/nm-applet",
+  "/usr/share/alsa"
+]
+
+# List of individual files that will be copied
+include_files = [
+  "/usr/share/usb.ids",
+  "/usr/share/terminfo/x/xterm"
+]      
+
+# List of paths that will be filtered out from the copied dirs
+exclude_paths = [
+  "/usr/lib/pkgconfig",
+# The gconv dir in gconv dir is a bug. This is fixed in new SB toolchains.
+  "/usr/lib/gconv/gconv",
+  "/var/run/NetworkManager",
+  "/usr/lib/xulrunner-devel-1.9a9pre"
+]
+
+# List of individual files that will be filtered out from the copy
+exclude_files = [
+       "/usr/share/hal/fdi/preprobe/20thirdparty/10-nfsroot.fdi"
+]
+
+# List of regular expressions that will cause the matched files to be filtered out
+exclude_expressions = [
+  ".*\.l?a$"
+]
+
+# List of paths that will be created as empty directories (with parents if needed)
+created_paths = [
+  "/boot",
+  "/dev/pts",
+  "/lib",
+  "/media",
+  "/mnt",
+  "/proc",
+  "/root",
+  "/sbin",
+  "/home",
+  "/sys",
+  "/tmp",
+  "/var/empty",
+  "/var/run/sshd",
+  "/var/run/NetworkManager",
+  "/var/state/dhcp"
+]
+
+# List of directories to be chowned to (user,group).
+change_owner = {
+  "/home/aeki": ("10042", "10042")
+}
+
+# List of device nodes to be created
+devices = {
+  "console" : ("c", 5, 1),
+  "null"    : ("c", 1, 3),
+  "random"  : ("c", 1, 8),
+  "urandom" : ("c", 1, 9),
+  "tty0"    : ("c", 4, 0),
+  "tty1"    : ("c", 4, 1),
+  "tty2"    : ("c", 4, 2),
+  "tty3"    : ("c", 4, 3)
+}
diff --git a/examples/component-meta/plug b/examples/component-meta/plug
deleted file mode 100644 (file)
index e4638f4..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# This is a sample .matrix/plug file
-
-MATRIX_BUILD_STYLE = autotools
-
-# this makes the build happen outside of the source tree
-MATRIX_OBJ_DIR = meta/obj
-
-# run autogen.sh with no parameters
-MATRIX_AUTOGEN_WITH = ""
-
-ifdef custom_flag
-MATRIX_CONFIGURE_ENV = "CC=my-special-gcc"
-endif
-MATRIX_CONFIGURE_ARGS = "--prefix=/usr"
-
-
diff --git a/examples/component-meta/sample.package b/examples/component-meta/sample.package
deleted file mode 100644 (file)
index 4dc841f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-name="sample"
-depends="some_package1:>=1.2.3-m5:flag1,flag2 some_package2"
-conflicts="some_package3::flag some_package1::flag3"
-license="GPL 9"
-description="A Sample Package"
-
-
diff --git a/examples/project-config/boards b/examples/project-config/boards
deleted file mode 100644 (file)
index 9f3b66d..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-# The AMD64 64bit x86 cpus on a generic desktop
-Board(name      = 'x86_64',
-      arch      = 'x86_64',
-      gcc_march = 'i686',
-      gnu_host  = 'i686-pc-linux-gnu')
-
-# Generic i686+ desktop PC
-Board(name      = 'x86_i686',
-      arch      = 'i386',
-      gcc_march = 'i686',
-      gnu_host  = 'i686-pc-linux-gnu')
-
-# Plain old i386 PC
-Board(name      = 'x86_i386',
-      arch      = 'i386',
-      gcc_march = 'i386',
-      gnu_host  = 'i386-pc-linux-gnu')
-
-# Generic ARM target for ARMv5 (ARM9/11 processors)
-Board(name        = 'arm',
-      arch        = 'arm',
-      gcc_march   = 'armv5t',
-      gcc_options = '-O2 -mfloat-abi=softfp -Wno-poison-system-directories',
-      gnu_host    = 'arm-unknown-linux-gnueabi')
-
-# Nokia 770 Internet Tablet
-Board(name        = 'nokia_770',
-      arch        = 'arm',
-      gcc_march   = 'armv5t',
-      gcc_options = '-O2 -mfloat-abi=softfp',
-      gnu_host    = 'armv5t-unknown-linux-gnueabi')
-
-# Nokia n800 Internet Tablet
-Board(name        = 'nokia_800',
-      arch        = 'arm',
-      gcc_march   = 'armv6',
-      gcc_mfpu    = 'vfp',
-      gcc_options = '-O2 -mfloat-abi=softfp',
-      gnu_host    = 'armv6-unknown-linux-gnueabi')
diff --git a/examples/project-config/components b/examples/project-config/components
deleted file mode 100644 (file)
index d5f702c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Component('busybox')
-Component('my-application')
diff --git a/examples/project-config/main b/examples/project-config/main
deleted file mode 100644 (file)
index 0291121..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-parse('boards')
-parse('components')
-
-roots = [
-       'example.com:/matrix-repos',
-]
-
-board = 'arm'
-
-flags = [
-       'debug',
-       'no-docs',
-       'no-examples',
-       'no-tests',
-]
diff --git a/examples/project-config/rootfs b/examples/project-config/rootfs
deleted file mode 100644 (file)
index 15875f8..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-# List of paths that will be copied (recursively)
-include_paths = [
-  "/bin",
-  "/sbin",
-  "/lib",
-  "/etc",
-  "/home",
-  "/usr/bin",
-  "/usr/sbin",
-  "/usr/lib",
-  "/usr/libexec",
-  "/usr/share/locale/en_GB",
-  "/usr/share/X11",
-  "/usr/share/fonts",
-  "/usr/share/hal",
-  "/usr/share/kilikali",
-  "/usr/share/themes",
-  "/usr/share/dbus-1",
-  "/usr/share/application-registry",
-  "/usr/share/applications",
-  "/usr/share/pixmaps",
-  "/usr/share/icons",
-  "/usr/share/scim/icons",
-  "/usr/share/matchbox",
-  "/usr/share/matchbox-keyboard",
-  "/usr/share/matchbox-panel/battery",
-  "/usr/share/gnome",
-  "/usr/share/gnome-volume-manager",
-  "/usr/share/mime-info",
-  "/usr/share/nm-applet",
-  "/usr/share/alsa"
-]
-
-# List of individual files that will be copied
-include_files = [
-  "/usr/share/usb.ids",
-  "/usr/share/terminfo/x/xterm"
-]      
-
-# List of paths that will be filtered out from the copied dirs
-exclude_paths = [
-  "/usr/lib/pkgconfig",
-# The gconv dir in gconv dir is a bug. This is fixed in new SB toolchains.
-  "/usr/lib/gconv/gconv",
-  "/var/run/NetworkManager",
-  "/usr/lib/xulrunner-devel-1.9a9pre"
-]
-
-# List of individual files that will be filtered out from the copy
-exclude_files = [
-       "/usr/share/hal/fdi/preprobe/20thirdparty/10-nfsroot.fdi"
-]
-
-# List of regular expressions that will cause the matched files to be filtered out
-exclude_expressions = [
-  ".*\.l?a$"
-]
-
-# List of paths that will be created as empty directories (with parents if needed)
-created_paths = [
-  "/boot",
-  "/dev/pts",
-  "/lib",
-  "/media",
-  "/mnt",
-  "/proc",
-  "/root",
-  "/sbin",
-  "/home",
-  "/sys",
-  "/tmp",
-  "/var/empty",
-  "/var/run/sshd",
-  "/var/run/NetworkManager",
-  "/var/state/dhcp"
-]
-
-# List of directories to be chowned to (user,group).
-change_owner = {
-  "/home/aeki": ("10042", "10042")
-}
-
-# List of device nodes to be created
-devices = {
-  "console" : ("c", 5, 1),
-  "null"    : ("c", 1, 3),
-  "random"  : ("c", 1, 8),
-  "urandom" : ("c", 1, 9),
-  "tty0"    : ("c", 4, 0),
-  "tty1"    : ("c", 4, 1),
-  "tty2"    : ("c", 4, 2),
-  "tty3"    : ("c", 4, 3)
-}