📄 common.mk
字号:
# Feature variants of realmagichwl_kernelland.o are done using # export REALMAGICHWL_FEATURES=... from the shell, as a collection of:# -DWITH_HAC_SETTINGS=1 (special settings for HAC)# -DWITH_LOGGING=1 (logging for developers)# -DWITH_NO_VERSION_CHECK=1 (bypass RUA version check - for developers only, use at your own risk -)# -DWITH_PROC=1 (/proc/realmagichwl interface)# -DWITH_PCI=1 (support for PCI based probing)# -DWITH_DOLBY=1 (support for hardware AC3 audio decoding)# -DWITH_CSS=1 (support for hardware CSS)# -DWITH_MACROVISION=1 (support for hardware macrovision)# -DWITH_SM2288=1 (support for local bus controlled SM2288 encoder)# -DWITH_SM2288_DIAG=1 (support for SM2288 diagnosis ucode)# -DWITH_SM2288_CHECKSUM=1 (trap corruption of SM2288 generated stream across copies by logging checksums -> not implemented)# -DWITH_CHECK_OSD_RLC=1 (checks that rlc does not overflow osd buffer)# -DWITH_DMA_RESERVED_AREA=1 (do not use pci_alloc/free_consistent --- rather use high addresses in phy ram left unused at boot)# -DWITH_PROGRESSIVE_YUV=1 (displaying YUV pictures in progressive mode)# -DWITH_8MB_AND_OVER=1 (allows enhanced yuvbuf)# -DWITH_DTVCC=1 (handling of DTV close caption. struct hwlprivate +1K)# -DWITH_AC3_FAUP_ADJUST=1 (to be used only when the first access unit pointer info is available in the stream)# to use none of these do: export REALMAGICHWL_FEATURES=" "#ifndef REALMAGICHWL_FEATURES# don't modify these defaults, it _must_ build on stock RedHat7.3# MAKE DOES NOT REQUIRE DOUBLE QUOTES, THE SHELL DOES!!!REALMAGICHWL_FEATURES=\ -DWITH_8MB_AND_OVER=1 \ -DWITH_PROGRESSIVE_YUV=1 \ -DWITH_LOGGING=1 \ -DWITH_PROC=1 \ -DWITH_PCI=1 \ -DWITH_DOLBY=1 \ -DWITH_CSS=1 \ -DWITH_MACROVISION=1 \ -DWITH_SM2288=1 \ -DWITH_CHECK_OSD_RLC=1 \ -DWITH_DTVCC=1endif# Alternate kernel includes (k.i.) or debug options are passed using# export REALMAGICHWL_KI=...# -I/the/place/where/I/built/my/linux-2.4.18/include (alternate kernel)# -I/usr/src/linux-2.4.10/include -g (2.4.10 kgdb)#ifndef REALMAGICHWL_KI# default is to try to build for current running kernel (uname -r), # provided the sources of this kernel are in /usr/src# the second entry is a useful fallback for RH7.2 RH7.3 RH8.0 for SMPREALMAGICHWL_KI=-I/usr/src/linux-$(shell uname -r)/include -I/usr/src/linux-2.4/includeendif# Exotic kernels can override this:ifndef KERNELSTYLE# don't modify these defaults, it _must_ build on stock RedHat7.3KERNELSTYLE= \ -fomit-frame-pointer \ -fno-strict-aliasing \ -fno-common \ -pipe \ -mpreferred-stack-boundary=2 \ -DEXPORT_SYMTABendififeq ($(findstring -DWITH_LOGGING=1, $(REALMAGICHWL_FEATURES)), -DWITH_LOGGING=1)CFLAGS += -D_DEBUG=1 -OelseCFLAGS += -O2endif# _DEBUG is general use but DEBUG is hwl specificifeq ($(findstring -D_DEBUG=1, $(CFLAGS)), -D_DEBUG=1)CFLAGS += endififeq ($(findstring -DWITH_PROGRESSIVE_YUV=1, $(REALMAGICHWL_FEATURES)), -DWITH_PROGRESSIVE_YUV=1)CFLAGS += -DSWG_SPECIAL=1endififeq ($(findstring -DWITH_HAC_SETTINGS=1, $(REALMAGICHWL_FEATURES)), -DWITH_HAC_SETTINGS=1)CFLAGS += -DSHAC_PFGP=1endifHWLINCLUDE = -I$(HWLINCLUDE_LOCATION)/include \ -I$(HWLINCLUDE_LOCATION)/include/qhwinc \ -I$(HWLINCLUDE_LOCATION)/include/qhwinc/boardh \ -I$(HWLINCLUDE_LOCATION)/include/qhwinc/decoderh \ -I$(HWLINCLUDE_LOCATION)/include/qhwinc/tvench \ -I$(HWLINCLUDE_LOCATION)/include/iface \ -I$(HWLINCLUDE_LOCATION)/include/os \ -I$(HWLINCLUDE_LOCATION)/ucode \ -I$(HWLINCLUDE_LOCATION)WAR += -Wno-import \ -Wunused \ -Wimplicit \ -Wmain \ -Wreturn-type \ -Wswitch \ -Wtrigraphs \ -Wchar-subscripts \ -Wuninitialized \ -Wparentheses \ -Wpointer-arith \ -Wcast-align CFLAGS += $(KERNELSTYLE) $(WAR) $(REALMAGICHWL_FEATURES) $(REALMAGICHWL_KI) $(HWLINCLUDE)# Warning: already defined in ../scripts/inc.Makefile.# Need to define here for private & hwlib for cross compilation platformsOBJCOPY = $(CROSS)objcopyifndef CCOMPILER CCOMPILER := gccendifCC := $(CROSS)$(CCOMPILER)LD = $(CROSS)ld
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -