summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild.example18
-rw-r--r--opkhelper-scripts.txt48
2 files changed, 55 insertions, 11 deletions
diff --git a/build.example b/build.example
index 9040a47..a3cffa4 100755
--- a/build.example
+++ b/build.example
@@ -39,18 +39,14 @@ libfoo.42.buildstamp:
cd ..
# Make a debugging binary, strip the regular one of debugging symbols, and
# add to the regular binary a link directing GDB to the debugging binary.
- objcopy --only-keep-debug dest/usr/lib/libfoo.so.42 \
- dest/usr/lib/debug/usr/lib/libfoo.so.42
- strip -g dest/usr/lib/libfoo.so.42
- objcopy --add-gnu-debuglink=/usr/lib/debug/usr/lib/libfoo.so.42 \
- dest/usr/lib/libfoo.so.42
+ oh-strip -g /usr/lib/libfoo.so.42
# Move files from 'dest' into a binary package.
- opk-installfiles libfoo.42
- opk-installfiles libfoo.42-dbg
- opk-installfiles libfoo.42-dev
+ oh-installfiles libfoo.42
+ oh-installfiles libfoo.42-dbg
+ oh-installfiles libfoo.42-dev
# Pack each binary package.
- opk-pack libfoo.42
- opk-pack libfoo.42-dbg
- opk-pack libfoo.42-dev
+ oh-buildopk libfoo.42
+ oh-buildopk libfoo.42-dbg
+ oh-buildopk libfoo.42-dev
# Touch the build stamp to prevent these packages from being built again.
touch libfoo.42.buildstamp
diff --git a/opkhelper-scripts.txt b/opkhelper-scripts.txt
new file mode 100644
index 0000000..f11266d
--- /dev/null
+++ b/opkhelper-scripts.txt
@@ -0,0 +1,48 @@
+NAME
+ opkbuild - Build opkg packages.
+
+SYNOPSIS
+ opkbuild [binpkg]
+
+DESCRIPTION
+ opkbuild builds binary packages from a source package.
+
+
+NAME
+ oh-strip - Strip binary objects of symbols.
+
+SYNOPSIS
+ oh-strip [-g] [-l] binaryfile...
+
+DESCRIPTION
+ oh-strip strips binary object files of symbols, optionally first copying
+ debugging symbols into a debugging object file.
+
+OPTIONS
+ -g
+ Copy debugging symbols into a debugging object file and add a link from
+ binaryfile to the debugging object file.
+ -l
+ Treat binaryfile as a library.
+
+
+NAME
+ oh-installfiles - Install files into a binary package staging area.
+
+SYNOPSIS
+ oh-installfiles pkgname...
+
+DESCRIPTION
+ oh-installfiles moves files from the source package installation directory
+ to a binary package staging area, based on the patterns in the binary
+ package's 'install' file.
+
+
+NAME
+ oh-buildopk - Pack binary package files into an opk file.
+
+SYNOPSIS
+ oh-buildopk pkgname...
+
+DESCRIPTION
+ oh-buildopk packs files in a binary package staging area into an opk file.