openwifi/driver/xilinx_dma/make_xilinx_dma.sh

18 lines
314 B
Bash
Raw Normal View History

2019-12-10 13:03:47 +00:00
#!/bin/bash
set -x
WORKDIR=$PWD
KDIR=$1
SUBMODULE=xilinx_dma
source $2
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
cp xilinx_dma.c $KDIR/drivers/dma/xilinx -rf
cd $KDIR
make $KDIR/drivers/dma/xilinx/$SUBMODULE.ko
cp $KDIR/drivers/dma/xilinx/$SUBMODULE.ko $WORKDIR -rf
cd $WORKDIR
ls $SUBMODULE.ko