xref: /aosp_15_r20/build/make/banchanHelp.sh (revision 9e94795a3d4ef5c1d47486f9a02bb378756cea8a)
1*9e94795aSAndroid Build Coastguard Worker#!/bin/bash
2*9e94795aSAndroid Build Coastguard Worker
3*9e94795aSAndroid Build Coastguard Worker# locate some directories
4*9e94795aSAndroid Build Coastguard Workercd "$(dirname $0)"
5*9e94795aSAndroid Build Coastguard WorkerSCRIPT_DIR="${PWD}"
6*9e94795aSAndroid Build Coastguard Workercd ../..
7*9e94795aSAndroid Build Coastguard WorkerTOP="${PWD}"
8*9e94795aSAndroid Build Coastguard Worker
9*9e94795aSAndroid Build Coastguard Workermessage='usage: banchan <module> ... [<product>|arm|x86|arm64|x86_64] [eng|userdebug|user]
10*9e94795aSAndroid Build Coastguard Worker
11*9e94795aSAndroid Build Coastguard Workerbanchan selects individual APEX modules to be built by the Android build system.
12*9e94795aSAndroid Build Coastguard WorkerLike "tapas", "banchan" does not request the building of images for a device but
13*9e94795aSAndroid Build Coastguard Workerinstead configures it for an unbundled build of the given modules, suitable for
14*9e94795aSAndroid Build Coastguard Workerinstalling on any api-compatible device.
15*9e94795aSAndroid Build Coastguard Worker
16*9e94795aSAndroid Build Coastguard WorkerThe difference from "tapas" is that "banchan" sets the appropriate products etc
17*9e94795aSAndroid Build Coastguard Workerfor building APEX modules rather than apps (APKs).
18*9e94795aSAndroid Build Coastguard Worker
19*9e94795aSAndroid Build Coastguard WorkerThe module names should match apex{} modules in Android.bp files, typically
20*9e94795aSAndroid Build Coastguard Workerstarting with "com.android.".
21*9e94795aSAndroid Build Coastguard Worker
22*9e94795aSAndroid Build Coastguard WorkerThe product argument should be a product name ending in "_<arch>", where <arch>
23*9e94795aSAndroid Build Coastguard Workeris one of arm, x86, arm64, x86_64. It can also be just an arch, in which case
24*9e94795aSAndroid Build Coastguard Workerthe standard product for building modules with that architecture is used, i.e.
25*9e94795aSAndroid Build Coastguard Workermodule_<arch>.
26*9e94795aSAndroid Build Coastguard Worker
27*9e94795aSAndroid Build Coastguard WorkerThe usage of the other arguments matches that of the rest of the platform
28*9e94795aSAndroid Build Coastguard Workerbuild system and can be found by running `m help`'
29*9e94795aSAndroid Build Coastguard Worker
30*9e94795aSAndroid Build Coastguard Workerecho "$message"
31