# HG changeset patch # User Pascal Bellard # Date 1396690581 0 # Node ID 385b2ace5076191c188f336cf805d614ed60c2a0 # Parent f50c0089d6d0a02eb0bdc094e5267abaf489654c Add any arch support diff -r f50c0089d6d0 -r 385b2ace5076 cook --- a/cook Sat Apr 05 05:48:34 2014 +0200 +++ b/cook Sat Apr 05 09:36:21 2014 +0000 @@ -1040,7 +1040,7 @@ cd $WOK if [ "$ARCH" != "i486" ]; then count=0 - for pkg in $(fgrep 'HOST_ARCH=' */receipt | fgrep $ARCH | cut -d : -f 1) + for pkg in $(fgrep 'HOST_ARCH=' */receipt | egrep "$ARCH|any" | cut -d : -f 1) do unset HOST_ARCH . $pkg @@ -1288,7 +1288,7 @@ fi ;; arm) # Check only packages included in arch - if echo "$HOST_ARCH" | fgrep -q "$ARCH"; then + if echo "$HOST_ARCH" | egrep -q "$ARCH|any"; then # *.tazpkg if [ ! -f "$PKGS/${PACKAGE}-${VERSION}${EXTRAVERSION}-${ARCH}.tazpkg" ]; then count=$(($count + 1)) @@ -1460,7 +1460,7 @@ # Some packages are not included in some arch or fail to cross compile. : ${HOST_ARCH=i486} debug "Host arch $HOST_ARCH" - if ! $(echo "$HOST_ARCH" | fgrep -q $ARCH); then + if ! $(echo "$HOST_ARCH" | egrep -q "$ARCH|any"); then _ "cook: HOST_ARCH=\$HOST_ARCH" _ "cook: \$pkg doesn't cook or is not included in: \$ARCH" [ "$CROSS_BUGS" ] && _ "bugs: \$CROSS_BUGS" diff -r f50c0089d6d0 -r 385b2ace5076 cooker --- a/cooker Sat Apr 05 05:48:34 2014 +0200 +++ b/cooker Sat Apr 05 09:36:21 2014 +0000 @@ -212,7 +212,7 @@ unset HOST_ARCH . $wok/$pkg/receipt #: ${HOST_ARCH=i486} - if $(echo "$HOST_ARCH" | fgrep -q $ARCH); then + if $(echo "$HOST_ARCH" | egrep -q "$ARCH|any"); then count=$(($count + 1)) echo "Adding: $pkg" touch $pkg/arch.$ARCH