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

[CELADON] Integrate EFI shell in flashfiles zip #34

Open
wants to merge 510 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
510 commits
Select commit Hold shift + click to select a range
bb44777
Merge AOSP M-dessert changes into EDSS signing tools variant
mdwood-intel Sep 8, 2015
5a7e349
sign_target_files_efis: remove keystore support
jeremy-compostella Sep 9, 2015
f2887b7
Make ini flashfiles more generic
Sep 8, 2015
3f92b0e
flash-update: add new option to apply update via sideload
Sep 2, 2015
4443337
Publish kernel and system symbols
Apr 20, 2015
4b5c485
build: Adapt for Sofia3GR garnet
crao6 Sep 17, 2015
39174ed
fast_flashfiles, add support for sofia
Aug 11, 2015
b2f5b63
Add script to generate images used to validate gvb
Sep 11, 2015
e96a099
Publish D0 SOc Binaries for T4 RVP
Oct 12, 2015
1fc4dfd
Refactor parser code to be compliant with any configurations
gnassiet Aug 7, 2015
3366319
flash-update: Fix dutID lookup
Oct 14, 2015
c468a23
Correct path to retrieve modules and publish them
Oct 12, 2015
f80e0f2
blobstore.py: Encode metablock's key to str
Jul 28, 2015
9a0a333
releasetools: when building fls files, read fftf_opt from provdatazip
Aug 7, 2015
a1400eb
releasetools, fftf: Generate variant options for all files from provdata
Aug 27, 2015
3ec902a
Changed to support for sofia multiple firmware builds. For sofia,
davelintel Oct 20, 2015
dd1d8c7
Changed to use option name 'args' instead of 'arg' which has been
davelintel Oct 22, 2015
d89462f
Fix additional-files for variants
Oct 22, 2015
1103546
make generate_blpolicy_oemvars independant
jeremy-compostella Oct 13, 2015
575a32e
new build target platform_rma_tools
jeremy-compostella Oct 14, 2015
35244b3
sign_target_efis: Wrap zipfile.write(), writestr() and close()
Oct 23, 2015
2586d08
sofia build: Phone Flash Tool fastboot flash support
Aug 24, 2015
5df8542
publish: do not publish prebuilt kernel symbols
Oct 28, 2015
2a5f41c
Add a shutdown after update option
Oct 23, 2015
916f0bc
Revert "add FlsTool as proper module"
Aug 6, 2015
0017a71
Fix variants flashfiles generation for Broxton
Oct 1, 2015
7d7dbe8
installer.cmd: support variants
Nov 2, 2015
9b39e81
Enable verify_from_target_files for Sofia.
anikulk Jul 30, 2015
b150c4b
Obtain partition information from flashfiles_fls.json
anikulk Aug 14, 2015
e82efce
fftf_build.opt is moved to provdata
anikulk Sep 9, 2015
2c42d24
Make flashfiles_from_target_files script compliant with FLS
gnassiet Aug 19, 2015
7665dce
ota: enable verify_from_target_files for sofialte
xihua-chen Nov 6, 2015
b5eb987
Make firmware_info.txt variant specific
Nov 6, 2015
11a8a2f
Publish D0 SOc Binaries on buildbot for T3
Nov 16, 2015
cad5b2e
Add the variant suffix in flash.json
Nov 12, 2015
5b3990d
Allow variants to override flashfiles.ini files
Nov 9, 2015
d4f9892
blobstore: Don't shrink fish name if not present
Nov 16, 2015
94863bc
flashfiles: generate file list by variant
Nov 16, 2015
170268b
iniparser: allow to remove some sections/options
Nov 16, 2015
b85f3b7
Fix KW bug about ecss_signtools in Utils.java and SignApk.java
Nov 20, 2015
cb5fd21
Fix path declaration in flashfiles
gnassiet Oct 29, 2015
ef8467c
Add script to unpack rsci table and print in a human readable format
Sep 24, 2015
4e6268f
Define kernel_dtb target
crao6 Oct 27, 2015
b178673
fastboot-test-prepare: add support for sofia
Sep 8, 2015
734ffbc
Add MV configuration option in fastboot-test-prepare
gnassiet Nov 24, 2015
9ddcf78
Add target checkvendor
bpujol Oct 15, 2015
2790d84
Condition Fast flashfile generation with flag
crao6 Nov 11, 2015
68fccf9
Publish the OS Agnostics symbols on Artifactory
Nov 26, 2015
4bf170b
Handle info file in flashfiles
Nov 10, 2015
64514d2
Support kernel that built from source.
davelintel Nov 29, 2015
9b7013f
bootloader: allow to specify the block size
Dec 3, 2015
6b54e32
Added dependencies on all variants' dtb files so
davelintel Dec 9, 2015
088e039
Correct the units in the error message where the image is too large f…
Dec 4, 2015
c954f6c
blobstore: take fishname from TARGET_PRODUCT_FISHNAME
Dec 3, 2015
b69c46f
Fix ota block_size
Dec 10, 2015
f053ec5
Fix false positive in checkvendor.py
bpujol Dec 14, 2015
8319c37
Use common.ZipWrite when file is larger than 2GiB
Dec 10, 2015
c63906b
OTA: move sofialte check configure into TFP
xihua-chen Nov 19, 2015
106d2ea
build: add target platform_rma_tools for sofia
Dec 10, 2015
ea1d3e7
Publish OSAgnostic tag under pub/
Dec 14, 2015
40ea359
Fix timestamp format passed to sign-efi-sig-list
Dec 28, 2015
197dab4
platform_rma_tools : publish package if present
Jan 5, 2016
5b9bef3
Allow variants to have additional files
Jan 4, 2016
4b2bb84
Add variants support in ota-test-prepare for all platforms
Nov 12, 2015
ef344ee
[REVERTME] Revert "flash-update: Fix dutID lookup"
Jan 5, 2016
3ee55d2
Add cfgpart.xml as flashfile additional files
Jan 6, 2016
918d792
Move test related script to test/ directory
Dec 1, 2015
450dd9f
VRL: need omit vrl check when adding vrl.fls
xihua-chen Nov 27, 2015
1df3eb6
Unzip only RADIO/ dir from target files package
Jan 7, 2016
fcb1657
ota_deployment_fixup: don't unzip ota file
Jan 8, 2016
db9124f
ota_deployment_fixup: speedup OTA update contents
Jan 11, 2016
23a5b7b
rma tools: update secure VM tools path
Jan 11, 2016
5cfff42
Fix ota-test-prepare
Jan 14, 2016
d9dd337
Publish CMCC images
crao6 Jan 13, 2016
d6d3e96
Fix get_auth_data
Jan 18, 2016
56ce8cd
add a hook for checking if modules are installed in vendor
bpujol Jan 18, 2016
24a89f1
Fix some bugs & rename the script dump_rsci_table.py
Jan 20, 2016
b7f83ff
Clone a new build target from garnet to integrate/test Kernel 4.1 and…
Jan 22, 2016
bc7f5b5
Change the attributes of vrl for PUPDR
Jan 19, 2016
8c4769e
Deprecated v2.30 of FlsTool
bgeltz Feb 2, 2016
587ad7d
remove d0 capsule as it will be replace by 'super_capsule'
Jan 29, 2016
1b8596a
Add Sofia3GR specific ota fixup changes.
anikulk Oct 13, 2015
faa8442
Change lock/unlock command to match with fastboot
Feb 2, 2016
d9d05d4
Publish symbols when OSAG built from sources
Jan 4, 2016
7f5a203
openssl project has been moved
jeremy-compostella Feb 2, 2016
88c6685
Move checks on vendor to dedicated makefile
bpujol Feb 10, 2016
9bfefbc
Add rule to check LOCAL_MODULE_TAGS
bpujol Feb 9, 2016
f04f4c6
BXT: include fw_update in blank procedure
Jan 11, 2016
6d2b4df
OTA dummy file generator
Jan 21, 2016
c7eefd0
Add secure signing scripts for Sofia FLS files
mdwood-intel Nov 20, 2015
2ff36f8
Simplify reading of fwu_image from provdata.zip
anikulk Feb 13, 2016
2829d02
publish windows tools
Feb 23, 2016
7674048
Add script to generate OTA files
Jan 12, 2016
2f57adf
Generate different system.fls for different operators
Mar 3, 2016
fab6e87
efi: Allow common symbols at link
Feb 23, 2016
b4ab6a9
build_blobstore: add missing newline
uniemimu Mar 9, 2016
fe16061
ota-test-prepare: generate_otas does not support --block option
Mar 16, 2016
6fc0798
Replacing deprecated getObjectId with getAlgorithm
Guilhem23 Mar 9, 2016
8efc8e3
publish windows tools for each target
Mar 11, 2016
0acb64f
Merge remote-tracking branch 'remotes/origin/feature/m_mr0/camera/ICG…
weitao1 Mar 22, 2016
9286bad
Merge commit '0acb64fab9c4f0c943ebb1fd9b1095d3c4faa6aa' into HEAD
nehapand1 Mar 23, 2016
5062159
disable CLANG for EFI program
jeremy-compostella Mar 22, 2016
809d903
crt0 efi is no more a prebuilt
jeremy-compostella Mar 23, 2016
7745c52
Merge branch 'android/master-latest/660' into n/mr0/master
Guilhem23 Apr 5, 2016
127533d
Add an exception in checkvendor.py if no *.mk is found
Apr 6, 2016
4c6a715
Fix publish_kernel_debug with ckati.
Apr 22, 2016
26fa825
Fix publish_dest regression
Apr 22, 2016
c435862
Merge branch 127533d63c7348901245b1f8108f52ae9f610927 into android/n/…
nehapand1 Apr 25, 2016
c6cbaf3
create_gpt_image.py: generate aleatory guid
jeremy-compostella Apr 15, 2016
7272764
Remove empty groups in JSON file
Apr 12, 2016
f8c1d68
flash_cmd_generator: installer: support support optional command
jeremy-compostella May 12, 2016
021c816
Add ifwi.bin and ifwi_debug.bin as variant files
Apr 18, 2016
ef6696e
Re-enable publish of kernel symbols
May 23, 2016
55eb88c
Package tos into gsd simics gpt image
rogerxfeng8 May 5, 2016
469c5b6
testos build make file
tkatila Apr 4, 2016
1babf02
Fix missing partition support in create_gpt_image.py
May 23, 2016
1fe8fc6
Add kernel path condition to publish kernel debug symbols
Jun 15, 2016
55edfd8
OTA: add flash-update support for N with fota app
xihua-chen Jun 16, 2016
336fe6d
remove GVB keystore stuff from ota-test-prepare
steven-lgs Jun 17, 2016
2a19663
Add support bldr_utils partitions
Jun 20, 2016
3b6a664
OTA: fix flash-update fail to run with -r
xihua-chen Jun 27, 2016
1e16e91
append script location to PATH environment variable
Jul 4, 2016
d910633
align with the new concept of cross-building
Jul 1, 2016
cc0f3e5
Modify gvb_test_prepare to be aligned with new system image format
steven-lgs Jul 19, 2016
ee877ff
host_cross_platform rma tools unsupported
Aug 3, 2016
d4cc55e
Fix RMA_TOOLS_WINDOWS fail
Aug 15, 2016
4fd2e72
Support Multiboot partition
Aug 5, 2016
204de2d
build/core: support ABL application compilation
jeremy-compostella Sep 7, 2016
8be655d
build/core: strip ABL application debug symbols on user build
jeremy-compostella Sep 26, 2016
171b031
build/core: sign ABL application using the Android verity key
jeremy-compostella Sep 26, 2016
6b0173b
Generate the craff image
lizhuangzhi Sep 29, 2016
b6eab66
Fix produce iOTA Fail.
Oct 31, 2016
b63082d
Add bxtp_abl filter in CheckIfSocEFI
chenlin3 Nov 2, 2016
71027a5
ota: add hash value update for variant
xihua-chen Nov 3, 2016
801ed14
Aligned with Google internal build
yyao3 Nov 10, 2016
f0bc337
Set public key and signature present bit field to 1
steven-lgs Nov 18, 2016
9d7c6cf
Add mkext2img and dumpext2img utility into otatools
steven-lgs Nov 18, 2016
86bde88
Add OTA resign scripts for ABL
steven-lgs Nov 7, 2016
a944d20
build/core: strip binaries for ABL whatever the build variant
jeremy-compostella Nov 28, 2016
f2d4b11
Porting. Fix [N.car][BXT-P]Display script error when check image hash…
Nov 11, 2016
d8418d4
Porting.Fix [N.car]Incremental OTA issue.
Dec 7, 2016
33fc5bd
Porting. Fix [N.car][BXT-P]CheckIfSocEFI add ABL return value
Nov 17, 2016
cb92545
build/tasks: Add ABLVARS support in 2ndbootloader.mk
jwu55 Dec 8, 2016
ce236ca
Integrated gpt_image to publish
Jan 5, 2017
deb7c35
Add null pointer check for pointer 'System.console'
GraspEmpty Jan 18, 2017
2e0b5fe
Optimize the code
GraspEmpty Feb 10, 2017
b323897
releasetools: fftf: Add fast_flashfiles support to variants
saaguirr Jan 9, 2017
761c703
Publish androidia output image
chenlin3 Jan 10, 2017
a60a446
LOCAL_CLANG := false is not allowed in O dessert
qshi5 Dec 7, 2016
8f25a3e
Remove the keystore_signer dependency
xiaokang0716 Dec 8, 2016
ecc6fe2
Automatically create ablvars.bin
zhimincx Feb 20, 2017
fbcc874
Fix broken build: UnzipTemp now takes a list
yifanzhangjerry Mar 27, 2017
6fce640
Build: Change fastboot.bin name to osloader.bin
zhimincx Mar 14, 2017
24be665
add missing part for android bxtp abl O testos enabling.
btian1 Apr 11, 2017
ba8932d
Script support for adding acpi tables into osloader image
zhimincx Apr 27, 2017
c7867ab
Use the new definition of ABL os kernel key
steven-lgs May 2, 2017
96839d7
Count acpi_tag in when add acpi tables into osloader image
zhimincx May 22, 2017
4eb8bf3
Add ABL relevant project flag for toolchain
Jun 6, 2017
b935365
Add IFWI verify into OTA verify.
Mar 2, 2017
a95541f
Fix UFS GPT image valid check failure
gaohuadong Jun 9, 2017
0d8b257
Add vbmeta partition configuration in GPT image script
steven-lgs Jun 7, 2017
1c95abb
Add tos partition
beckwen Jun 7, 2017
67cdcf1
Update Extract_fastboot.py for resign fastboot binary in IFWI
GraspEmpty Jun 16, 2017
b6355cb
Add vbmeta image to fast flashfiles
Jun 28, 2017
41c783d
Build: Fix the bug of can't boot in eng build.
zhimincx Jul 10, 2017
d9b3a9a
DIsable OTA build for OMR1
qshi5 Jul 10, 2017
c9f1875
remove android_ in partition table
xihua-chen Jul 19, 2017
94fbf24
REVERTME for abl has android_
xihua-chen Jul 19, 2017
f1efeae
set selinux as permissive for TestOS
YadongQi Jul 24, 2017
8ab771d
Add supportting xen partition
Jul 28, 2017
4a51477
Add teedata partition
steven-lgs Jul 20, 2017
322af13
Revert "REVERTME for abl has android_"
xihua-chen Jul 26, 2017
c831126
To generate ACPI ssdt patch in ABLVAR for First-Stage mount
haoyu-tang Aug 4, 2017
f9f8b49
slot-ab: no need reconfigure pre-device,add buildnum configure
xihua-chen Aug 24, 2017
0ff1377
Modify resign script to support Android O release
steven-lgs May 16, 2017
6b66755
add the asl for vboot 1.0
xiaokang0716 Aug 30, 2017
daa7031
testos: modify makefile to build gpt.bin for testos specific
btian1 Aug 27, 2017
3af7288
add avb_test_prepare to support new format of verified metadata
ustcxd Aug 21, 2017
833518f
OMR1's codename is 8.1.0 instead of OMR1
qshi5 Sep 15, 2017
bd8dabd
Support SBL platform osloader signing
zhouji3x Sep 5, 2017
0bca6c4
Kf4abl build and fb4abl build use respective temp path.
Oct 12, 2017
78bde38
Copy non-exist acpi_table path causes build error in Icl_presi.
Oct 17, 2017
261d17d
boot: update create_gpt_image.py for slotab images
phireg Oct 12, 2017
56a4e6b
ota: fix post-build generate issue checked by Google
xihua-chen Sep 7, 2017
bab0998
Add the aosp project list file
Oct 17, 2017
1fa37f1
Fix the error about system corruption on omr1
ustcxd Oct 25, 2017
0084ffa
ota: re-enable ota variant build on OMR1
phireg Nov 6, 2017
c80e032
Allow user to corrupt vendor image for avb test
ustcxd Nov 8, 2017
8e821cc
Add new partition for cwp target
Nov 15, 2017
3eaaf6b
Build: Support generating flashfile zip for testos.
zhimincx Nov 24, 2017
53f6fbe
Generate gptimage into ext4 filesystem
xihua-chen Nov 29, 2017
c240bcd
add dependencies for tos.img and multiboot.img when set
Dec 4, 2017
b9a16d4
Build: Add new guid entry for bootloader type
zhimincx Dec 7, 2017
892dbe9
Publish intermediate android OS loader symbol files
zhimincx Dec 18, 2017
0986d8e
Use "NON_EFI" insteadof "ABL" in confusing flags
zhimincx Jan 4, 2018
bc146ed
Move ablvars build intermediate files into out folder
chenlin3 Jan 11, 2018
965f5c3
ota: update resign for r0_bxtp_abl
phireg Nov 21, 2017
e35d17a
Publish fastboot symbol and signed binary files
zhimincx Jan 17, 2018
380c304
Add bootloader_(a|b) and multiboot_(a|b) for build
Nov 9, 2017
2e4b709
[build/core] support ABL 64bit application compile
zhouji3x Jan 17, 2018
d7e6ee1
[build] fix build error of gordenpeak_cwp target
zhouji3x Jan 23, 2018
0b65866
Fix ota-A issue: search product mk file only on relevant dirs
ustcxd Feb 3, 2018
48fc193
resign: search product mk file only on relevant directories
phireg Feb 2, 2018
5ad5b4a
Modify the resign script to use product specific abl configration
steven-lgs Feb 5, 2018
123322f
TestOS: use mixin-update generated gpt.ini
zhimincx Feb 9, 2018
170b4b9
Adapt resign script to support bootloader&multiboot AB slot
steven-lgs Feb 23, 2018
a807b86
OTA resign bug: modify keywords for avb & variant
ustcxd Mar 13, 2018
be66116
[acrn] Add acrn flashfiles package to pub directory
Mar 15, 2018
0777dcd
replace the absolute path
yyao3 Feb 17, 2018
8bd8c2f
replace the absolute path
zhenweix Mar 23, 2018
2871457
Fix issue: cannot get exact value for TARGET_DEVICE variable
ustcxd Mar 19, 2018
17e0ea8
Move recovery code to bootctrl repo
Mar 29, 2018
e58398a
[ACRN] remove target publish_acrnimage
Apr 4, 2018
c749a74
remove uefi tools and libraries dependency from non-uefi platform
steven-lgs Dec 27, 2017
fb480ab
remove rmatools from non-uefi build
steven-lgs Feb 7, 2018
733d940
Different UUID when slotAB partition.
Apr 19, 2018
391ee7b
Corrupt bootloader image for data&signature section
ustcxd Apr 20, 2018
3a5aba5
String adjust for writing empty partition.
Apr 26, 2018
e318707
TestOS: move makefile script from tasks to AndroidBoard.mk
zhimincx Apr 16, 2018
183b488
[Build] set default start lba to offset 1M bytes
zhouji3x Apr 17, 2018
2816e8b
acpi: simplify the script adding first stage mount config file
zhimincx May 4, 2018
8c67b48
Optimize the integration logic of ACPI config files
zhimincx May 4, 2018
c8315f0
Adapt build script to use new UnzipTemp
steven-lgs Mar 28, 2018
be03562
Remove efi tools dependency from gordon_peak_acrn target
May 21, 2018
6787ff2
ota: implement resign for ACRN
phireg Jun 5, 2018
1358b08
ota: fix target name issue on resign script
phireg Jun 8, 2018
df46a89
remove unused ota tools dependency in AOSP target
steven-lgs Jun 13, 2018
6090d00
change compiler to clang
qichen5x Mar 12, 2018
031a624
build: Add IASL depend for SSDT generate
zhimincx Jun 1, 2018
0ed9f33
disable ASan on kernelflinger
jialei0512 Jun 26, 2018
a90ef00
Update platform check for OTA.
Jul 3, 2018
6971c4c
Make ota packege generation conditional
xiaolusx Jul 10, 2018
b694f7f
Remove sbsign/mcopy/mkdosfs uefi tools dependencies
xiaolusx Jul 16, 2018
fa9d7ae
add product and odm into gptimage generation
xihua-chen Jul 23, 2018
3609fea
Enable Clang compiler for kernelflinger based on UEFI,remove
beckwen Jul 25, 2018
59ea70d
Add "guest" suffix for gordon_pek_acrn to flshfiles
xiaolusx Aug 9, 2018
4d51807
Use the host installed efitools. And set otatools for UEFI platform.
tanminger Aug 17, 2018
c8c816e
add resign support for sbl
phireg Aug 16, 2018
5fcfd74
acpi: Add iasl compiler tool
zhimincx Jun 28, 2018
453a5c8
flashfiles_from_target_files: keep permissions from provdatazip
jeremy-compostella Aug 20, 2018
6ec9c84
add acpi/acpio partitions support
xihua-chen Aug 21, 2018
721f078
[CELADON] Fix Kernel PATH issue
sgnanase Oct 22, 2018
0aaf8b7
ota: enable avb in resign scripts
phireg Oct 31, 2018
e140e78
ota: fix failure when resign non locally
phireg Nov 20, 2018
c6d127a
ota: fix ota after resign
phireg Nov 22, 2018
cfe2fa3
remove simics files
phireg Jan 16, 2019
911bf1a
[PORT FROM PMRI] Add stack protection flag for kernelflinger
luo-heng Dec 27, 2018
d40b06d
signed flashfiles when RELEASE_BUILD = true
Mar 26, 2019
cbc1bb8
[CELADON] Integrate EFI shell in flashfiles zip
debarghyab Aug 8, 2019
e38140d
[CELADON] Integrate EFI shell in flashfiles zip
debarghyab Aug 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pyc
1 change: 1 addition & 0 deletions acpi-tools/linux64/bin/iasl
Binary file added acpi-tools/linux64/bin/iasl-acpica-unix-20150619
Binary file not shown.
66 changes: 66 additions & 0 deletions bin_to_oemvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#!/usr/bin/python

import argparse
import re
import string

def guid_string(p):
if re.match('^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$', p) is None:
raise argparse.ArgumentTypeError("Argument must be a GUID value")
return p

def escaped_value(value):
result = ''
for char in value:
result += "%%%02x" % ord(char)
return result

def main():
parser = argparse.ArgumentParser(epilog="""Common namespace/variable pairings:
--global/PK,
--global/KEK,
--image-security/db
""")
guid_group = parser.add_mutually_exclusive_group(required=True)
guid_group.add_argument('--guid',
dest='namespace_guid',
type=guid_string,
help="namespace GUID of the variables")
guid_group.add_argument('--global',
action='store_const',
metavar='namespace-guid',
const="8be4df61-93ca-11d2-aa0d-00e098032b8c",
dest='namespace_guid',
help='variables are in EFI global namespace')
guid_group.add_argument('--image-security',
action='store_const',
const="d719b2cb-3d3a-4596-a3bc-dad00e67656f",
dest='namespace_guid',
help='variables are in EFI image security namespace')
guid_group.add_argument('--fastboot',
action='store_const',
const="1ac80a82-4f0c-456b-9a99-debeb431fcc1",
dest='namespace_guid',
help='variables are in EFI fastboot namespace')
parser.add_argument('--var',
nargs=2,
metavar=('NAME', 'VALUE-FILENAME'),
action='append',
required=True,
help='output variable with specific value')
args = parser.parse_args()

print "GUID = %s" % (args.namespace_guid)
print
for var in args.var:
value_file = open(var[1], "r")
value = value_file.read()
print "%s @%s" % (var[0], escaped_value(value))
print


if __name__ == "__main__":
try:
main()
except Exception as e:
print e
86 changes: 86 additions & 0 deletions blob-release/files-by-owner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
#!/bin/sh

# Copyright 2013 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

rm -f extract-lists.txt
cat ../vendor_owner_info.txt |
cut -d : -f 2 |
sort -u |
grep -v google |
grep -v nodist |
while read target_owner
do
mkdir -p $target_owner/staging
cat > $target_owner/staging/device-partial.mk << EOF
# Copyright 2013 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: Automatically generated by files-by-owner.sh, do not edit
#

EOF
echo -n "# " >> $target_owner/staging/device-partial.mk
case $target_owner in
intel)
echo -n Intel >> $target_owner/staging/device-partial.mk
;;
esac
echo " blob(s) necessary for Intel hardware" >> $target_owner/staging/device-partial.mk
echo "PRODUCT_COPY_FILES := \\" >> $target_owner/staging/device-partial.mk

echo " $target_owner)" >> extract-lists.txt
echo " TO_EXTRACT=\"\\" >> extract-lists.txt


cat ../proprietary-blobs.txt |
grep ^/ |
cut -b 2- |
sort |
while read file
do

auto_owner=$(grep ^$file: ../vendor_owner_info.txt | cut -d : -f 2)

if test "$auto_owner" = ""
then
echo $file has no known owner
fi

if test "$auto_owner" = "$target_owner" -a $file != system/app/shutdownlistener.apk -a $file != system/app/TimeService.apk
then
if test $file != ZZZ
then
echo " vendor/$target_owner/asus_t100/proprietary/$(basename $file):$file:$target_owner \\" >> $target_owner/staging/device-partial.mk
fi
echo " $file \\" >> extract-lists.txt
fi
done

echo >> $target_owner/staging/device-partial.mk

echo " \"" >> extract-lists.txt
echo " ;;" >> extract-lists.txt
done
116 changes: 116 additions & 0 deletions blob-release/generate-blob-lists.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
#!/bin/bash -e

# Copyright (C) 2010 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This script auto-generates the lists of proprietary blobs necessary to build
# the Android Open-Source Project code for a variety of hardware targets.

# It needs to be run from the root of a source tree that can repo sync,
# runs builds with and without the vendor tree, and uses the difference
# to generate the lists.

# It can optionally upload the results to a Gerrit server for review.

# WARNING: It destroys the source tree. Don't leave anything precious there.

# Caveat: this script does many full builds (2 per device). It takes a while
# to run. It's best # suited for overnight runs on multi-CPU machines
# with a lot of RAM.

# Syntax: device/common/generate-blob-lists.sh -f|--force [<server> <branch>]
#
# If the server and branch paramters are both present, the script will upload
# new files (if there's been any change) to the mentioned Gerrit server,
# in the specified branch.

if test "$1" != "-f" -a "$1" != "--force"
then
echo This script must be run with the --force option
exit 1
fi
shift

#repo sync -j32 -n
#repo sync -j32 -n
repo sync -j2 -l


DEVICES=$(for i in device/intel/*/*/proprietary-blobs.txt ; do basename $(dirname $i) ; done)

export LC_ALL=C

ARCHIVEDIR=archive-$(date +%s)
if test -d archive-ref
then
cp -R archive-ref $ARCHIVEDIR
else
mkdir $ARCHIVEDIR

. build/envsetup.sh
for DEVICENAME in $DEVICES
do
rm -rf out
lunch $DEVICENAME-user
make -j$(nproc)
cat out/target/product/$DEVICENAME/installed-files.txt |
cut -b 15- |
sort -f > $ARCHIVEDIR/$DEVICENAME-with.txt
done
rm -rf vendor
rm -rf hardware/qcom/gps
for DEVICENAME in $DEVICES
do
rm -rf out
lunch $DEVICENAME-user
make -j$(nproc)
cat out/target/product/$DEVICENAME/installed-files.txt |
cut -b 15- |
sort -f > $ARCHIVEDIR/$DEVICENAME-without.txt
done
fi

for DEVICENAME in $DEVICES
do
MANUFACTURERNAME=intel/baytrail
if test $(wc -l < $ARCHIVEDIR/$DEVICENAME-without.txt) != 0 -a $(wc -l < $ARCHIVEDIR/$DEVICENAME-with.txt) != 0
then
(
echo '# Copyright (C) 2011 The Android Open Source Project'
echo '#'
echo '# Licensed under the Apache License, Version 2.0 (the "License");'
echo '# you may not use this file except in compliance with the License.'
echo '# You may obtain a copy of the License at'
echo '#'
echo '# http://www.apache.org/licenses/LICENSE-2.0'
echo '#'
echo '# Unless required by applicable law or agreed to in writing, software'
echo '# distributed under the License is distributed on an "AS IS" BASIS,'
echo '# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.'
echo '# See the License for the specific language governing permissions and'
echo '# limitations under the License.'
echo
echo '# This file is generated by device/common/generate-blob-lists.sh - DO NOT EDIT'
echo
diff $ARCHIVEDIR/$DEVICENAME-without.txt $ARCHIVEDIR/$DEVICENAME-with.txt |
grep -v '\.odex$' |
grep '>' |
cut -b 3-
) > $ARCHIVEDIR/$DEVICENAME-proprietary-blobs.txt
cp $ARCHIVEDIR/$DEVICENAME-proprietary-blobs.txt device/$MANUFACTURERNAME/$DEVICENAME/proprietary-blobs.txt
fi
done

rm -rf out/

Loading