blob: fff4d74653a61e15b276a544674dba7655012569 [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
CROS_WORKON_COMMIT="fc10e7a711525574f0f74eadfb47d46bc866e569"
CROS_WORKON_TREE="2d33273aa149b8445906ba2bbd9718f63bc52b70"
EAPI=4
CROS_WORKON_PROJECT="chromiumos/third_party/gdmwimax"
inherit cros-workon
DESCRIPTION="GCT GDM7205 WiMAX SDK"
HOMEPAGE="http://www.gctsemi.com/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE=""
src_prepare() {
# Create build configuration file.
cat > .config <<-EOF
CONFIG_DM_INTERFACE=y
CONFIG_DM_NET_DEVICE=eth0
CONFIG_LOG_FILE_BUF_SIZE=0x80000
CONFIG_ENABLE_BW_SWITCHING_FOR_KT=n
CONFIG_ENABLE_SERVICE_FLOW=n
CONFIG_WIMAX2=n
EOF
}
src_compile() {
# Do not fortify source. See crosbug.com/p/10133 for details.
append-flags -U_FORTIFY_SOURCE
tc-export AR CC
emake -C sdk
emake -C cm
}
src_install() {
# Install SDK library.
dolib sdk/libgdmwimax.a
# Install SDK headers.
insinto /usr/include/gct
doins sdk/{gctapi.h,gcttype.h,WiMaxType.h}
# Install connection manager executable and configuration file.
exeinto /opt/gct
doexe cm/cm
insinto /opt/gct
doins cm/cm.conf
# Install firmware.
insinto /lib/firmware/gdm72xx
doins firmware/gdmuimg.bin
}