blob: eab22e4f953d3114b3860c9aa56e609341db0f48 [file] [log] [blame]
Martin Stjernholmf692c752021-04-12 00:01:10 +01001#!/bin/bash
2
3# locate some directories
4cd "$(dirname $0)"
5SCRIPT_DIR="${PWD}"
6cd ../..
7TOP="${PWD}"
8
Martin Stjernholm2b8d9232021-04-16 20:45:03 +01009message='usage: banchan <module> ... [<product>|arm|x86|arm64|x86_64] [eng|userdebug|user]
Martin Stjernholmf692c752021-04-12 00:01:10 +010010
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
Martin Stjernholm2b8d9232021-04-16 20:45:03 +010022The 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
Martin Stjernholmf692c752021-04-12 00:01:10 +010027The 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"