get_cflags.sh

来自「支持linux2.6和linux2.4的ov511摄像头驱动源码」· Shell 代码 · 共 25 行

SH
25
字号
#!/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 + =
减小字号Ctrl + -
显示快捷键?