在执行完
root@s-virtual-machine:Android-2.3.1# cp build/buildspec.mk.default buildspec.mk
编辑之
ifndef TARGET_PRODUCT
TARGET_PRODUCT:=full_mini210
endif
怎么是full_mini210?因为源码目录下有个setenv文件,记录了执行完编译完源码之后输出在out/target/product/ smdkv210/
#!/bin/bash
CPU_JOB_NUM=$(grep processor /proc/cpuinfo | awk '{field=$NF};END{print field+1}')
PRODUCT='full_mini210'
source build/envsetup.sh
TARGET_PRODUCT=$PRODUCT
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_VARIANT=eng
export PATH TARGET_PRODUCT TARGET_SIMULATOR TARGET_BUILD_TYPE TARGET_BUILD_VARIANT
源文件
external/hello/hello.c
输出
out/target/product/smdkv210/system/bin