summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild24
1 files changed, 12 insertions, 12 deletions
diff --git a/build b/build
index 28a91e8..2f1de60 100755
--- a/build
+++ b/build
@@ -1,16 +1,8 @@
#!/usr/bin/make -f
-# Host/target platform:
-plat = dev
-
-# The OPK_SOURCE_VERSION_UPSTREAMs of packages:
-busybox_ver = 1.21.1
-
-# Nothing beyond this point requires updating for platform porting or new
-# upstream package versions.
-
-base = /usr/share/platconf/$(plat)
-busybox_platconf = config-busybox-$(plat).data/$(base)/busybox_$(busybox_ver)
+plat = $${OPK_SOURCE\#config-}
+config_pkg = config-$${pkg}-$(plat)
+platconf_dir = $(config_pkg).data/usr/share/platconf/$(plat)/$${pkg}_$${ver}
nop:
@:
@@ -19,4 +11,12 @@ build:
@:
install: build
- install -D src/busybox/config $(busybox_platconf)/busybox.config
+ set -e; \
+ for pkg in src/*; do \
+ pkg="$${pkg#src/}"; \
+ for ver in "src/$${pkg}/"*; do \
+ ver="$${ver#src/$${pkg}/}"; \
+ mkdir -p "$(platconf_dir)"; \
+ cp -p "src/$${pkg}/$${ver}/"* "$(platconf_dir)"; \
+ done; \
+ done