3ce4291b31a7de725e8fdc2eebeb14d240ff1d2d
4 STAMP_DIR_SUCCESS
="$DIR/stamp-success"
5 STAMP_DIR_FAILED
="$DIR/stamp-failed"
7 BUILD_DIR_HOST
="$DIR/build_host"
8 STAGING_DIR
="$DIR/staging"
9 STAGING_DIR_HOST
="$DIR/staging_host"
10 STAGING_DIR_HOST_TMPL
="$DIR/staging_host_tmpl"
13 mkdir
-p "$STAMP_DIR_SUCCESS" "$STAMP_DIR_FAILED" "$BUILD_DIR" "$LOG_DIR"
15 [ -d "$STAGING_DIR_HOST_TMPL" ] ||
{
16 rm -rf staging_dir
/host
17 make tools
/install V
=99 ||
{
18 echo "make tools/install failed, please check"
21 cp -al staging_dir
/host "$STAGING_DIR_HOST_TMPL"
24 for pkg
in `cat tmp/.packagedeps | grep CONFIG_PACKAGE | grep -v curdir | sed -e 's,.*[/=]\s*,,' | sort -u`; do
26 for conf
in `grep CONFIG_PACKAGE tmp/.packagedeps | grep -E "[ /]$pkg\$" | sed -e 's,package-$(\(CONFIG_PACKAGE_.*\)).*,\1,'`; do
27 grep "$conf=" .config
> /dev
/null
&& SELECTED
=1
29 STAMP_SUCCESS
="$STAMP_DIR_SUCCESS/$pkg"
30 STAMP_FAILED
="$STAMP_DIR_FAILED/$pkg"
32 [ -f "$STAMP_SUCCESS" ] && continue
33 [ -n "$SELECTED" ] ||
{
34 echo "Package $pkg is not selected"
37 echo "Testing package $pkg..."
39 mkdir
-p "$STAGING_DIR"
40 rm -rf "$STAGING_DIR_HOST"
41 cp -al "$STAGING_DIR_HOST_TMPL" "$STAGING_DIR_HOST"
42 make package
/$pkg/compile \
43 BUILD_DIR
="$BUILD_DIR" \
44 BUILD_DIR_HOST
="$BUILD_DIR_HOST" \
45 STAGING_DIR
="$STAGING_DIR" \
46 STAGING_DIR_HOST
="$STAGING_DIR_HOST" \
47 V
=99 >"$LOG_DIR/$(basename $pkg).log" 2>&1
49 touch "$STAMP_SUCCESS"
52 echo "Building package $pkg failed!"
This page took 0.047272 seconds and 3 git commands to generate.