[Nexus 7 General] krodelabestiole:
thanks for your quick answer !

i found the source code for my kernel on asus website

ive put the source in a kernel folder, and i modified your script to use it (thanks for your comments by the way !) :

#!/bin/sh

# Check arguments
EXPECTED_ARGS=1
E_BADARGS=65

if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: `basename $0` {kernel_version}"
exit $E_BADARGS
fi

# Initialize variables and print header
KVERS=$1
KSOURCE=kernel
TDIR=tchain
DEFCONFIG=tegra3_android_defconfig

echo "
*********************************
* dvbn7comp from Martin Marinov *
* Attempting to compile DVB-T *
* kernel modules for Nexus 7 *
kernel $KVERS
*********************************

More info: http://xdaforums.com/showthread.php?t=1841759

"

# Check whether we have downloaded the kernel sources already
#if [ ! -d "$KSOURCE" ]; then
#	# If not, download them
#	echo " *** Downloading kernel files ***"
#	git clone https://android.googlesource.com/kernel/tegra.git $KSOURCE
#else
#	# If yes, make sure the repo is up-to-date
#	echo " *** Kernel already downloaded, updating ***"
#	cd $KSOURCE
#	git fetch origin
#	cd ..
#fi

# Check whether we have downloaded the precompiled toolchain
machine=$(uname -a)
if [ ! -d "$TDIR" ]; then
# Download the correct toolchain depending on the CPU type
if [[ "$machine" == *x86_64* ]]
then
echo " *** Downloading 64 bit toolchain! ***"
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6 $TDIR
else
echo " *** Downloading 32 bit toolchain! ***"
git clone -b arm-eabi-4.4.3 git://github.com/AdiPat/Android_Toolchains.git $TDIR
fi

else
# Keep toolchain up-to-date
echo " *** Toolchain already downloaded, updating ***"
cd $TDIR
git fetch origin
cd ..
fi

# Figure out where the toolchain binaries reside. 64bit one is easy
# 32bit one is in the arm-eabi-4.4.3 subfolder
if [ -d "$TDIR/arm-eabi-4.4.3" ]; then
TOOLCHAIN=$TDIR/arm-eabi-4.4.3/bin
else
TOOLCHAIN=$TDIR/bin
fi

echo " *** Using toolchain path $TOOLCHAIN. Now we are in $PWD "

# Set crosscompiler hints
export PATH=$PWD/$TOOLCHAIN:$PATH
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
echo " *** Environments set for Android compiling ***"
cd $KSOURCE

# Find out which commit contains the required kernel
#COMMIT=$(git log --max-count=1 $KVERS|head -n1|cut -c 7-47)

# Reset the repo so that it is clean
#echo " *** Resetting git repo to commit $COMMIT ***"
#git checkout $COMMIT
#git clean -f -x
#git reset --hard
make mrproper

# Write the requirements for DVB modules into the default tegra configuration file
echo " *** Enabling DVB-T support ***"
sed -i '$ a\
CONFIG_DVB_CORE=m\
CONFIG_DVB_USB=m\
CONFIG_DVB_PLL=m\
CONFIG_DVB_STV0299=m\
CONFIG_DVB_STB0899=m\
CONFIG_DVB_STB6100=m\
CONFIG_DVB_SP8870=m\
CONFIG_DVB_CX22700=m\
CONFIG_DVB_S5H1432=m\
CONFIG_DVB_CX24110=m\
CONFIG_DVB_TDA8083=m\
CONFIG_DVB_L64781=m\
CONFIG_DVB_DIB3000MB=m\
CONFIG_DVB_DIB3000MC=m\
CONFIG_DVB_DIB7000M=m\
CONFIG_DVB_DIB7000P=m\
CONFIG_DVB_DIB8000=m\
CONFIG_DVB_DIB9000=m\
CONFIG_DVB_MT312=m\
CONFIG_DVB_VES1820=m\
CONFIG_DVB_VES1X93=m\
CONFIG_DVB_TDA1004X=m\
CONFIG_DVB_SP887X=m\
CONFIG_DVB_NXT6000=m\
CONFIG_DVB_MT352=m\
CONFIG_DVB_ZL10036=m\
CONFIG_DVB_ZL10039=m\
CONFIG_DVB_ZL10353=m\
CONFIG_DVB_CX22702=m\
CONFIG_DVB_DRXD=m\
CONFIG_DVB_TDA10021=m\
CONFIG_DVB_TDA10023=m\
CONFIG_DVB_STV0297=m\
CONFIG_DVB_NXT200X=m\
CONFIG_DVB_OR51211=m\
CONFIG_DVB_OR51132=m\
CONFIG_DVB_BCM3510=m\
CONFIG_DVB_S5H1420=m\
CONFIG_DVB_LGDT330X=m\
CONFIG_DVB_LGDT3305=m\
CONFIG_DVB_CX24123=m\
CONFIG_DVB_LNBP21=m\
CONFIG_DVB_ISL6405=m\
CONFIG_DVB_ISL6421=m\
CONFIG_DVB_TDA10086=m\
CONFIG_DVB_TDA826X=m\
CONFIG_DVB_TDA8261=m\
CONFIG_DVB_TUNER_DIB0070=m\
CONFIG_DVB_TUNER_DIB0090=m\
CONFIG_DVB_TUA6100=m\
CONFIG_DVB_S5H1409=m\
CONFIG_DVB_TUNER_ITD1000=m\
CONFIG_DVB_AU8522=m\
CONFIG_DVB_TDA10048=m\
CONFIG_DVB_TUNER_CX24113=m\
CONFIG_DVB_S5H1411=m\
CONFIG_DVB_LGS8GL5=m\
CONFIG_DVB_TDA665x=m\
CONFIG_DVB_LGS8GXX=m\
CONFIG_DVB_ATBM8830=m\
CONFIG_DVB_DUMMY_FE=m\
CONFIG_DVB_AF9013=m\
CONFIG_DVB_CX24116=m\
CONFIG_DVB_SI21XX=m\
CONFIG_DVB_STV0288=m\
CONFIG_DVB_STB6000=m\
CONFIG_DVB_S921=m\
CONFIG_DVB_STV6110=m\
CONFIG_DVB_STV0900=m\
CONFIG_DVB_STV090x=m\
CONFIG_DVB_STV6110x=m\
CONFIG_DVB_ISL6423=m\
CONFIG_DVB_EC100=m\
CONFIG_DVB_DS3000=m\
CONFIG_DVB_MB86A16=m\
CONFIG_DVB_MB86A20S=m\
CONFIG_DVB_IX2505V=m\
CONFIG_DVB_STV0367=m\
CONFIG_DVB_CXD2820R=m\
CONFIG_DVB_DRXK=m\
CONFIG_DVB_TDA18271C2DD=m\
CONFIG_RC_CORE=m\
CONFIG_RC_MAP=n\
CONFIG_IR_NEC_DECODER=n\
CONFIG_IR_RC5_DECODER=n\
CONFIG_IR_RC6_DECODER=n\
CONFIG_IR_JVC_DECODER=n\
CONFIG_IR_SONY_DECODER=n\
CONFIG_IR_RC5_SZ_DECODER=n\
CONFIG_IR_MCE_KBD_DECODER=n\
CONFIG_IR_LIRC_CODEC=n\
CONFIG_LOCALVERSION=""\
CONFIG_LOCALVERSION_AUTO=n' arch/arm/configs/$DEFCONFIG

# Configure kernel
make $DEFCONFIG

# Prepare building of modules and set correct kernel version
STRIPPED=$(echo $KVERS|cut -f 2 -d'-')
make modules_prepare LOCALVERSION="-$STRIPPED"

echo " *** Compiling drivers ***"
# Compile the Remote Control and DVB drivers
make M=drivers/media/rc modules
make M=drivers/media/dvb modules
cd ..

# Copy the drivers into an output dir
echo " *** Copying to output dir ***"
mkdir output_$KVERS
find $KSOURCE -type f -name "*ko" -exec cp {} output_$KVERS/. \;

now i get this error :

make: arm-eabi-gcc: Command not found

here is the full output :

./dvbn7comp.sh 3.1.10-00002-g599d0cf

*********************************
* dvbn7comp from Martin Marinov *
* Attempting to compile DVB-T *
* kernel modules for Nexus 7 *
kernel 3.1.10-00002-g599d0cf
*********************************

More info: http://xdaforums.com/showthread.php?t=1841759

*** Toolchain already downloaded, updating ***
*** Using toolchain path tchain/arm-eabi-4.4.3/bin. Now we are in /home/krodelabestiole/Téléchargements
*** Environments set for Android compiling ***
*** Enabling DVB-T support ***
drivers/misc/inv_mpu6050/Kconfig:22:warning: choice value used outside its choice group
drivers/misc/inv_mpu6050/Kconfig:31:warning: choice value used outside its choice group
drivers/misc/inv_mpu6050/Kconfig:40:warning: choice value used outside its choice group
drivers/misc/inv_mpu6050/Kconfig:56:warning: choice value used outside its choice group
drivers/misc/inv_mpu6050/Kconfig:60:warning: choice value used outside its choice group
arch/arm/configs/tegra3_android_defconfig:553:warning: override: reassigning to symbol RC_CORE
[I]...
(shorten the orther ones)
...[/I]
arch/arm/configs/tegra3_android_defconfig:843:warning: override: reassigning to symbol LOCALVERSION_AUTO
#
# configuration written to .config
#
make: arm-eabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/misc/inv_mpu6050/Kconfig:22:warning: choice value used outside its choice group
drivers/misc/inv_mpu6050/Kconfig:31:warning: choice value used outside its choice group
drivers/misc/inv_mpu6050/Kconfig:40:warning: choice value used outside its choice group
drivers/misc/inv_mpu6050/Kconfig:56:warning: choice value used outside its choice group
drivers/misc/inv_mpu6050/Kconfig:60:warning: choice value used outside its choice group
make: arm-eabi-gcc: Command not found
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
/bin/sh: 1: arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
*** Compiling drivers ***
make: arm-eabi-gcc: Command not found

WARNING: Symbol version dump /home/krodelabestiole/Téléchargements/kernel/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] drivers/media/rc/rc-main.o
/bin/sh: 1: arm-eabi-gcc: not found
make[1]: *** [drivers/media/rc/rc-main.o] Error 127
make: *** [_module_drivers/media/rc] Error 2
make: arm-eabi-gcc: Command not found

WARNING: Symbol version dump /home/krodelabestiole/Téléchargements/kernel/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] drivers/media/dvb/dvb-core/dvbdev.o
/bin/sh: 1: arm-eabi-gcc: not found
make[2]: *** [drivers/media/dvb/dvb-core/dvbdev.o] Error 127
make[1]: *** [drivers/media/dvb/dvb-core] Error 2
make: *** [_module_drivers/media/dvb] Error 2
*** Copying to output dir ***

i don't understand why... do you have an idea ?