How to output print facts in Makefile Android.mk file.txt
- richwichmann94ybqy
- Jun 11, 2020
- 2 min read
The strategy of printing the output data within the makefile is: $(warningxxxxx) or $(errorxxxxx) The output variable strategy is: $(warning$(XXX)) Android compilation order Summary Android compilation:
1. The develop.sh script:
The script selects the compiled project depending on the parameters passed in:
One example is, ./build.shXXXsystemimage will enter the if statement mainly because $1=P729B_CN.
if['$1'='XXX']];thensource./$1/customize.sh//Execute custom directory copy script./build_blade.shupdate-api//Generate current.xml file, update api. ./build_blade.sh$2//Compile the version in accordance with the second parameter systemimage passed in. Both: ./build_mooncake.shsystemimage
fi2, build_XXX.sh script
In the above we are able to see that the compilation of your version entered the execution of your ./build_XXX.shsystemimage command. In this script:
sourcebuild/envsetup.sh/dev/null///Set atmosphere variables
choosecomboDevicereleaseXXXeng//Select device
make-j4$1// to compile. That is equivalent to make-j4systemimage. recover partition table , -j4 here selects the amount of compilation in accordance with your machine configuration. Among gparted recover lost partition table , sourcebuild/envsetup.sh/dev/null sets the atmosphere variable, which can be also a parser for mm; choosecomboDevicereleaseXXXeng's choosecombo can be a function that comes with Google. In actual fact, he calls a number of other files right here: choosesim$1 Select the target device choosetype$2 choose the target code format chooseproduct$3 pick out the solution platform (mooncake) choosevariant$4 decide on the version mode set_stuff_for_environment configure through build/core/config.mk printconfig print out the information and facts we just selected when we execute this command, Will print directly
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.1-update1
TARGET_PRODUCT=XXXTARGET_BUILD_VARIANT=user
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ERE27
============================================
And we've no decision, if you'd like to DIY your individual version, you'll be able to directly implement choosecombo to manually select. And we are executing choosesim$1 separately. Within the following function, we see that each time choosesim$1 is executed, set_stuff_for_environment is carried out when.
case`uname-s`inLinux)functionchoosesim()echo'Buildforthesimulatororthedevice?' recover partition table free 'echoexportTARGET_SIMULATOR=localANSWERwhile[-z$TARGET_SIMULATOR]doecho-n'Whichwouldyoulike?[1]'if[ -z'$1'];thenreadANSWERelseecho$1ANSWER=$1ficase$ANSWERin'')exportTARGET_SIMULATOR=false1)exportTARGET_SIMULATOR=falseDevice)exportTARGET_SIMULATOR=false2)exportTARGET_SIMULATOR=trueSimulator)exportTARGET_hoeULed'Idecho' -n'$1'];thenbreakfidoneset_stuff_for_environment*) choosecomboDevicereleasemooncake device This article comes in the Linux Commune site (www.linuxidc.com) original hyperlink: http://www.linuxidc.com/Linux/2011-05/35787.htm
Comments