Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO-NOT-MERGE] #5

Open
wants to merge 189 commits into
base: master
Choose a base branch
from
Open

Conversation

raghupatelraj
Copy link

@raghupatelraj raghupatelraj commented Jul 11, 2018

Jira: OAM-66463
Test: None
Signed-off-by: rugnathr rugnath.ram@intel.com

bobjunior and others added 30 commits March 13, 2014 10:42
Scripts to create fastboot image and bootloader binary from
target file zip.  Utilizes and couples tightly with
build/tools/releasetools.

Issue: ADEV-453
Change-Id: Ib3a15744f48b8cfdd7927e7d4deac1bcc8f2ee21
Signed-off-by: Robert Beatty <robert.m.beatty@intel.com>
Reviewed-on: https://android.intel.com/169637
Reviewed-by: Uyyala, Sridhar <sridhar.uyyala@intel.com>
Tested-by: Parkinson, TimothyX L <timothyx.l.parkinson@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Tested-by: Boie, Andrew P <andrew.p.boie@intel.com>
Provides a cli tool 'generate_factory_images.py' for use during
release builds. Generates flash scripts and archives them with
fastboot images for distribution.

usage: generate_factory_images.py [-h] --product PRODUCT --release
                                  RELEASE
                                  [-b BOOTLOADER] [-r RADIO] [-f
                                  FASTBOOT]
                                  [-u UPDATE_ARCHIVE] [-i INPUT [INPUT
                                  ...]]
                                  [--fastboot-args FASTBOOT_ARGS] [-e]
                                  [-s SLEEPTIME] [--no-checksum] [-o
                                  OUTPUT]

Generate archive for fastboot factory installations.

optional arguments:
  -h, --help            show this help message and exit
  --product PRODUCT     Product name, e.g. hammerhead
  --release RELEASE     Release name, e.g. krt16m
  -b BOOTLOADER, --bootloader BOOTLOADER
                        Bootloader image for fastboot flash
  -r RADIO, --radio RADIO
                        Radio image for fastboot flash
  -f FASTBOOT, --fastboot FASTBOOT
                        Fastboot image for fastboot flash
  -u UPDATE_ARCHIVE, --update-archive UPDATE_ARCHIVE
                        Zipped images for fastboot update
  -i INPUT [INPUT ...], --input INPUT [INPUT ...]
                        Add additional files to archive
  --fastboot-args FASTBOOT_ARGS
                        Add additional fastboot arguments, e.g -t
192.168.42.1
  -e, --erase           Erase partitions before fastboot update
  -s SLEEPTIME, --sleeptime SLEEPTIME
                        Sleep in seconds for fastboot reboot, default=5
  --no-checksum         Remove SHA-1 checksum from archive filename
  -o OUTPUT, --output OUTPUT
                        Output directory for archived factory scripts

Issue: ADEV-453
Change-Id: Iee06da37cf4a3285b13c22cfd166d252f4729585
Signed-off-by: Robert Beatty <robert.m.beatty@intel.com>
Reviewed-on: https://android.intel.com/169638
Reviewed-by: Uyyala, Sridhar <sridhar.uyyala@intel.com>
Reviewed-by: Phillips, Scott D <scott.d.phillips@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Tested-by: Boie, Andrew P <andrew.p.boie@intel.com>
Provides install archive with boot images and flash scripts to restore
factory images.

$ make factoryscripts

Issue: ADEV-453
Change-Id: I24fc00b108fc9c870084e03d47fe550cf87ba6cb
Signed-off-by: Robert Beatty <robert.m.beatty@intel.com>
Reviewed-on: https://android.intel.com/160064
Tested-by: sys_abtbuild <sys_abtbuild@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
Reviewed-on: https://android.intel.com/169587
Tested-by: Boie, Andrew P <andrew.p.boie@intel.com>
Change-Id: I85b783dfcb4276a12761eabae775eb62a613c4e8
Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
Reviewed-on: https://android.intel.com/173972
Reviewed-by: Parkinson, TimothyX L <timothyx.l.parkinson@intel.com>
Tested-by: Parkinson, TimothyX L <timothyx.l.parkinson@intel.com>
Reviewed-by: Villalovos, John L <john.l.villalovos@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Reviewed-by: Uyyala, Sridhar <sridhar.uyyala@intel.com>
Change-Id: I170d94bd71574d290b092534af4aa10225367615
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/174639
Reviewed-by: Uyyala, Sridhar <sridhar.uyyala@intel.com>
Reviewed-by: Kumar-mayernik, Nisha <nisha.kumar-mayernik@intel.com>
Reviewed-by: Beatty, Robert M <robert.m.beatty@intel.com>
This provides the 'publish' and 'publish_ci' makefile targets.

PUBLISH target:
    NOTE: When using the 'publish' target you MUST also use the 'dist'
    target.  The 'dist' target is a special target and unfortunately
    we can't just depend on the 'dist' target :(
        e.g. 'make dist publish'
        e.g. 'make droid dist publish'

    DO NOT DO: 'make publish' as it will not work

PUBLISH_CI target:
The 'publish_ci' target may be called by itself as it has a dependency on the one file we need.
    e.g. 'make publish_ci'

Change-Id: Icadbf69d08ee9f9149ab1c7a68bb6a54eaa10786
Signed-off-by: John L. Villalovos <john.l.villalovos@intel.com>
Reviewed-on: https://android.intel.com/177485
The way that Fastboot and EFI System Partition deliverables are
stored in the EFI system partition has changed. There are now
various zip and text files in the TFP under RADIO/ which have
the components to assemble these images. We have some new scripts
to create images from the target-files-package, as follows:

 bootloader_from_target_files: Create a VFAT EFI system partition
     image from the TFP

 fastboot_from_target_files: Create a fastboot boot image from
     the TFP

Both of these scripts live under releasetools/ as they are critical
for creating signed release artifacts from a TFP. All other scripts
now live in the root of this repo.

There is now a bootloader_from_zip script which is used by the build
system to create the ESP image, without a TFP as intermediary.

A new intel_common.py library contains frequently used functions
for creating fastboot and ESP images.

The generate_factory_images script has been extensively modified.
It now provides three scripts for partial or complete provisioning
of the device. There is now a new script included specifically for
CI runs that does not disturb any of the installed non-AOSP components.
A factory zip with testing keys is now populated with 'make dist'.

Makefiles and supportings scripts for the old way of updating the
EFI system partition have been removed

Depends-Change-Id: Id2e1eae6e707f97e4a1ed00c91d6d7073bc21312
Depends-Change-Id: I9f37836224b972430275932b50d96f869985dfc5
Depends-Change-Id: I83ae9b0129a085c30fdce4d0237397cf3e38ab7a
Change-Id: I7d4c99ba44dcc495704b58e69dbca5e09ef86b2b
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/177502
We need to support multiple lunch targets, some of which will not
produce the flashall image target.

In those cases we will no longer error out.  Instead we will check to
see if the flashall image file will be produced, if it is we will update
it.  If not we will skip the step of updating the image file with the
flash.json file.

Change-Id: Iaf3a683677c514e00ae791d08584066913c1dfb0
Signed-off-by: John L. Villalovos <john.l.villalovos@intel.com>
Reviewed-on: https://android.intel.com/177796
Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
Have the emulator file also be copied to pub/ when using the publish_ci
target.  This is so the test teams can test the emulator.

Change-Id: I409a1bf2f2d2a5e7c1204fbdcf38f200a9e8cd6d
Signed-off-by: John L. Villalovos <john.l.villalovos@intel.com>
Reviewed-on: https://android.intel.com/182456
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Reviewed-by: Zhang, Jianxun <jianxun.zhang@intel.com>
Reviewed-by: Beatty, Robert M <robert.m.beatty@intel.com>
Reviewed-by: Uyyala, Sridhar <sridhar.uyyala@intel.com>
Tested-by: Uyyala, Sridhar <sridhar.uyyala@intel.com>
Unchanged from the version in ABT.

Change-Id: Ibd949bb3b9ffde335326f15bcad3ce2bc0e2fc9a
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/181347
Tested-by: Abbas, Mohamed <mohamed.abbas@intel.com>
Change-Id: I642beae82724262b473566d533c916434815151e
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/181348
TODO: create provisioning media (i.e. factory archive) from the TFPs

Change-Id: I828054203bf04dc23eb350b492ddfba5f71dca68
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/182191
We need this so that we can create a bootable Fastboot USB
stick signed with production keys.

The logic to create $OUT/fastboot-usb.img has also been
re-implemented to use this infrastructure.

Change-Id: I5dbef4e1f330b1e9839b01c8da939561ee5e6d29
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/182545
Reviewed-by: Zhang, Jianxun <jianxun.zhang@intel.com>
The --fastboot-args option is removed. Its only use-case was to hardcode
some IP address information in the resulting scripts.

Now all the scripts will pass any additional command line arguments
passed in directly to the Fastboot command. We need this to support
DHCP ethernet scenarios where the device's IP address is not known
a priori.

Change-Id: I16c8f5823464ba46ed25d95d3838bae595febd7a
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/182782
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Phillips, Scott D <scott.d.phillips@intel.com>
Tested-by: cactus <cactus@intel.com>
The device reboots now after this operation unless there is no
data partition at all.

Change-Id: Idb37200f063bb5b75b0205f57463bcb8361c4c73
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/183288
Reviewed-by: cactus <cactus@intel.com>
Also add missing 'import shlex' which was causing issues if
custom mkbootimg arguments were specified.

Invocations of the scripts by the build system now done with
--verbose.

Change-Id: Idf73719df26d0bc2751d9d209e86d3c0c98f0bb0
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/184202
Reviewed-by: cactus <cactus@intel.com>
  * Add /sbin/ to the PATH when doing the mkdosfs command

  * For all uses of common.Run() wrap them in a try/except and print the
    command line if it fails to assist with debugging.

  * Also ran autopep8 on the file to fix PEP8 issues.

Change-Id: Id91bfd5a59152e989624bfcab45e47a7d07a767f
Tracked-On: https://jira01.devtools.intel.com/browse/GMIN-186
Signed-off-by: John L. Villalovos <john.l.villalovos@intel.com>
Reviewed-on: https://android.intel.com/183746
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Kumar-mayernik, Nisha <nisha.kumar-mayernik@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Reviewed-by: Uyyala, Sridhar <sridhar.uyyala@intel.com>
The factory image (e.g. out/dist/gmin-om-factory.tgz) is needed for
flashing our systems.

Add it to the publish_ci target so people can test the intermediate
builds.

Change-Id: Iff7712cbb54dd157fb9e69d8f8ceff279c867819
Signed-off-by: John L. Villalovos <john.l.villalovos@intel.com>
Reviewed-on: https://android.intel.com/184301
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Uyyala, Sridhar <sridhar.uyyala@intel.com>
Tested-by: Uyyala, Sridhar <sridhar.uyyala@intel.com>
sign_target_files_bootimages is used in production key
workflows to create prebuilt boot images in the destination
target-files-package that are signed with a production key.
Releasetools will favor the prebuilts if it finds them in the
archive.

sign_target_files_efis allows for re-signing EFI binaries that
go into the bootloader partition and the bootable Fastboot USB
image. It also can replace a built-in certificate in the shim,
or replace the current shim with a new one provided on the
command line.

- intel_common.GetFastbootImage() amended to communicate a
  password if supplied

- GetBootableImage() and BuildBootableImage() copied from AOSP
  releasetools and amended to communicate a password if supplied

- some extra slashes removed from pwfile that shouldn't be there

Depends-Change-Id: Ib01b2e826ca522db88f1d6af9bfa1f534eb72cc0
Change-Id: Ie7a92e91c6dca4804aae7584cc376e25b249630c
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/185312
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
 - Filenames inside the archive are now 'stable' and do
   not depend on what the source files are named. The
   --input parameter now takes a <src>=<dest> pair

 - The "fastboot reboot-bootloader" in between flashing
   the base stuff and "fastboot update" is removed as it
   isn't necessary

 - There are now two 'fastboot boot' commands in flash-ci.sh.
   The first enters the current Fastboot image from whatever
   old version happens to be on the DUT. The second verifies
   that 'fastboot boot' still works in the new image.

 - The output file is now specified on the command line,
   which plays much nicer with how GNU Make works.
   The --no-checksum option removed as it isn't relevant
   any more.

Change-Id: Iaa42b2022c354a6ef4d7724f6d353eaa9e01e7bc
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/186454
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
- Fix issue with unnecessary slashes in pwfile
- Set MKBOOTIMG so mkbootimg_secure is used
- -c option removed, always do 'make installclean'
- -t option added, re-sign a TFP and generate OTAs and
  factory images with it instead of doing builds
- sign_tfp extended to sign boot images and EFI binaries
- build_provimg now creates factory archives
- Use ANDROID_CONSOLE to force binary changes in A and B
  boot images
- -j removed, very fragile and didn't save much time

Change-Id: I6f4aa3cb79911c96621c24be4e0460d4a3ff23b6
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/186455
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
Reviewed-by: Leibowitz, Michael <michael.leibowitz@intel.com>
This script accepts a path to a target-files-package as its only
parameter. It then communicates over the device and verifies the
hashes of all the boot images and files in the EFI System Partition
and /system.

We can use this script to assert that a device was provisioned or
updated OTA correctly.

Change-Id: I6d0a7e224fd66c8e27197d7f7c1bab8623d3be54
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/188757
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Bergeron, Michael <michael.bergeron@intel.com>
The emulator doesn't work through the normal build.  So we have to get
the emulator from the SDK build.

Change-Id: I664525616a0c1eac6e583ca7ff138e447ddfcfcb
Signed-off-by: John L. Villalovos <john.l.villalovos@intel.com>
Change-Id: If46c1b837f552819f7591adf5e8b735cba780106
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/190598
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Bergeron, Michael <michael.bergeron@intel.com>
The original version of this script generates 2 source builds and
generates necessary signed artifacts for running the OTA test cases.
However, when QA tests releases, they would prefer to test with
the current N and N-1 releases.

The -t command accepts a target-files zipfile as input and goes
through all the signing and image generation procedure with it.
In this way, this script can be invoked twice (with release N
and release N-1) to generate the A and B needed for the OTA test
cases.

Other minor fixes:

- Online help improved
- getopt options corrected
- Cleanup changed files in EFI prebuilt dirs

Change-Id: I84895b0cc5215d677b928a5be36a35f5e55e7b7b
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/190599
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Bergeron, Michael <michael.bergeron@intel.com>
Reviewed-by: Pepper, Timothy C <timothy.c.pepper@intel.com>
The fastboot and adb binaries are now published in the publish_ci make
target.

Change-Id: I8373c50de679316f5461e54cff0a988fff07fb72
Signed-off-by: John L. Villalovos <john.l.villalovos@intel.com>
- When doing official build tests, instead of specifiying an output
directory, specify a build name and put images in ota/
- No need to run 'lunch' when doing official build tests

Change-Id: I03d18c05087105f0bfb766e85ba57ab570f313a4
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/192859
This creates a bootable USB image that enters an Android GUI.

Change-Id: Ic8c49009d44cb4baabc4cacd4de99aa8bf005535
Depends-Change-Id: Idec6c7c9d3d6350cbf4821c43be508a9969404a4
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/203550
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
These are adapted from scripts found in AOSP
device/lge/hammerhead/self-extractors.

Change-Id: I51c213e7ee3b6e257b1cf1bff97b68f4b7c8202c
Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
Reviewed-on: https://android.intel.com/206660
This space can be useful for dropping in additional utils, logs, files,
etc. to an already-flashed fastboot-usb thumbdrive.

Change-Id: I165ec654867aafd6b84d237f1ea6eae8fcf89a67
Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
Reviewed-on: https://android.intel.com/211171
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Tested-by: Boie, Andrew P <andrew.p.boie@intel.com>
Francois-Nicolas Muller and others added 25 commits September 14, 2015 22:36
Script is not adding remaining files of the list when the previous ones
are already added.
Fix : Continue the loop instead of aborting it (return instruction)

Change-Id: Ie8d952d1b05850bf3bc882493fb8cece0bce2a01
Signed-off-by: Francois-Nicolas Muller <francois-nicolas.muller@intel.com>
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-9040
Reviewed-on: https://android.intel.com/365057
Reviewed-by: Fradin, Benoit <benoit.fradin@intel.com>
Tested-by: Fradin, Benoit <benoit.fradin@intel.com>
Reviewed-by: Chouleur, Sylvain <sylvain.chouleur@intel.com>
Reviewed-by: Rouis, KhalifaX <khalifax.rouis@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Tested-by: Boie, Andrew P <andrew.p.boie@intel.com>
build_blobstore.py has been rewritten, with extensive documentation in
the online help.

The code to load a device mapping file has been migrated to intel_common
as it's used here and in ota_deployment_fixup.

Change-Id: I67dc2dcb93648e59d8a64881642f03b966ff8b93
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/375132
Reviewed-by: Chouleur, Sylvain <sylvain.chouleur@intel.com>
Reviewed-by: Compostella, Jeremy <jeremy.compostella@intel.com>
The existing blobstore implementation had some issues which were simpler
to resolve with a redesign:

- Adding new blob store types broke compatibility as it changed the size of
  data structures
- Hashes for efficient lookup weren't encoded in the data and had to be
  computed at runtime
- The codebase was very large considering what it really needed to do.

The docstring for blobstore.py describes the new data structure format in
detail.

In addition we add support for a new blobstore data type "bootvars" which
are added to the kernel command line on a per-board basis.

Issue: GMINL-7582, GMINL-5555
Change-Id: Ibfa5990e5b0669702bbb67c43d6174f31fc4286a
Depends-Change-Id: Ia7f6e37de74fc80b732c2f588c8e6ea77dc5f3a4
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Reviewed-on: https://android.intel.com/376586
Reviewed-by: Chouleur, Sylvain <sylvain.chouleur@intel.com>
Change-Id: Ib25bfb9ecfb52098c313c08b6e58295e01bd5e27
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-8444
Signed-off-by: Jocelyn Falempe <jocelyn.falempe@intel.com>
Reviewed-on: https://android.intel.com/366490
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Tested-by: Boie, Andrew P <andrew.p.boie@intel.com>
This patch adds a "configurations" field in "output" section to
determine the configuration set which need to be included in the
corresponding output file.
This allows to have different configurations in multiple flashfiles.

Change-Id: Ib68ced8a6b17a21426d2271595cb361ea5bd2346
Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-11810
Signed-off-by: Sylvain Chouleur <sylvain.chouleur@intel.com>
Reviewed-on: https://android.intel.com/382896
Reviewed-by: Fradin, Benoit <benoit.fradin@intel.com>
we will update this folder with new ones

bug ID: none
test: make sure it compiles without issues

Signed-off-by: Carlos Santa <carlos.santa@intel.com>
include build makefiles as part of kernelflinger

Bug Id: https://github.com/android-ia/device-androidia/issues/2
Test: Compiles without issues

Signed-off-by: Ragha Khandenahally <Ragha.Khandenahally@intel.com>
Tested-by: Carlos Santa <carlos.santa@intel.com>
…ld dir

The changes to enable kernelflinger require device/intel/build as the
main dir for building stuff.

Bug Id: https://github.com/android-ia/device-androidia/issues/2
Test: compiles without issues

Signed-off-by: Carlos Santa <carlos.santa@intel.com>
The changes to kernelflinger require device/intel/build as the
main dir for building stuff

Bug Id: https://github.com/android-ia/device-androidia/issues/2

Signed-off-by: Carlos Santa <carlos.santa@intel.com>
JIRA: AIA-406
Test: Device boots to Home screen.
      Device boots to fastboot & recovery mode.
      FDR happens fine.

Signed-off-by: tanminger <ming.tan@intel.com>
To solve compile issue for generating incremental ota package.

JIRA : AIA-409
TEST : Create incremental ota package

Signed-off-by: xihua.chen <xihua.chen@intel.com>
This code is copied from Cherry Trail used.
2ndstage currently is used for store oemvar.

JIRA: AIA-415
Test: 1) Flash BIOS. It will clear the efi var.
      2) At the first time bootloader startup (userdebug build),
         check for “Setting oemvar: MagicKeyTimeout” in serial logs

Signed-off-by: tanminger <ming.tan@intel.com>
For script generate_blpolicy_oemvars, can generate only OAK or BPM,
also support generate both of OAK and BPM.

The old code always generate OAK and BPM at the same time.

Jira: None.
Test: Test it on Linux.
      Can generate only OAK, BPM, OAK + BPM.

Signed-off-by: Ming Tan <ming.tan@intel.com>
When compile with "make dist", there is an error as below.
ninja: error:'device/intel/build/testkeys/testkeys_lockdown.txt', needed
by 'out/dist/test-keys_efi_lockdown.txt', missing and no known rule to
make it

Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
When compile with "make dist", an error occurs as below.
ninja: error: 'device/intel/build/testkeys/unlock.txt', needed by
'out/dist/efi_unlock.txt', missing and no known rule to make it

Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
Signed-off-by: Ming Tan <ming.tan@intel.com>
These files are used in OTA and resign binaries.

Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
… test

Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
…eys" test

Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
It fails in "make -j89 otatools" when excute device/intel/build/test/
ota-test-prepare for "resign binaries"

Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
In ota-test-prepare, it needs generate_otas to generate OTA package.

Jira: None.
Test: Test it on KBL-NUC.

Change-Id: I5b7e82c69dde63779828969ebcfd1a0a596d4b12
Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
sign_target_files_efis is copied from golden peak in android/master.

Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
Copy original ota-test-prepare from android/master.
Remove sign_target_files_apks option replace_verity_public_key and
replace_verity_private_key to solve creating system.img issue in
CreateImage(): AssertionError: build system.img image failed.
Remove sign_target_files_efis option oem-key $PRODKEYS/verity and
key-mapping loader.efi=$PRODKEYS/DB for not resigning loader.efi.

Jira: None.
Test: Test it on KBL-NUC.

Change-Id: I87190223f7b5ff721a3d9ca93fde8c5de8c0ddca
Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
UEFI BIOS key is not resigned in current version.

Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
If allowZip64 is False, there will be exception for large files more than 4GB.
Exception: zipfile.LargeZipFile: Zipfile size would require ZIP64 extensions.

Jira: None.
Test: Test it on KBL-NUC.

Signed-off-by: Zhou, Lihua <lihuax.zhou@intel.com>
@android-ia-srv
Copy link

Commit message is verified for commit id: 5fa87a2

Jira: OAM-66463
Test: None
Signed-off-by: rugnathr <rugnath.ram@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.