aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlcapriotti <lcapriotti@svn>2010-01-25 13:17:46 +0000
committerlcapriotti <lcapriotti@svn>2010-01-25 13:17:46 +0000
commit0e149aa77b2645522537c02357102f4024f41338 (patch)
treecf6c662e8ccda962b67708514131d61a7cabff0e
parent82fdded07b0d7b733b40494fa92f50e3c8c0f8e5 (diff)
support for Intel only
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27165 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rwxr-xr-xtools/XBMCLive/SDK/buildWithOptions.sh25
-rwxr-xr-xtools/XBMCLive/SDK/intelOnlyHook.sh24
2 files changed, 30 insertions, 19 deletions
diff --git a/tools/XBMCLive/SDK/buildWithOptions.sh b/tools/XBMCLive/SDK/buildWithOptions.sh
index df81ad8f21..042fa3977c 100755
--- a/tools/XBMCLive/SDK/buildWithOptions.sh
+++ b/tools/XBMCLive/SDK/buildWithOptions.sh
@@ -1,30 +1,12 @@
#!/bin/sh
-# Copyright (C) 2005-2008 Team XBMC
-# http://www.xbmc.org
-#
-# This Program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This Program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with XBMC; see the file COPYING. If not, write to
-# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-# http://www.gnu.org/copyleft/gpl.html
-
# Using apt-cacher(-ng) to speed up apt-get downloads
SDK_BUILDHOOKS=""
# getopt-parse.bash
-TEMP=$(getopt -o snp:ulkg --long xbmc-svn,nvidia-only,proxy:,usb-image,live-only,keep-workarea,grub2 -- "$@")
+TEMP=$(getopt -o snp:ulkgi --long xbmc-svn,nvidia-only,proxy:,usb-image,live-only,keep-workarea,grub2,intel-only -- "$@")
eval set -- "$TEMP"
while true
@@ -60,6 +42,11 @@ do
export SDK_BUILDHOOKS="$SDK_BUILDHOOKS ./grub2Hook.sh"
shift
;;
+ -i|--intel-only)
+ echo "Enable option: Intel support only"
+ export SDK_BUILDHOOKS="$SDK_BUILDHOOKS ./intelOnlyHook.sh"
+ shift
+ ;;
-p|--proxy)
echo "Enable option: Use APT proxy"
case "$2" in
diff --git a/tools/XBMCLive/SDK/intelOnlyHook.sh b/tools/XBMCLive/SDK/intelOnlyHook.sh
new file mode 100755
index 0000000000..0443550ec3
--- /dev/null
+++ b/tools/XBMCLive/SDK/intelOnlyHook.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# Remove unneeded files
+rm $WORKPATH/buildLive/Files/binary_local-includes/live/*.module
+
+export DONOTBUILDRESTRICTEDDRIVERS=1
+
+# Modify menu.lst
+if [ -f $WORKPATH/buildLive/Files/binary_grub/menu.lst ]; then
+ sed -i '/## BEGIN NVIDIA ##/,/## END NVIDIA ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+ sed -i '/## BEGIN AMD ##/,/## END AMD ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+fi
+
+# Modify grub.cfg
+if [ -f $WORKPATH/buildLive/Files/binary_grub/menu.lst ]; then
+ sed -i '/## BEGIN NVIDIA ##/,/## END NVIDIA ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+ sed -i '/## BEGIN AMD ##/,/## END AMD ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+fi
+
+# Modify syslinux menu
+if [ -f $WORKPATH/buildLive/Files/binary_syslinux/live.cfg ]; then
+ sed -i '/## BEGIN NVIDIA ##/,/## END NVIDIA ##/d' $WORKPATH/buildLive/Files/binary_syslinux/live.cfg
+ sed -i '/## BEGIN AMD ##/,/## END AMD ##/d' $WORKPATH/buildLive/Files/binary_syslinux/live.cfg
+fi