mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
removed core/linux-chromebook(2)
This commit is contained in:
parent
5a21fba65c
commit
c0ac0627f0
13 changed files with 0 additions and 8856 deletions
|
@ -1,252 +0,0 @@
|
||||||
# Samsung/HP Chromebook Kernel
|
|
||||||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
||||||
# Maintainer: stratum nine <strata@dropswitch.net>
|
|
||||||
|
|
||||||
buildarch=4
|
|
||||||
|
|
||||||
pkgbase=linux-chromebook
|
|
||||||
pkgname=('linux-chromebook' 'linux-headers-chromebook')
|
|
||||||
pkgver=20140525
|
|
||||||
_kernelname=${pkgname#linux}
|
|
||||||
pkgdesc="ChromiumOS kernel with ArchLinux ARM tweaks"
|
|
||||||
_basever=3.4
|
|
||||||
pkgrel=1
|
|
||||||
arch=('armv7h')
|
|
||||||
url="https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-3.4"
|
|
||||||
license=('GPL2')
|
|
||||||
makedepends=('xmlto' 'docbook-xsl' 'uboot-mkimage' 'dtc' 'inetutils' 'kmod')
|
|
||||||
options=('!strip')
|
|
||||||
_commit=27c0093c220d66d796e85d2ecd1231850f7c9397
|
|
||||||
source=("https://chromium.googlesource.com/chromiumos/third_party/kernel/+archive/${_commit}.tar.gz"
|
|
||||||
'config'
|
|
||||||
'kernel.its')
|
|
||||||
noextract=("${_commit}.tar.gz")
|
|
||||||
# Skipping the source, the tarball is regenerated regularly with new timestamps.
|
|
||||||
md5sums=('SKIP'
|
|
||||||
'f01929a84dd2e295ebf6e2b5e3cdbf82'
|
|
||||||
'56f8343875b928b6aa4e83921e5df25f')
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
#Set up and extract kernel
|
|
||||||
mkdir -p ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
tar -xf ${_commit}.tar.gz -C ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
cd ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
# Kernel configuration
|
|
||||||
cp "${srcdir}/config" .config
|
|
||||||
|
|
||||||
# .its files for FIT Images
|
|
||||||
cp "${srcdir}/kernel.its" arch/arm/boot/kernel.its
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
LDFLAGS=""
|
|
||||||
|
|
||||||
# get kernel version
|
|
||||||
make prepare
|
|
||||||
|
|
||||||
# load configuration
|
|
||||||
# Configure the kernel. Replace the line below with one of your choice.
|
|
||||||
#make menuconfig # CLI menu for configuration
|
|
||||||
#make nconfig # new CLI menu for configuration
|
|
||||||
#make xconfig # X-based configuration
|
|
||||||
#make oldconfig # using old config from previous kernel version
|
|
||||||
# ... or manually edit .config
|
|
||||||
|
|
||||||
# Copy back our configuration (use with new kernel version)
|
|
||||||
#cp ./.config ../${pkgbase}.config
|
|
||||||
|
|
||||||
####################
|
|
||||||
# stop here
|
|
||||||
# this is useful to configure the kernel
|
|
||||||
#msg "Stopping build"
|
|
||||||
#return 1
|
|
||||||
####################
|
|
||||||
|
|
||||||
#yes "" | make config
|
|
||||||
|
|
||||||
# build!
|
|
||||||
make ${MAKEFLAGS} zImage modules dtbs
|
|
||||||
cd arch/arm/boot
|
|
||||||
mkimage -f kernel.its vmlinux.uimg
|
|
||||||
}
|
|
||||||
|
|
||||||
package_linux-chromebook() {
|
|
||||||
pkgdesc="The Linux Kernel and modules - ARM Chromebook kernel and modules"
|
|
||||||
depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.16')
|
|
||||||
optdepends=('crda: to set the correct wireless channels of your country')
|
|
||||||
provides=('linux26' "linux=${pkgver}")
|
|
||||||
install=${pkgname}.install
|
|
||||||
|
|
||||||
cd ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
KARCH=arm
|
|
||||||
|
|
||||||
# get kernel version
|
|
||||||
_kernver="$(make kernelrelease)"
|
|
||||||
_basekernel=${_kernver%%-*}
|
|
||||||
_basekernel=${_basekernel%.*}
|
|
||||||
|
|
||||||
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot/dtbs}
|
|
||||||
make INSTALL_MOD_PATH="${pkgdir}" modules_install
|
|
||||||
cp arch/arm/boot/vmlinux.uimg "${pkgdir}/boot/vmlinux.uimg"
|
|
||||||
|
|
||||||
# set correct depmod command for install
|
|
||||||
sed \
|
|
||||||
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
|
|
||||||
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
|
|
||||||
-i "${startdir}/${pkgname}.install"
|
|
||||||
|
|
||||||
# remove build and source links
|
|
||||||
rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
|
|
||||||
# remove the firmware
|
|
||||||
rm -rf "${pkgdir}/lib/firmware"
|
|
||||||
# gzip -9 all modules to save 100MB of space
|
|
||||||
find "${pkgdir}" -name '*.ko' |xargs -P 2 -n 1 gzip -9
|
|
||||||
# make room for external modules
|
|
||||||
ln -s "../extramodules-${_basekernel}-${_kernelname:-ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
|
|
||||||
# add real version for building modules and running depmod from post_install/upgrade
|
|
||||||
mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}-${_kernelname:-ARCH}"
|
|
||||||
echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}-${_kernelname:-ARCH}/version"
|
|
||||||
|
|
||||||
# Now we call depmod...
|
|
||||||
depmod -b "$pkgdir" -F System.map "$_kernver"
|
|
||||||
|
|
||||||
# move module tree /lib -> /usr/lib
|
|
||||||
mkdir -p "${pkgdir}/usr"
|
|
||||||
mv "$pkgdir/lib" "$pkgdir/usr"
|
|
||||||
}
|
|
||||||
|
|
||||||
package_linux-headers-chromebook() {
|
|
||||||
pkgdesc="Header files and scripts for building modules for linux kernel - SAMSUNG ARM Chromebook"
|
|
||||||
provides=("linux-headers=${pkgver}")
|
|
||||||
conflicts=('linux-headers-omap' 'linux-headers-trimslice')
|
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
|
|
||||||
|
|
||||||
cd "${pkgdir}/usr/lib/modules/${_kernver}"
|
|
||||||
ln -sf ../../../src/linux-${_kernver} build
|
|
||||||
|
|
||||||
cd ${srcdir}/chromeos-${_basever}
|
|
||||||
install -D -m644 Makefile \
|
|
||||||
"${pkgdir}/usr/src/linux-${_kernver}/Makefile"
|
|
||||||
install -D -m644 kernel/Makefile \
|
|
||||||
"${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"
|
|
||||||
install -D -m644 .config \
|
|
||||||
"${pkgdir}/usr/src/linux-${_kernver}/.config"
|
|
||||||
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"
|
|
||||||
|
|
||||||
for i in acpi asm-generic config crypto drm generated linux math-emu \
|
|
||||||
media net pcmcia scsi sound trace video xen; do
|
|
||||||
cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"
|
|
||||||
done
|
|
||||||
|
|
||||||
# copy arch includes for external modules
|
|
||||||
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH
|
|
||||||
cp -a arch/$KARCH/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
|
|
||||||
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/mach-exynos
|
|
||||||
cp -a arch/$KARCH/mach-exynos/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/mach-exynos/
|
|
||||||
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/plat-samsung
|
|
||||||
cp -a arch/$KARCH/plat-samsung/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/plat-samsung/
|
|
||||||
|
|
||||||
# copy files necessary for later builds, like nvidia and vmware
|
|
||||||
cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"
|
|
||||||
cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"
|
|
||||||
|
|
||||||
# fix permissions on scripts dir
|
|
||||||
chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"
|
|
||||||
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"
|
|
||||||
|
|
||||||
cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
|
|
||||||
|
|
||||||
if [ "${CARCH}" = "i686" ]; then
|
|
||||||
cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"
|
|
||||||
|
|
||||||
# add headers for lirc package
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video"
|
|
||||||
|
|
||||||
cp drivers/media/video/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/"
|
|
||||||
|
|
||||||
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
|
|
||||||
cp -a drivers/media/video/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
|
|
||||||
done
|
|
||||||
|
|
||||||
# add docbook makefile
|
|
||||||
install -D -m644 Documentation/DocBook/Makefile \
|
|
||||||
"${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
|
|
||||||
|
|
||||||
# add dm headers
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
|
|
||||||
cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
|
|
||||||
|
|
||||||
# add inotify.h
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"
|
|
||||||
cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"
|
|
||||||
|
|
||||||
# add wireless headers
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
|
|
||||||
cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
|
|
||||||
|
|
||||||
# add dvb headers for external modules
|
|
||||||
# in reference to:
|
|
||||||
# http://bugs.archlinux.org/task/9912
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core"
|
|
||||||
cp drivers/media/dvb/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/"
|
|
||||||
|
|
||||||
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
|
|
||||||
# in reference to:
|
|
||||||
# http://bugs.archlinux.org/task/13146
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
|
|
||||||
cp drivers/media/dvb/frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
|
|
||||||
cp drivers/media/video/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
|
|
||||||
|
|
||||||
# add dvb headers
|
|
||||||
# in reference to:
|
|
||||||
# http://bugs.archlinux.org/task/20402
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb"
|
|
||||||
cp drivers/media/dvb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/"
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends"
|
|
||||||
cp drivers/media/dvb/frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners"
|
|
||||||
cp drivers/media/common/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/"
|
|
||||||
|
|
||||||
# add xfs and shmem for aufs building
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"
|
|
||||||
cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"
|
|
||||||
|
|
||||||
# copy in Kconfig files
|
|
||||||
for i in `find . -name "Kconfig*"`; do
|
|
||||||
mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`
|
|
||||||
cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"
|
|
||||||
done
|
|
||||||
|
|
||||||
chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"
|
|
||||||
find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;
|
|
||||||
|
|
||||||
# strip scripts directory
|
|
||||||
find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
|
|
||||||
case "$(file -bi "${binary}")" in
|
|
||||||
*application/x-sharedlib*) # Libraries (.so)
|
|
||||||
/usr/bin/strip ${STRIP_SHARED} "${binary}";;
|
|
||||||
*application/x-archive*) # Libraries (.a)
|
|
||||||
/usr/bin/strip ${STRIP_STATIC} "${binary}";;
|
|
||||||
*application/x-executable*) # Binaries
|
|
||||||
/usr/bin/strip ${STRIP_BINARIES} "${binary}";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# remove unneeded architectures
|
|
||||||
rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,x86,xtensa}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,63 +0,0 @@
|
||||||
/dts-v1/;
|
|
||||||
|
|
||||||
/ {
|
|
||||||
description = "Chrome OS kernel image with one or more FDT blobs";
|
|
||||||
#address-cells = <1>;
|
|
||||||
images {
|
|
||||||
kernel@1{
|
|
||||||
description = "kernel";
|
|
||||||
data = /incbin/("zImage");
|
|
||||||
type = "kernel_noload";
|
|
||||||
arch = "arm";
|
|
||||||
os = "linux";
|
|
||||||
compression = "none";
|
|
||||||
load = <0>;
|
|
||||||
entry = <0>;
|
|
||||||
};
|
|
||||||
fdt@1{
|
|
||||||
description = "exynos5250-snow-rev4.dtb";
|
|
||||||
data = /incbin/("exynos5250-snow-rev4.dtb");
|
|
||||||
type = "flat_dt";
|
|
||||||
arch = "arm";
|
|
||||||
compression = "none";
|
|
||||||
hash@1{
|
|
||||||
algo = "sha1";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
fdt@2{
|
|
||||||
description = "exynos5250-spring.dtb";
|
|
||||||
data = /incbin/("exynos5250-spring.dtb");
|
|
||||||
type = "flat_dt";
|
|
||||||
arch = "arm";
|
|
||||||
compression = "none";
|
|
||||||
hash@1{
|
|
||||||
algo = "sha1";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
fdt@3{
|
|
||||||
description = "exynos5250-snow-rev5.dtb";
|
|
||||||
data = /incbin/("exynos5250-snow-rev5.dtb");
|
|
||||||
type = "flat_dt";
|
|
||||||
arch = "arm";
|
|
||||||
compression = "none";
|
|
||||||
hash@1{
|
|
||||||
algo = "sha1";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
configurations {
|
|
||||||
default = "conf@1";
|
|
||||||
conf@1{
|
|
||||||
kernel = "kernel@1";
|
|
||||||
fdt = "fdt@1";
|
|
||||||
};
|
|
||||||
conf@2{
|
|
||||||
kernel = "kernel@1";
|
|
||||||
fdt = "fdt@2";
|
|
||||||
};
|
|
||||||
conf@3{
|
|
||||||
kernel = "kernel@1";
|
|
||||||
fdt = "fdt@3";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
|
@ -1,18 +0,0 @@
|
||||||
# arg 1: the new package version
|
|
||||||
# arg 2: the old package versio
|
|
||||||
|
|
||||||
KERNEL_VERSION=3.4.0-ARCH
|
|
||||||
|
|
||||||
post_install () {
|
|
||||||
# updating module dependencies
|
|
||||||
echo ">>> Updating module dependencies. Please wait ..."
|
|
||||||
depmod ${KERNEL_VERSION}
|
|
||||||
sync
|
|
||||||
}
|
|
||||||
|
|
||||||
post_upgrade() {
|
|
||||||
# updating module dependencies
|
|
||||||
echo ">>> Updating module dependencies. Please wait ..."
|
|
||||||
depmod ${KERNEL_VERSION}
|
|
||||||
sync
|
|
||||||
}
|
|
|
@ -1,26 +0,0 @@
|
||||||
From dd277c9a851cc4b5b6521cc2c6d79ce407488910 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "S.J.R. van Schaik" <stephan@synkhronix.com>
|
|
||||||
Date: Thu, 19 Jun 2014 17:08:06 +0100
|
|
||||||
Subject: [PATCH] exynos DRM: have exynos_drm_fbdev_update() set smem_start and
|
|
||||||
smem_len.
|
|
||||||
|
|
||||||
---
|
|
||||||
drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
|
|
||||||
index 5a7cd8b..6b96fd4 100644
|
|
||||||
--- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
|
|
||||||
+++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
|
|
||||||
@@ -125,6 +125,8 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
|
|
||||||
|
|
||||||
fbi->screen_base = buffer->kvaddr;
|
|
||||||
fbi->screen_size = size;
|
|
||||||
+ fbi->fix.smem_start = buffer->dma_addr;
|
|
||||||
+ fbi->fix.smem_len = size;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
--
|
|
||||||
1.8.5.5
|
|
||||||
|
|
|
@ -1,288 +0,0 @@
|
||||||
# Samsung Chromebook 2 Kernel
|
|
||||||
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
||||||
|
|
||||||
buildarch=4
|
|
||||||
|
|
||||||
pkgbase=linux-chromebook2
|
|
||||||
pkgname=('linux-chromebook2' 'linux-headers-chromebook2')
|
|
||||||
pkgver=20140814
|
|
||||||
pkgrel=1
|
|
||||||
_kernelname=${pkgname#linux}
|
|
||||||
pkgdesc="ChromiumOS kernel with ArchLinux ARM tweaks"
|
|
||||||
_basever=3.8
|
|
||||||
arch=('armv7h')
|
|
||||||
url="https://chromium.googlesource.com/chromiumos/third_party/kernel/+/chromeos-3.8"
|
|
||||||
license=('GPL2')
|
|
||||||
makedepends=('xmlto' 'docbook-xsl' 'uboot-mkimage' 'dtc' 'inetutils' 'kmod' 'vboot-utils' 'git')
|
|
||||||
options=('!strip')
|
|
||||||
_commit=8ee4a3c774153aa80179a89b42cb43eafa0f40de
|
|
||||||
source=("https://chromium.googlesource.com/chromiumos/third_party/kernel/+archive/${_commit}.tar.gz"
|
|
||||||
http://archlinuxarm.org/builder/src/sd{8787,8797,8897}_uapsta_cros.bin
|
|
||||||
'0001-exynos-drm-smem-start-len.patch'
|
|
||||||
'mwifiex-cros.patch'
|
|
||||||
'mwifiex-do-not-create-AP-and-P2P-interfaces-upon-driver-loading.patch'
|
|
||||||
'config'
|
|
||||||
'kernel.its'
|
|
||||||
'kernel.keyblock'
|
|
||||||
'kernel_data_key.vbprivk')
|
|
||||||
noextract=("${_commit}.tar.gz")
|
|
||||||
md5sums=('SKIP'
|
|
||||||
'bda543cb5943eac34e16d12911f3ee99'
|
|
||||||
'dc6da2272ffb8ea63f10bc4457cc3f70'
|
|
||||||
'5d74feddd86b9c1e6cd23704795cc7d7'
|
|
||||||
'dc8c3ffa65edd9ee30a1f9805d2b3460'
|
|
||||||
'25b21eebbb7bde980f666013e3fd3705'
|
|
||||||
'df77c8bcdaf51b087fd38cacb1633c82'
|
|
||||||
'3853f4a83db95448b0ebcd2810cd72fe'
|
|
||||||
'1e66637b4771568d2dfa161f5e0357f7'
|
|
||||||
'61c5ff73c136ed07a7aadbf58db3d96a'
|
|
||||||
'584777ae88bce2c5659960151b64c7d8')
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
#Set up and extract kernel
|
|
||||||
mkdir -p ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
tar -xf ${_commit}.tar.gz -C ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
cd ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
# fix for using xf86-video-fbturbo
|
|
||||||
git apply ../0001-exynos-drm-smem-start-len.patch
|
|
||||||
|
|
||||||
# use ChromeOS version of mwifiex firmware we provide
|
|
||||||
patch -p1 -i ../mwifiex-cros.patch
|
|
||||||
|
|
||||||
# do not create uap0 and p2p0 interfaces by default
|
|
||||||
patch -p1 -i ../mwifiex-do-not-create-AP-and-P2P-interfaces-upon-driver-loading.patch
|
|
||||||
|
|
||||||
# Kernel configuration
|
|
||||||
cp "${srcdir}/config" .config
|
|
||||||
|
|
||||||
# .its files for FIT Images
|
|
||||||
cp "${srcdir}/kernel.its" arch/arm/boot/kernel.its
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
LDFLAGS=""
|
|
||||||
|
|
||||||
# get kernel version
|
|
||||||
make prepare
|
|
||||||
|
|
||||||
# load configuration
|
|
||||||
# Configure the kernel. Replace the line below with one of your choice.
|
|
||||||
#make menuconfig # CLI menu for configuration
|
|
||||||
#make nconfig # new CLI menu for configuration
|
|
||||||
#make xconfig # X-based configuration
|
|
||||||
#make oldconfig # using old config from previous kernel version
|
|
||||||
# ... or manually edit .config
|
|
||||||
|
|
||||||
# Copy back our configuration (use with new kernel version)
|
|
||||||
#cp ./.config ../${pkgbase}.config
|
|
||||||
|
|
||||||
####################
|
|
||||||
# stop here
|
|
||||||
# this is useful to configure the kernel
|
|
||||||
#msg "Stopping build"
|
|
||||||
#return 1
|
|
||||||
####################
|
|
||||||
|
|
||||||
#yes "" | make config
|
|
||||||
|
|
||||||
# build!
|
|
||||||
make ${MAKEFLAGS} zImage modules dtbs
|
|
||||||
cd arch/arm/boot
|
|
||||||
mkimage -f kernel.its vmlinux.uimg
|
|
||||||
vbutil_kernel --pack vmlinux.kpart --version 1 --vmlinuz vmlinux.uimg --arch arm --keyblock ${srcdir}/kernel.keyblock --signprivate ${srcdir}/kernel_data_key.vbprivk
|
|
||||||
}
|
|
||||||
|
|
||||||
package_linux-chromebook2() {
|
|
||||||
pkgdesc="The Linux Kernel and modules - Samsung ARM Chromebook 2 kernel and modules"
|
|
||||||
depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.16')
|
|
||||||
optdepends=('crda: to set the correct wireless channels of your country')
|
|
||||||
provides=('linux26' "linux=${pkgver}")
|
|
||||||
conflict=('linux')
|
|
||||||
install=${pkgname}.install
|
|
||||||
|
|
||||||
cd ${srcdir}/chromeos-${_basever}
|
|
||||||
|
|
||||||
KARCH=arm
|
|
||||||
|
|
||||||
# get kernel version
|
|
||||||
_kernver="$(make kernelrelease)"
|
|
||||||
_basekernel=${_kernver%%-*}
|
|
||||||
_basekernel=${_basekernel%.*}
|
|
||||||
|
|
||||||
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot/dtbs}
|
|
||||||
make INSTALL_MOD_PATH="${pkgdir}" modules_install
|
|
||||||
cp arch/arm/boot/vmlinux.uimg arch/arm/boot/vmlinux.kpart "${pkgdir}/boot"
|
|
||||||
|
|
||||||
# set correct depmod command for install
|
|
||||||
sed \
|
|
||||||
-e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
|
|
||||||
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
|
|
||||||
-i "${startdir}/${pkgname}.install"
|
|
||||||
|
|
||||||
# remove build and source links
|
|
||||||
rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
|
|
||||||
# remove the firmware
|
|
||||||
rm -rf "${pkgdir}/lib/firmware"
|
|
||||||
# gzip -9 all modules to save 100MB of space
|
|
||||||
find "${pkgdir}" -name '*.ko' |xargs -P 2 -n 1 gzip -9
|
|
||||||
# make room for external modules
|
|
||||||
ln -s "../extramodules-${_basekernel}-${_kernelname:-ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
|
|
||||||
# add real version for building modules and running depmod from post_install/upgrade
|
|
||||||
mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}-${_kernelname:-ARCH}"
|
|
||||||
echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}-${_kernelname:-ARCH}/version"
|
|
||||||
|
|
||||||
# Now we call depmod...
|
|
||||||
depmod -b "$pkgdir" -F System.map "$_kernver"
|
|
||||||
|
|
||||||
# move module tree /lib -> /usr/lib
|
|
||||||
mkdir -p "${pkgdir}/usr"
|
|
||||||
mv "$pkgdir/lib" "$pkgdir/usr"
|
|
||||||
|
|
||||||
# install ChromeOS mwifiex firmware
|
|
||||||
mkdir -p "${pkgdir}"/usr/lib/firmware/mrvl
|
|
||||||
cp ../sd{8787,8797,8897}_uapsta_cros.bin "${pkgdir}"/usr/lib/firmware/mrvl
|
|
||||||
}
|
|
||||||
|
|
||||||
package_linux-headers-chromebook2() {
|
|
||||||
pkgdesc="Header files and scripts for building modules for linux kernel - Samsung ARM Chromebook 2"
|
|
||||||
provides=("linux-headers=${pkgver}")
|
|
||||||
conflicts=('linux-headers')
|
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
|
|
||||||
|
|
||||||
cd "${pkgdir}/usr/lib/modules/${_kernver}"
|
|
||||||
ln -sf ../../../src/linux-${_kernver} build
|
|
||||||
|
|
||||||
cd ${srcdir}/chromeos-${_basever}
|
|
||||||
install -D -m644 Makefile \
|
|
||||||
"${pkgdir}/usr/src/linux-${_kernver}/Makefile"
|
|
||||||
install -D -m644 kernel/Makefile \
|
|
||||||
"${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"
|
|
||||||
install -D -m644 .config \
|
|
||||||
"${pkgdir}/usr/src/linux-${_kernver}/.config"
|
|
||||||
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"
|
|
||||||
|
|
||||||
for i in acpi asm-generic config crypto drm generated keys linux math-emu \
|
|
||||||
media net pcmcia scsi sound trace uapi video xen; do
|
|
||||||
cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"
|
|
||||||
done
|
|
||||||
|
|
||||||
# copy arch includes for external modules
|
|
||||||
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH
|
|
||||||
cp -a arch/$KARCH/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
|
|
||||||
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/mach-exynos
|
|
||||||
cp -a arch/$KARCH/mach-exynos/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/mach-exynos/
|
|
||||||
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/plat-samsung
|
|
||||||
cp -a arch/$KARCH/plat-samsung/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/plat-samsung/
|
|
||||||
|
|
||||||
# copy files necessary for later builds, like nvidia and vmware
|
|
||||||
cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"
|
|
||||||
cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"
|
|
||||||
|
|
||||||
# fix permissions on scripts dir
|
|
||||||
chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"
|
|
||||||
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"
|
|
||||||
|
|
||||||
cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
|
|
||||||
|
|
||||||
cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"
|
|
||||||
|
|
||||||
# add headers for lirc package
|
|
||||||
# pci
|
|
||||||
for i in bt8xx cx88 saa7134; do
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/pci/${i}"
|
|
||||||
cp -a drivers/media/pci/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/pci/${i}"
|
|
||||||
done
|
|
||||||
# usb
|
|
||||||
for i in cpia2 em28xx pwc sn9c102; do
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/${i}"
|
|
||||||
cp -a drivers/media/usb/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/${i}"
|
|
||||||
done
|
|
||||||
# i2c
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c"
|
|
||||||
cp drivers/media/i2c/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/"
|
|
||||||
for i in cx25840; do
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/${i}"
|
|
||||||
cp -a drivers/media/i2c/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/${i}"
|
|
||||||
done
|
|
||||||
|
|
||||||
# add docbook makefile
|
|
||||||
install -D -m644 Documentation/DocBook/Makefile \
|
|
||||||
"${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
|
|
||||||
|
|
||||||
# add dm headers
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
|
|
||||||
cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
|
|
||||||
|
|
||||||
# add inotify.h
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"
|
|
||||||
cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"
|
|
||||||
|
|
||||||
# add wireless headers
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
|
|
||||||
cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
|
|
||||||
|
|
||||||
# add dvb headers for external modules
|
|
||||||
# in reference to:
|
|
||||||
# http://bugs.archlinux.org/task/9912
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-core"
|
|
||||||
cp drivers/media/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-core/"
|
|
||||||
# and...
|
|
||||||
# http://bugs.archlinux.org/task/11194
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
|
|
||||||
cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
|
|
||||||
|
|
||||||
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
|
|
||||||
# in reference to:
|
|
||||||
# http://bugs.archlinux.org/task/13146
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/"
|
|
||||||
cp drivers/media/dvb-frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/"
|
|
||||||
cp drivers/media/i2c/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/"
|
|
||||||
|
|
||||||
# add dvb headers
|
|
||||||
# in reference to:
|
|
||||||
# http://bugs.archlinux.org/task/20402
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/dvb-usb"
|
|
||||||
cp drivers/media/usb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/dvb-usb/"
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends"
|
|
||||||
cp drivers/media/dvb-frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/"
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/tuners"
|
|
||||||
cp drivers/media/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/tuners/"
|
|
||||||
|
|
||||||
# add xfs and shmem for aufs building
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
|
|
||||||
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"
|
|
||||||
cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"
|
|
||||||
|
|
||||||
# copy in Kconfig files
|
|
||||||
for i in `find . -name "Kconfig*"`; do
|
|
||||||
mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`
|
|
||||||
cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"
|
|
||||||
done
|
|
||||||
|
|
||||||
chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"
|
|
||||||
find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;
|
|
||||||
|
|
||||||
# strip scripts directory
|
|
||||||
find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
|
|
||||||
case "$(file -bi "${binary}")" in
|
|
||||||
*application/x-sharedlib*) # Libraries (.so)
|
|
||||||
/usr/bin/strip ${STRIP_SHARED} "${binary}";;
|
|
||||||
*application/x-archive*) # Libraries (.a)
|
|
||||||
/usr/bin/strip ${STRIP_STATIC} "${binary}";;
|
|
||||||
*application/x-executable*) # Binaries
|
|
||||||
/usr/bin/strip ${STRIP_BINARIES} "${binary}";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# remove unneeded architectures
|
|
||||||
rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,x86,xtensa}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,36 +0,0 @@
|
||||||
/dts-v1/;
|
|
||||||
|
|
||||||
/ {
|
|
||||||
description = "Chrome OS kernel image with one or more FDT blobs";
|
|
||||||
#address-cells = <1>;
|
|
||||||
images {
|
|
||||||
kernel@1{
|
|
||||||
description = "kernel";
|
|
||||||
data = /incbin/("zImage");
|
|
||||||
type = "kernel_noload";
|
|
||||||
arch = "arm";
|
|
||||||
os = "linux";
|
|
||||||
compression = "none";
|
|
||||||
load = <0>;
|
|
||||||
entry = <0>;
|
|
||||||
};
|
|
||||||
fdt@1{
|
|
||||||
description = "exynos5422-peach-pi.dtb";
|
|
||||||
data = /incbin/("dts/exynos5422-peach-pi.dtb");
|
|
||||||
type = "flat_dt";
|
|
||||||
arch = "arm";
|
|
||||||
compression = "none";
|
|
||||||
hash@1{
|
|
||||||
algo = "sha1";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
configurations {
|
|
||||||
default = "conf@1";
|
|
||||||
conf@1{
|
|
||||||
description = "exynos5422-peach-pi.dtb";
|
|
||||||
kernel = "kernel@1";
|
|
||||||
fdt = "fdt@1";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,31 +0,0 @@
|
||||||
# arg 1: the new package version
|
|
||||||
# arg 2: the old package versio
|
|
||||||
|
|
||||||
KERNEL_VERSION=3.8.0-ARCH
|
|
||||||
|
|
||||||
flash_kernel() {
|
|
||||||
echo "A new kernel version needs to be flashed onto /dev/mmcblk1p1."
|
|
||||||
echo "Do you want to do this now? [y|N]"
|
|
||||||
read -r shouldwe
|
|
||||||
if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
|
|
||||||
dd if=/boot/vmlinux.kpart of=/dev/mmcblk1p1
|
|
||||||
sync
|
|
||||||
else
|
|
||||||
echo "You can do this later by running:"
|
|
||||||
echo "# dd if=/boot/vmlinux.kpart of=/dev/mmcblk1p1"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install () {
|
|
||||||
# updating module dependencies
|
|
||||||
echo ">>> Updating module dependencies. Please wait ..."
|
|
||||||
depmod ${KERNEL_VERSION}
|
|
||||||
flash_kernel
|
|
||||||
}
|
|
||||||
|
|
||||||
post_upgrade() {
|
|
||||||
# updating module dependencies
|
|
||||||
echo ">>> Updating module dependencies. Please wait ..."
|
|
||||||
depmod ${KERNEL_VERSION}
|
|
||||||
flash_kernel
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
--- a/drivers/net/wireless/mwifiex/sdio.h 2014-08-14 19:21:32.018236913 -0600
|
|
||||||
+++ b/drivers/net/wireless/mwifiex/sdio.h 2014-08-14 19:21:00.468341514 -0600
|
|
||||||
@@ -30,9 +30,9 @@
|
|
||||||
#include "main.h"
|
|
||||||
|
|
||||||
#define SD8786_DEFAULT_FW_NAME "mrvl/sd8786_uapsta.bin"
|
|
||||||
-#define SD8787_DEFAULT_FW_NAME "mrvl/sd8787_uapsta.bin"
|
|
||||||
-#define SD8797_DEFAULT_FW_NAME "mrvl/sd8797_uapsta.bin"
|
|
||||||
-#define SD8897_DEFAULT_FW_NAME "mrvl/sd8897_uapsta.bin"
|
|
||||||
+#define SD8787_DEFAULT_FW_NAME "mrvl/sd8787_uapsta_cros.bin"
|
|
||||||
+#define SD8797_DEFAULT_FW_NAME "mrvl/sd8797_uapsta_cros.bin"
|
|
||||||
+#define SD8897_DEFAULT_FW_NAME "mrvl/sd8897_uapsta_cros.bin"
|
|
||||||
|
|
||||||
#define BLOCK_MODE 1
|
|
||||||
#define BYTE_MODE 0
|
|
|
@ -1,71 +0,0 @@
|
||||||
From patchwork Mon Aug 19 23:10:21 2013
|
|
||||||
Content-Type: text/plain; charset="utf-8"
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Transfer-Encoding: 7bit
|
|
||||||
Subject: mwifiex: do not create AP and P2P interfaces upon driver loading
|
|
||||||
From: Bing Zhao <bzhao@marvell.com>
|
|
||||||
X-Patchwork-Id: 2846729
|
|
||||||
Message-Id: <1376953821-32188-1-git-send-email-bzhao@marvell.com>
|
|
||||||
To: <linux-wireless@vger.kernel.org>
|
|
||||||
Cc: "John W. Linville" <linville@tuxdriver.com>,
|
|
||||||
Avinash Patil <patila@marvell.com>, Amitkumar Karwar <akarwar@marvell.com>,
|
|
||||||
Nishant Sarmukadam <nishants@marvell.com>,
|
|
||||||
Frank Huang <frankh@marvell.com>, Bing Zhao <bzhao@marvell.com>
|
|
||||||
Date: Mon, 19 Aug 2013 16:10:21 -0700
|
|
||||||
|
|
||||||
Bug 60747 - 1286:2044 [Microsoft Surface Pro]
|
|
||||||
Marvell 88W8797 wifi show 3 interface under network
|
|
||||||
https://bugzilla.kernel.org/show_bug.cgi?id=60747
|
|
||||||
|
|
||||||
This issue was also reported previously by OLPC and some folks from
|
|
||||||
the community.
|
|
||||||
|
|
||||||
There are 3 network interfaces with different types being created
|
|
||||||
when mwifiex driver is loaded:
|
|
||||||
|
|
||||||
1. mlan0 (infra. STA)
|
|
||||||
2. uap0 (AP)
|
|
||||||
3. p2p0 (P2P_CLIENT)
|
|
||||||
|
|
||||||
The Network Manager attempts to use all 3 interfaces above without
|
|
||||||
filtering the managed interface type. As the result, 3 identical
|
|
||||||
interfaces are displayed under network manager. If user happens to
|
|
||||||
click on an entry under which its interface is uap0 or p2p0, the
|
|
||||||
association will fail.
|
|
||||||
|
|
||||||
Work around it by removing the creation of AP and P2P interfaces
|
|
||||||
at driver loading time. These interfaces can be added with 'iw' or
|
|
||||||
other applications manually when they are needed.
|
|
||||||
|
|
||||||
Signed-off-by: Bing Zhao <bzhao@marvell.com>
|
|
||||||
Signed-off-by: Avinash Patil <patila@marvell.com>
|
|
||||||
|
|
||||||
---
|
|
||||||
drivers/net/wireless/mwifiex/main.c | 14 --------------
|
|
||||||
1 file changed, 14 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c
|
|
||||||
index 3402bff..fd77833 100644
|
|
||||||
--- a/drivers/net/wireless/mwifiex/main.c
|
|
||||||
+++ b/drivers/net/wireless/mwifiex/main.c
|
|
||||||
@@ -477,20 +477,6 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context)
|
|
||||||
dev_err(adapter->dev, "cannot create default STA interface\n");
|
|
||||||
goto err_add_intf;
|
|
||||||
}
|
|
||||||
-
|
|
||||||
- /* Create AP interface by default */
|
|
||||||
- if (!mwifiex_add_virtual_intf(adapter->wiphy, "uap%d",
|
|
||||||
- NL80211_IFTYPE_AP, NULL, NULL)) {
|
|
||||||
- dev_err(adapter->dev, "cannot create default AP interface\n");
|
|
||||||
- goto err_add_intf;
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- /* Create P2P interface by default */
|
|
||||||
- if (!mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d",
|
|
||||||
- NL80211_IFTYPE_P2P_CLIENT, NULL, NULL)) {
|
|
||||||
- dev_err(adapter->dev, "cannot create default P2P interface\n");
|
|
||||||
- goto err_add_intf;
|
|
||||||
- }
|
|
||||||
rtnl_unlock();
|
|
||||||
|
|
||||||
mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1);
|
|
Loading…
Reference in a new issue