@@ -3,7 +3,16 @@
set -e
if [ "$1" = "" ]; then
- return 1
+ # This would be set doing the actual kernel build
+ if [ "$KBUILD_VERBOSE" = "" ]; then
+ return 1
+ fi
+ case $ARCH in
+ x86) ARCH=amd64;;
+ *) ;;
+ esac
+else
+ ARCH=$1
fi
TOPDIR=$(dirname $0)/../../..
@@ -11,7 +20,7 @@ TOPDIR=$(dirname $0)/../../..
RULESDIR=$TOPDIR/$DEBIAN/rules.d
do_odm_drivers=false
-for f in $1.mk hooks.mk; do
+for f in $ARCH.mk hooks.mk; do
eval $(cat $RULESDIR/$f | sed -n -e '/do_odm_drivers/s/ \+//gp')
done
if [ "$do_odm_drivers" != "true" ]; then