blob: ce570979231154978de9f0b03e556e24d00bddc4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
ROOT_DIR=$(readlink -f $(dirname $(readlink -f $0))/..)
. ${ROOT_DIR}/config/paths.conf
mkdir -p ${ROOT_DIR}/build/cpio-base
cd ${ROOT_DIR}/build/cpio-base
tar xzf ${ROOT_DIR}/share/files/dev.tgz
mkdir -p openslx/lib bin sbin
# copy required links
for f in $(find ${ROOT_DIR}/build/sqfs-base/openslx/lib/{libc\.,ld,libuC}*); do
cp -a $f openslx/lib
done
cp -a ${ROOT_DIR}/build/sqfs-base/openslx/bin/busybox bin
# copy required bins
for f in $(find ${ROOT_DIR}/build/sqfs-base/openslx -lname "busybox"); do
cp -a $f bin
done
# copy required bins
for f in $(find ${ROOT_DIR}/build/sqfs-base/openslx -lname "../bin/busybox"); do
cp -a $f sbin
done
cp ${ROOT_DIR}/share/files/init.cpio ./init
chmod +x init
|