]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - spl/scripts/dkms.postbuild
scsi: hisi_sas: Implement handlers of PCIe FLR for v3 hw
[mirror_ubuntu-bionic-kernel.git] / spl / scripts / dkms.postbuild
CommitLineData
70e083d2
TG
1#!/bin/sh
2
3PROG=$0
4
5while getopts "a:k:n:t:v:" opt; do
6 case $opt in
7 a) arch=$OPTARG ;;
8 k) kver=$OPTARG ;;
9 n) pkgname=$OPTARG ;;
10 t) tree=$OPTARG ;;
11 v) pkgver=$OPTARG ;;
12 esac
13done
14
15if [ -z "${arch}" -o -z "${kver}" -o -z "${pkgname}" -o \
16 -z "${tree}" -o -z "${pkgver}" ]; then
17 echo "Usage: $PROG -a <arch> -k <kver> -n <pkgname>" \
18 "-t <tree> -v <pkgver>"
19 exit 1
20fi
21
22cp ${tree}/${pkgname}/${pkgver}/build/spl_config.h \
23 ${tree}/${pkgname}/${pkgver}/build/module/Module.symvers \
24 ${tree}/${pkgname}/${pkgver}/${kver}/${arch}/