NEXUS-7 makefile

在device\asus\grouper\AndroidProducts.mk:
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/aosp_grouper.mk \
$(LOCAL_DIR)/full_grouper.mk

这边好像重复了:
在device\asus\grouper\aosp_grouper.mk:
$(call inherit-product, device/asus/grouper/full_grouper.mk)

PRODUCT_NAME := aosp_grouper

在device\asus\grouper\full_grouper.mk:
# Inherit from those products. Most specific first.
$(call inherit-product, device/asus/grouper/device.mk)
# This is where we’d set a backup provider if we had one
#$(call inherit-product, device/sample/products/backup_overlay.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)

# Discard inherited values and use our own instead.
PRODUCT_NAME := full_grouper
PRODUCT_DEVICE := grouper
PRODUCT_BRAND := Android
PRODUCT_MODEL := AOSP on Grouper

在device\asus\grouper\device.mk:
PRODUCT_PROPERTY_OVERRIDES := \
ro.carrier=wifi-only

PRODUCT_COPY_FILES := \
device/asus/grouper/fstab.grouper:root/fstab.grouper \
device/asus/grouper/init.grouper.rc:root/init.grouper.rc

# the actual meat of the device-specific product definition
$(call inherit-product, device/asus/grouper/device-common.mk)

# inherit from the non-open-source side, if present
$(call inherit-product-if-exists, vendor/asus/grouper/device-vendor.mk)

PRODUCT_PROPERTY_OVERRIDES += \
ro.carrier=wifi-only

DEVICE_PACKAGE_OVERLAYS := \
device/asus/grouper/overlay

在device\asus\grouper\device-common.mk:

ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/asus/grouper/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif