Home | History | Annotate | only in /device/google/contexthub/firmware
Up to higher level directory
NameDateSize
Android.mk22-Oct-20202.4K
app/22-Oct-2020
argonkey_aux_variant_config.mk22-Oct-20203.6K
build/22-Oct-2020
CodingStandard.txt22-Oct-20204.4K
external/22-Oct-2020
firmware.mk22-Oct-20203.3K
firmware_conf.mk22-Oct-2020733
lib/22-Oct-2020
linux_aux_variant_config.mk22-Oct-20201.9K
lunchbox_aux_variant_config.mk22-Oct-20203.8K
MODULE_LICENSE_APACHE222-Oct-20200
nanohub_aux_os_config.mk22-Oct-2020702
neonkey_aux_variant_config.mk22-Oct-20203.7K
NOTICE22-Oct-202013.4K
nucleo_aux_variant_config.mk22-Oct-20203.6K
os/22-Oct-2020
README22-Oct-20201.5K
symcheck.sh22-Oct-20201.3K
toolchain-setup.sh22-Oct-2020753
variant/22-Oct-2020

README

      1 0. ENVIRONMENT SETUP (Common ANDROID and NON-ANDROID builds)
      2 
      3 # Create Android lunch shell and add external toolchain
      4 
      5 bash
      6 . build/envsetup.sh
      7 . device/google/contexthub/firmware/toolchain-setup.sh
      8 lunch <your lunch option>
      9 
     10 # First time you run toolchain-setup.sh it will download and install
     11 # the external toolchain from linaro launchpad.
     12 # Next time it will simply define environment variables for it.
     13 
     14 
     15 1. NON-ANDROID BUILD (unsupported)
     16 
     17 1.1. to build any OS variant, run
     18 
     19 make -C <variant_path>
     20 
     21 # where <variant_path> is relative path to OS variant dir;
     22 # or simply "cd  <variant_path>" and run "make".
     23 # for local variants, variant_path is variant/<variant_name>
     24 
     25 1.2. to build nanoapp, run
     26 
     27 make -C <nanapp_path>
     28 
     29 # where <nanoapp_path> is relative path to nanoapp;
     30 # or simply "cd  <nanoapp_path>" and run "make".
     31 # for local nanoapps, nanoapp_path is app/<app_name>
     32 
     33 
     34 2. ANDROID BUILD
     35 
     36 2.1 to build nanohub OS and all apps
     37 
     38 # execute
     39 make auxiliary -j24
     40 
     41 2.2 Build Artifacts Location
     42 
     43 # Artifacts will be found in
     44 # $OUT/aux/$(AUX_OS_VARIANT)/$(AUX_OS)-$(AUX_ARCH)-$(AUX_CPU)/bin
     45 # e.g. for nanohub OS on STM32 series MCU (ARM cortex m4 core) for Angler this will be in
     46 # $OUT/aux/angler/nanohub-stm32-cortexm4/bin
     47 # where $OUT is lunch shell environment variable
     48 
     49 2.3 partial build or build without dependencies
     50 
     51 # Any app or static library could be built in isolation with
     52 mmm <path-to-module>
     53 
     54 # or, for current path
     55 mm
     56 
     57 # Nanohub OS system image is only built with
     58 m auxiliary
     59