⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get_cflags.sh

📁 支持linux2.6和linux2.4的ov511摄像头驱动源码
💻 SH
字号:
#!/bin/sh# This script returns additional CFLAGS, for compiling the ovcam drivers, that# cannot be autodetected easily by the Makefile or the C preprocessor# RedHat 9 and Fedora 1 kernels have a different remap_page_range() signature#  (same as 2.5/2.6 kernel)# Is it a RedHat/Fedora system?if [ -f /etc/redhat-release ]; then	# RedHat _9_ system?	if [ -n "$(grep Shrike /etc/redhat-release)" ]; then		# RedHat kernel?		if [ -n "$(uname -r | sed -n '/2.4.[0-9][0-9]-[0-9]/p')" ]; then			echo "-DRH9_REMAP"		fi	# Fedora 1 system?	elif [ -n "$(grep Yarrow /etc/redhat-release)" ]; then		# Fedora kernel?		if [ -n "$(uname -r | sed -n '/2.4.[0-9][0-9]-[0-9]/p')" ]; then			echo "-DRH9_REMAP"		fi	fifi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -