aosp 10 qiushao
new product
new directory
device/[company]/[device]
[device]
is your PCBA name. product is your software.
mkdir -p device/qiushao/pure
lunch
--> COMMON_LUNCH_CHOICES := pure-eng
(AndroidProducts.mk)
--> PRODUCT_MAKEFILES := $(LOCAL_DIR)/pure.mk
(AndroidProducts.mk)
--> PRODUCT_DEVICE := pure
(pure.mk)
--> device/[company]/pure/BoardConfig.mk
==> out directory: PRODUCT_NAME := pure
(pure.mk)
vim AndroidProducts.mk
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/pure.mk
COMMON_LUNCH_CHOICES := \
pure-eng
vim pure.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_x86_64.mk)
PRODUCT_NAME := pure
PRODUCT_DEVICE := pure
vim BoardConfig.mk
include $(SRC_TARGET_DIR)/board/generic_x86_64/BoardConfig.mk
tree
.
└── pure
├── AndroidProducts.mk
├── BoardConfig.mk
└── pure.mk