Instantly share code, notes, and snippets.

Embed
What would you like to do?
usb-px4用dkms.conf
PACKAGE_NAME="px4"
PACKAGE_VERSION="1712"
MAKE="xxd -p src/tty_Virtual.ko | tr -d "\n" | sed "s/`echo -n 4.13.0-19-generic | xxd -p | tr -d "\n"`/`echo -n ${kernelver} | tr -d "\n" | xxd -p | tr -d "\n"`/g" | xxd -p -r > tty_Virtual.ko && \
xxd -p src/usb-px4.ko | tr -d "\n" | sed "s/`echo -n 4.13.0-19-generic | xxd -p | tr -d "\n"`/`echo -n ${kernelver} | xxd -p | tr -d "\n"`/g" | xxd -p -r > usb-px4.ko"
BUILT_MODULE_NAME[0]="tty_Virtual"
BUILT_MODULE_NAME[1]="usb-px4"
DEST_MODULE_LOCATION[0]="/kernel/drivers/px4/"
DEST_MODULE_LOCATION[1]="/kernel/drivers/px4/"
AUTOINSTALL="YES"
PACKAGE_NAME="px4"
PACKAGE_VERSION="1712"
MAKE="make *.ko"
BUILT_MODULE_NAME[0]="tty_Virtual"
BUILT_MODULE_NAME[1]="usb-px4"
DEST_MODULE_LOCATION[0]="/kernel/drivers/px4/"
DEST_MODULE_LOCATION[1]="/kernel/drivers/px4/"
AUTOINSTALL="YES"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment