android_external_toybox/regenerate.sh
Elliott Hughes 00969f6299 Android: separate the (host) linux and mac configs.
We need to build a few more tools for linux that we're never likely to
be able to build for mac (because there's no API for ps-like stuff).

Bug: http://b/139450866
Test: builds
Change-Id: I781fa5684e125d539bc0dacc41a27360d3763f73
2019-08-22 10:54:26 -07:00

25 lines
476 B
Bash
Executable File

#!/bin/bash
set -e
rm -rf .config generated/ android/
function generate() {
which=$1
echo -e "\n-------- $1\n"
# These are the only generated files we actually need.
files="config.h flags.h globals.h help.h newtoys.h tags.h"
cp .config-$which .config
NOBUILD=1 scripts/make.sh
out=android/$which/generated/
mkdir -p $out
for f in $files; do cp generated/$f $out/$f ; done
rm -rf .config generated/
}
generate "device"
generate "linux"
generate "mac"