summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bbc2538)
raw | patch | inline | side by side (parent: bbc2538)
author | Yaniv Machani <yanivma@ti.com> | |
Tue, 5 Aug 2014 11:34:53 +0000 (14:34 +0300) | ||
committer | Yaniv Machani <yanivma@ti.com> | |
Thu, 7 Aug 2014 14:47:17 +0000 (17:47 +0300) |
- Fixed KLIB varible
- Added check for updates function
Signed-off-by: Yaniv Machani <yanivma@ti.com>
- Added check for updates function
Signed-off-by: Yaniv Machani <yanivma@ti.com>
build_wl18xx.sh | patch | blob | history |
diff --git a/build_wl18xx.sh b/build_wl18xx.sh
index 9744f731892d6ea33cab55a718e1b5d9381f9a84..d2fd338835a81414e2cd6422be3312b17492a7d1 100755 (executable)
--- a/build_wl18xx.sh
+++ b/build_wl18xx.sh
cd - > /dev/null
}
cd - > /dev/null
}
+function check_for_build_updates()
+{
+ count=`git status -uno | grep behind | wc -l`
+ if [ $count -ne 0 ]
+ then
+ echo ""
+ echo "*** Please note, there is an updated build script avilalable ***"
+ echo "*** Use 'git pull' to get the latest update. ***"
+ echo ""
+ sleep 5
+ fi
+}
+
function read_kernel_version()
{
filename=$KERNEL_PATH/Makefile
function read_kernel_version()
{
filename=$KERNEL_PATH/Makefile
export PKG_CONFIG_PATH=`path filesystem`/lib/pkgconfig
export INSTALL_PREFIX=`path filesystem`
export LIBNL_PATH=`repo_path libnl`
export PKG_CONFIG_PATH=`path filesystem`/lib/pkgconfig
export INSTALL_PREFIX=`path filesystem`
export LIBNL_PATH=`repo_path libnl`
- export KLIB=${KERNEL_PATH}
+ export KLIB=`path filesystem`
export KLIB_BUILD=${KERNEL_PATH}
export GIT_TREE=`repo_path driver`
export PATH=$TOOLCHAIN_PATH:$PATH
export KLIB_BUILD=${KERNEL_PATH}
export GIT_TREE=`repo_path driver`
export PATH=$TOOLCHAIN_PATH:$PATH
function build_modules()
{
function build_modules()
{
- generate_compat
+ generate_compat
cd_repo compat_wireless
if [ -z $NO_CLEAN ]; then
make clean
fi
make defconfig-wl18xx
cd_repo compat_wireless
if [ -z $NO_CLEAN ]; then
make clean
fi
make defconfig-wl18xx
- make -j${PROCESSORS_NUMBER}
+ make -j${PROCESSORS_NUMBER}
assert_no_error
find . -name \*.ko -exec cp {} `path debugging`/ \;
find . -name \*.ko -exec ${CROSS_COMPILE}strip -g {} \;
assert_no_error
find . -name \*.ko -exec cp {} `path debugging`/ \;
find . -name \*.ko -exec ${CROSS_COMPILE}strip -g {} \;
- make -C ${KERNEL_PATH} M=`pwd` "INSTALL_MOD_PATH=`path filesystem`" modules_install
+# make -C ${KERNEL_PATH} M=`pwd` "INSTALL_MOD_PATH=`path filesystem`" modules_install
+ make modules_install
assert_no_error
#chmod -R 0777 ${PATH__FILESYSTEM}/lib/modules/
cd_back
assert_no_error
#chmod -R 0777 ${PATH__FILESYSTEM}/lib/modules/
cd_back
chmod 755 `path filesystem`/usr/sbin/wlconf
for file_to_copy in $files_to_copy; do
cp $file_to_copy `path filesystem`/usr/sbin/wlconf/$file_to_copy
chmod 755 `path filesystem`/usr/sbin/wlconf
for file_to_copy in $files_to_copy; do
cp $file_to_copy `path filesystem`/usr/sbin/wlconf/$file_to_copy
+ echo "echoying files $file_to_copy"
done
cp official_inis/* `path filesystem`/usr/sbin/wlconf/official_inis/
cd_back
done
cp official_inis/* `path filesystem`/usr/sbin/wlconf/official_inis/
cd_back
`repo_path fw_download`/wl18xx-fw-4.bin
"data"
`repo_path fw_download`/wl18xx-fw-4.bin
"data"
- `path filesystem`/lib/modules/$KERNEL_VERSION.$KERNEL_PATCHLEVEL.*/extra/drivers/net/wireless/ti/wl18xx/wl18xx.ko
+ `path filesystem`/lib/modules/$KERNEL_VERSION.$KERNEL_PATCHLEVEL.*/updates/drivers/net/wireless/ti/wl18xx/wl18xx.ko
`path compat_wireless`/drivers/net/wireless/ti/wl18xx/wl18xx.ko
"ELF 32-bit LSB relocatable, ARM"
`path compat_wireless`/drivers/net/wireless/ti/wl18xx/wl18xx.ko
"ELF 32-bit LSB relocatable, ARM"
- `path filesystem`/lib/modules/$KERNEL_VERSION.$KERNEL_PATCHLEVEL.*/extra/drivers/net/wireless/ti/wlcore/wlcore.ko
+ `path filesystem`/lib/modules/$KERNEL_VERSION.$KERNEL_PATCHLEVEL.*/updates/drivers/net/wireless/ti/wlcore/wlcore.ko
`path compat_wireless`/drivers/net/wireless/ti/wlcore/wlcore.ko
"ELF 32-bit LSB relocatable, ARM"
`path compat_wireless`/drivers/net/wireless/ti/wlcore/wlcore.ko
"ELF 32-bit LSB relocatable, ARM"
function main()
{
[[ "$1" == "-h" || "$1" == "--help" ]] && usage
function main()
{
[[ "$1" == "-h" || "$1" == "--help" ]] && usage
-
+ check_for_build_updates
setup_environment
setup_directories
read_kernel_version
setup_environment
setup_directories
read_kernel_version