mirror of
https://github.com/open-sdr/openwifi.git
synced 2024-12-20 14:13:18 +00:00
18 lines
314 B
Bash
Executable File
18 lines
314 B
Bash
Executable File
#!/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
|