I'm working on Android 6.0 for my image OS.

I was trying to add a config in system/core/init/device.cpp.

What I did is to add a code like below.
Code:
#if defined UBLOX4G
ERROR("winmate victor Ublox 4G array success\n");
.
.
.
#endif
As this request, I add a CFLAGS in system/core/init/Android.mk like below code.
Code:
# Copyright 2005 The Android Open Source Project

LOCAL_PATH:= $(call my-dir)

# --

init_options += -DALLOW_LOCAL_PROP_OVERRIDE=1 -DALLOW_DISABLE_SELINUX=1
LOCAL_CFLAGS +=  -DALLOW_DISABLE_SELINUX=1

ifeq ($(WM_UBLOX_4G),yes)
$(warning "winmate victor ublox yes\n")
LOCAL_CFLAGS += \
        -DUBLOX4G
endif
When I build the image I can see "winmate victor ublox yes" was printed out in the log.

So I'm sure that LOCAL_CFLAGS did add UBLOX4G as a flag.

But when I booting my system I cannot see any log printed out form device.cpp .

Question:
Which step I did wrong to cause device.cpp cannot recognize UBLOX4G?