android C/C++ source files 全局宏定义 .

\system\core\include\arch\linux-arm

AndroidConfig.h

 

 * ===========================================================================
 *                              !!! IMPORTANT !!!
 * ===========================================================================
 *
 * This file is included by ALL C/C++ source files.  Don't put anything in
 * here unless you are absolutely certain it can't go anywhere else.
 *
 * Any C++ stuff must be wrapped with "#ifdef __cplusplus".  Do not use "//"
 * comments.
 */

 

/*
 * Define if we have Linux's inotify in <sys/inotify.h>.
 */
#define HAVE_INOTIFY 1

--------------------------------------------------------

#if HAVE_INOTIFY
        // readNotify() will modify mFDs and mFDCount, so this must be done after
        // processing all other events.
        if(mFDs[0].revents & POLLIN) {
            readNotify(mFDs[0].fd);
            mFDs[0].revents = 0;
            continue; // report added or removed devices immediately
        }
#endif

==============================

 

ifeq ($(BOARD_USES_HDMI),true)
LOCAL_C_INCLUDES += \
    device/samsung/proprietary/libhdmi

LOCAL_SHARED_LIBRARIES += libhdmiservice

LOCAL_CFLAGS     += -DBOARD_USES_HDMI
endif

-------------

\device\samsung\smdkv210\BoardConfig.mk

BOARD_USES_HDMI :=true

BOARD_KERNEL_BASE := 0x30000000
BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_CMDLINE := console=ttyFIQ0 no_console_suspend

 

posted @ 2013-09-05 17:16  莫回头  阅读(749)  评论(0编辑  收藏  举报