User's Manual

3
CONFIG_PLATFORM_I386_PC
is selected by default.
We can select an existing entry or add a new entry for your target platform. For
example, to add and select a new entry,
CONFIG_PLATFORM_NEW
:
Second, you should create and/or modify the corresponding entry inside platform
setting section. For example, adding the following entry in platform setting section for
CONFIG_PLATFORM_NEW
we just add:
4.2.
Platform Setting Section in Detail
l EXTRA_CFLAGS
The EXTRA_CFLAGS is usually used to carry some additional settings at
compilation time through macro definitions.
Macro Effect
CONFIG_BIG_ENDIAN Define some internal data structure as big endian.
CONFIG_LITTLE_ENDIAN Define some internal data structure as little endian.
CONFIG_MINIMAL_MEMORY_USAGE For better performance in powerful platform, we
allocate large physical continuous memory as TX/RX
IO buffers. In some embedded platform, there is
chance to fail to allocate memory. Define this macro to
prevent this situation.
CONFIG_PLATFORM_ANDROID Older Android kernel do not has CONFIG_ANDROID
defined. Define this macro to force the Android
corresponding code inside our driver to be compiled.
For newer Android kernel, it has no need to define this
macro, otherwise, warning message about redefinition
will show up
ifeq ($(CONFIG_PLATFORM_NEW), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
ARCH := arm
CROSS_COMPILE := /opt/ new/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
KSRC := /opt /new/kernel
endif
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_NEW = y