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