-#!/bin/sh
+#!/bin/bash
set -e
case "$1" in
config)
echo "Configuring..."
- make -C config
+ pushd config
+ cmake .
+ make
+ popd
config/conf Kconfig
cmake .
;;
compile)
echo "Compile time..."
make
-
;;
install)
fi
. ./.config
+ make
echo -n "Installing firmware..."
if [ "$CONFIG_CARL9170FW_BUILD_TOOLS" = "y" ] &&
tools/src/miniboot a carlfw/carl9170.fw minifw/miniboot.fw
fi
- sudo install carlfw/carl9170.fw /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw
+ sudo install -m 644 carlfw/carl9170.fw \
+ /lib/firmware/carl9170-$CONFIG_CARL9170FW_RELEASE_VERSION.fw
echo "done."
;;