From 22ba620a6023c25cc87b46b2d711338f524c9643 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Tue, 27 Dec 2016 14:10:18 +0800 Subject: build: Rebrand to LineageOS Change-Id: Ie03583dc2a974a159fa50c6cb19cb68aa256ca77 --- core/Makefile | 2 +- core/tasks/kernel.mk | 3 ++- envsetup.sh | 18 +++++++++--------- tools/releasetools/edify_generator.py | 2 +- tools/releasetools/ota_from_target_files.py | 2 +- tools/repopick.py | 7 ++++--- tools/roomservice.py | 13 +++++++------ 7 files changed, 25 insertions(+), 22 deletions(-) diff --git a/core/Makefile b/core/Makefile index 3ac9b0d..f7ae05b 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1922,7 +1922,7 @@ $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS) $(if $(OEM_OTA_CONFIG), -o $(OEM_OTA_CONFIG)) \ $(BUILT_TARGET_FILES_PACKAGE) $@ -CM_TARGET_PACKAGE := $(PRODUCT_OUT)/cm-$(CM_VERSION).zip +CM_TARGET_PACKAGE := $(PRODUCT_OUT)/lineage-$(CM_VERSION).zip .PHONY: otapackage bacon otapackage: $(INTERNAL_OTA_PACKAGE_TARGET) diff --git a/core/tasks/kernel.mk b/core/tasks/kernel.mk index f5a27c0..bc70e38 100644 --- a/core/tasks/kernel.mk +++ b/core/tasks/kernel.mk @@ -1,4 +1,5 @@ # Copyright (C) 2012 The CyanogenMod Project +# (C) 2017 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -162,7 +163,7 @@ ifeq "$(wildcard $(KERNEL_SRC) )" "" $(warning * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *) $(warning * Please configure your device to download the kernel *) $(warning * source repository to $(KERNEL_SRC)) - $(warning * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building) + $(warning * See http://wiki.lineageos.org/w/Doc:_integrated_kernel_building) $(warning * for more information *) $(warning ***************************************************************) FULL_KERNEL_BUILD := false diff --git a/envsetup.sh b/envsetup.sh index 6715419..cdbaeec 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -24,8 +24,8 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y - sepgrep: Greps on all local sepolicy files. - sgrep: Greps on all local source files. - godir: Go to the directory containing a file. -- cmremote: Add git remote for CM Gerrit Review -- cmgerrit: A Git wrapper that fetches/pushes patch from/to CM Gerrit Review +- cmremote: Add git remote for LineageOS Gerrit Review +- cmgerrit: A Git wrapper that fetches/pushes patch from/to LineageOS Gerrit Review - cmrebase: Rebase a Gerrit change and push it again - aospremote: Add git remote for matching AOSP repository - cafremote: Add git remote for matching CodeAurora repository. @@ -735,7 +735,7 @@ function eat() { if [ "$OUT" ] ; then MODVERSION=$(get_build_var CM_VERSION) - ZIPFILE=cm-$MODVERSION.zip + ZIPFILE=lineage-$MODVERSION.zip ZIPPATH=$OUT/$ZIPFILE if [ ! -f $ZIPPATH ] ; then echo "Nothing to eat" @@ -1692,12 +1692,12 @@ function cmremote() fi git remote rm cmremote 2> /dev/null GERRIT_REMOTE=$(git config --get remote.github.projectname) - CMUSER=$(git config --get review.review.cyanogenmod.org.username) + CMUSER=$(git config --get review.review.lineageos.org.username) if [ -z "$CMUSER" ] then - git remote add cmremote ssh://review.cyanogenmod.org:29418/$GERRIT_REMOTE + git remote add cmremote ssh://review.lineageos.org:29418/$GERRIT_REMOTE else - git remote add cmremote ssh://$CMUSER@review.cyanogenmod.org:29418/$GERRIT_REMOTE + git remote add cmremote ssh://$CMUSER@review.lineageos.org:29418/$GERRIT_REMOTE fi echo "Remote 'cmremote' created" } @@ -1854,7 +1854,7 @@ function cmgerrit() { $FUNCNAME help return 1 fi - local user=`git config --get review.review.cyanogenmod.org.username` + local user=`git config --get review.review.lineageos.org.username` local review=`git config --get remote.github.review` local project=`git config --get remote.github.projectname` local command=$1 @@ -2089,7 +2089,7 @@ function cmrebase() { local dir="$(gettop)/$repo" if [ -z $repo ] || [ -z $refs ]; then - echo "CyanogenMod Gerrit Rebase Usage: " + echo "LineageOS Gerrit Rebase Usage: " echo " cmrebase " echo " The patch IDs appear on the Gerrit commands that are offered." echo " They consist on a series of numbers and slashes, after the text" @@ -2111,7 +2111,7 @@ function cmrebase() { echo "Bringing it up to date..." repo sync . echo "Fetching change..." - git fetch "http://review.cyanogenmod.org/p/$repo" "refs/changes/$refs" && git cherry-pick FETCH_HEAD + git fetch "http://review.lineageos.org/p/$repo" "refs/changes/$refs" && git cherry-pick FETCH_HEAD if [ "$?" != "0" ]; then echo "Error cherry-picking. Not uploading!" return diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py index 825a7eb..8025235 100644 --- a/tools/releasetools/edify_generator.py +++ b/tools/releasetools/edify_generator.py @@ -151,7 +151,7 @@ class EdifyGenerator(object): self.script.append(('run_program("/tmp/install/bin/backuptool.sh", "%s");' % command)) def ValidateSignatures(self, command): - self.script.append('package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");') + self.script.append('package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");') # Exit code 124 == abort. run_program returns raw, so left-shift 8bit self.script.append('run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can\'t install this package on top of incompatible data. Please try another package or run a factory reset");') diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py index bc40873..e483b1c 100755 --- a/tools/releasetools/ota_from_target_files.py +++ b/tools/releasetools/ota_from_target_files.py @@ -753,7 +753,7 @@ endif; common.ZipWriteStr(output_zip, "system/build.prop", ""+input_zip.read("SYSTEM/build.prop")) - common.ZipWriteStr(output_zip, "META-INF/org/cyanogenmod/releasekey", + common.ZipWriteStr(output_zip, "META-INF/org/lineageos/releasekey", ""+input_zip.read("META/releasekey.txt")) def WritePolicyConfig(file_name, output_zip): diff --git a/tools/repopick.py b/tools/repopick.py index cfbb8a8..9bb39aa 100755 --- a/tools/repopick.py +++ b/tools/repopick.py @@ -1,6 +1,7 @@ #!/usr/bin/env python # # Copyright (C) 2013-15 The CyanogenMod Project +# (C) 2017 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -121,12 +122,12 @@ def fetch_query(remote_url, query): raise Exception('Gerrit URL should be in the form http[s]://hostname/ or ssh://[user@]host[:port]') if __name__ == '__main__': - # Default to CyanogenMod Gerrit - default_gerrit = 'http://review.cyanogenmod.org' + # Default to LineageOS Gerrit + default_gerrit = 'http://review.lineageos.org' parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, description=textwrap.dedent('''\ repopick.py is a utility to simplify the process of cherry picking - patches from CyanogenMod's Gerrit instance (or any gerrit instance of your choosing) + patches from LineageOS's Gerrit instance (or any gerrit instance of your choosing) Given a list of change numbers, repopick will cd into the project path and cherry pick the latest patch available. diff --git a/tools/roomservice.py b/tools/roomservice.py index a1b69cd..5393907 100755 --- a/tools/roomservice.py +++ b/tools/roomservice.py @@ -1,5 +1,6 @@ #!/usr/bin/env python # Copyright (C) 2012-2013, The CyanogenMod Project +# (C) 2017, The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -51,7 +52,7 @@ except: device = product if not depsonly: - print("Device %s not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod)." % device) + print("Device %s not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS)." % device) repositories = [] @@ -71,7 +72,7 @@ def add_auth(githubreq): githubreq.add_header("Authorization","Basic %s" % githubauth) if not depsonly: - githubreq = urllib.request.Request("https://api.github.com/search/repositories?q=%s+user:CyanogenMod+in:name+fork:true" % device) + githubreq = urllib.request.Request("https://api.github.com/search/repositories?q=%s+user:LineageOS+in:name+fork:true" % device) add_auth(githubreq) try: result = json.loads(urllib.request.urlopen(githubreq).read().decode()) @@ -175,12 +176,12 @@ def add_to_manifest(repositories, fallback_branch = None): repo_target = repository['target_path'] print('Checking if %s is fetched from %s' % (repo_target, repo_name)) if is_in_manifest(repo_target): - print('CyanogenMod/%s already fetched to %s' % (repo_name, repo_target)) + print('LineageOS/%s already fetched to %s' % (repo_name, repo_target)) continue - print('Adding dependency: CyanogenMod/%s -> %s' % (repo_name, repo_target)) + print('Adding dependency: LineageOS/%s -> %s' % (repo_name, repo_target)) project = ElementTree.Element("project", attrib = { "path": repo_target, - "remote": "github", "name": "CyanogenMod/%s" % repo_name }) + "remote": "github", "name": "LineageOS/%s" % repo_name }) if 'branch' in repository: project.set('revision',repository['branch']) @@ -294,4 +295,4 @@ else: print("Done") sys.exit() -print("Repository for %s not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml." % device) +print("Repository for %s not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml." % device) -- cgit v1.1 From dde61aa633c9faf147633ff129db7b5558221ad6 Mon Sep 17 00:00:00 2001 From: Brandon McAnsh Date: Thu, 29 Dec 2016 00:17:34 -0500 Subject: build: dumpvar: Display version as LINEAGE_VERSION Change-Id: Iebdb9bb97787901096d629b469a9dca6bb50528d Signed-off-by: Brandon McAnsh --- core/dumpvar.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dumpvar.mk b/core/dumpvar.mk index 47ba476..b25698a 100644 --- a/core/dumpvar.mk +++ b/core/dumpvar.mk @@ -67,7 +67,7 @@ HOST_OS_EXTRA:=$(shell python -c "import platform; print(platform.platform())") $(info ============================================) $(info PLATFORM_VERSION_CODENAME=$(PLATFORM_VERSION_CODENAME)) $(info PLATFORM_VERSION=$(PLATFORM_VERSION)) -$(info CM_VERSION=$(CM_VERSION)) +$(info LINEAGE_VERSION=$(CM_VERSION)) $(info TARGET_PRODUCT=$(TARGET_PRODUCT)) $(info TARGET_BUILD_VARIANT=$(TARGET_BUILD_VARIANT)) $(info TARGET_BUILD_TYPE=$(TARGET_BUILD_TYPE)) -- cgit v1.1 From a0300d400ace78f8045f17c24db33ce6d38dc072 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Mon, 2 Jan 2017 12:02:21 +0800 Subject: build: Rebrand CM_VERSION to LINEAGE_VERSION Change-Id: I8b44007ebbe395df3c989be37a5d45339f111130 --- core/Makefile | 2 +- core/dumpvar.mk | 2 +- envsetup.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/Makefile b/core/Makefile index f7ae05b..eb9d5fd 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1922,7 +1922,7 @@ $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS) $(if $(OEM_OTA_CONFIG), -o $(OEM_OTA_CONFIG)) \ $(BUILT_TARGET_FILES_PACKAGE) $@ -CM_TARGET_PACKAGE := $(PRODUCT_OUT)/lineage-$(CM_VERSION).zip +CM_TARGET_PACKAGE := $(PRODUCT_OUT)/lineage-$(LINEAGE_VERSION).zip .PHONY: otapackage bacon otapackage: $(INTERNAL_OTA_PACKAGE_TARGET) diff --git a/core/dumpvar.mk b/core/dumpvar.mk index b25698a..0166e96 100644 --- a/core/dumpvar.mk +++ b/core/dumpvar.mk @@ -67,7 +67,7 @@ HOST_OS_EXTRA:=$(shell python -c "import platform; print(platform.platform())") $(info ============================================) $(info PLATFORM_VERSION_CODENAME=$(PLATFORM_VERSION_CODENAME)) $(info PLATFORM_VERSION=$(PLATFORM_VERSION)) -$(info LINEAGE_VERSION=$(CM_VERSION)) +$(info LINEAGE_VERSION=$(LINEAGE_VERSION)) $(info TARGET_PRODUCT=$(TARGET_PRODUCT)) $(info TARGET_BUILD_VARIANT=$(TARGET_BUILD_VARIANT)) $(info TARGET_BUILD_TYPE=$(TARGET_BUILD_TYPE)) diff --git a/envsetup.sh b/envsetup.sh index cdbaeec..aed0616 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -734,7 +734,7 @@ function tapas() function eat() { if [ "$OUT" ] ; then - MODVERSION=$(get_build_var CM_VERSION) + MODVERSION=$(get_build_var LINEAGE_VERSION) ZIPFILE=lineage-$MODVERSION.zip ZIPPATH=$OUT/$ZIPFILE if [ ! -f $ZIPPATH ] ; then -- cgit v1.1 From 750b0283defab06bab2edf405e1f9e0c8a35166e Mon Sep 17 00:00:00 2001 From: Ethan Chen Date: Sat, 12 Nov 2016 12:47:31 -0800 Subject: qcom_target: Remove unused support for CAF manifests * This code was introduced to support building from Qualcomm hardware manifests, placing the appropriate Qualcomm HALs at the AOSP hardware/qcom/$(HAL_TYPE) location. This isn't a supported use case anymore, so remove the dead code. Change-Id: Id7d53b33f53289bc1ead8eb983d7e252940b0387 --- core/qcom_target.mk | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/core/qcom_target.mk b/core/qcom_target.mk index 9b8d6bb..9ce451b 100644 --- a/core/qcom_target.mk +++ b/core/qcom_target.mk @@ -75,21 +75,6 @@ ifeq ($(BOARD_USES_QCOM_HARDWARE),true) endif endif -# HACK: check to see if build uses standard QC HAL paths by checking for CM path structure -AOSP_VARIANT_MAKEFILE := $(wildcard hardware/qcom/audio/default/Android.mk) -ifeq ("$(AOSP_VARIANT_MAKEFILE)","") -$(call project-set-path,qcom-audio,hardware/qcom/audio) -$(call project-set-path,qcom-display,hardware/qcom/display) -$(call project-set-path,qcom-media,hardware/qcom/media) -$(call set-device-specific-path,CAMERA,camera,hardware/qcom/camera) -$(call set-device-specific-path,GPS,gps,hardware/qcom/gps) -$(call set-device-specific-path,SENSORS,sensors,hardware/qcom/sensors) -$(call set-device-specific-path,LOC_API,loc-api,vendor/qcom/opensource/location) -$(call set-device-specific-path,DATASERVICES,dataservices,vendor/qcom/opensource/dataservices) -$(call project-set-path,ril,hardware/ril) -$(call project-set-path,wlan,hardware/qcom/wlan) -$(call project-set-path,bt-vendor,hardware/qcom/bt) -else $(call project-set-path,qcom-audio,hardware/qcom/audio-caf/$(QCOM_HARDWARE_VARIANT)) $(call project-set-path,qcom-display,hardware/qcom/display-caf/$(QCOM_HARDWARE_VARIANT)) $(call project-set-path,qcom-media,hardware/qcom/media-caf/$(QCOM_HARDWARE_VARIANT)) @@ -103,7 +88,6 @@ $(call set-device-specific-path,DATASERVICES,dataservices,vendor/qcom/opensource $(call ril-set-path-variant,ril) $(call wlan-set-path-variant,wlan-caf) $(call bt-vendor-set-path-variant,bt-caf) -endif # AOSP_VARIANT_MAKEFILE else -- cgit v1.1 From 6be9bd73c705f9762831f5149f5273293dabc7ae Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Sun, 27 Nov 2016 11:36:25 +0100 Subject: Revert "Add PRODUCT_BOOTANIMATION" Replace this with TARGET_BOOTANIMATION as part of the rework of the boot animation generation process in vendor/cm change Iee32f18440ff955d13ed85b273e97cbd540721fc. This reverts commit b2483ae08c00c42bd97f3b9e2ba5e841ec243d62. Change-Id: Id6fc55ee1bc0149f25e6165a3e5f3209ad4424fc (cherry picked from commit 74b511974651cbbcffd6e472777d33b4bf9ae5bc) --- core/product.mk | 1 - core/product_config.mk | 6 ------ 2 files changed, 7 deletions(-) diff --git a/core/product.mk b/core/product.mk index cced554..24af0f2 100644 --- a/core/product.mk +++ b/core/product.mk @@ -65,7 +65,6 @@ endef # _product_var_list := \ - PRODUCT_BOOTANIMATION \ PRODUCT_BUILD_PROP_OVERRIDES \ PRODUCT_NAME \ PRODUCT_MODEL \ diff --git a/core/product_config.mk b/core/product_config.mk index 259d983..89c6810 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -343,12 +343,6 @@ endif # The optional : is used to indicate the owner of a vendor file. PRODUCT_COPY_FILES := \ $(strip $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_COPY_FILES)) -_boot_animation := $(strip $(lastword $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_BOOTANIMATION))) -ifneq ($(_boot_animation),) -PRODUCT_COPY_FILES += \ - $(_boot_animation):system/media/bootanimation.zip -endif -_boot_animation := # We might want to skip items listed in PRODUCT_COPY_FILES for # various reasons. This is useful for replacing a binary module with one -- cgit v1.1 From bafbd7acc3c3ec1cf594223dbf09c73b2c88d6bf Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sat, 7 Jan 2017 12:36:19 +0800 Subject: build: qcom_target: Clean up QCOM_HARDWARE_VARIANT checks Change-Id: I97f812412f94a0638e78eaf7e45112b6924120a9 --- core/qcom_target.mk | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/core/qcom_target.mk b/core/qcom_target.mk index 9ce451b..d5631ab 100644 --- a/core/qcom_target.mk +++ b/core/qcom_target.mk @@ -22,6 +22,10 @@ $(call project-set-path,qcom-$(2),$(strip $(path))) endef ifeq ($(BOARD_USES_QCOM_HARDWARE),true) + B_FAMILY := msm8226 msm8610 msm8974 + B64_FAMILY := msm8992 msm8994 + BR_FAMILY := msm8909 msm8916 + UM_FAMILY := msm8937 msm8953 qcom_flags := -DQCOM_HARDWARE qcom_flags += -DQCOM_BSP @@ -55,24 +59,22 @@ ifeq ($(BOARD_USES_QCOM_HARDWARE),true) 2ND_CLANG_TARGET_GLOBAL_CFLAGS += $(qcom_flags) 2ND_CLANG_TARGET_GLOBAL_CPPFLAGS += $(qcom_flags) - ifeq ($(QCOM_HARDWARE_VARIANT),) - ifneq ($(filter msm8610 msm8226 msm8974,$(TARGET_BOARD_PLATFORM)),) - QCOM_HARDWARE_VARIANT := msm8974 - else - ifneq ($(filter msm8909 msm8916,$(TARGET_BOARD_PLATFORM)),) - QCOM_HARDWARE_VARIANT := msm8916 - else - ifneq ($(filter msm8953 msm8937,$(TARGET_BOARD_PLATFORM)),) - QCOM_HARDWARE_VARIANT := msm8937 - else - ifneq ($(filter msm8992 msm8994,$(TARGET_BOARD_PLATFORM)),) - QCOM_HARDWARE_VARIANT := msm8994 - else - QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM) - endif - endif - endif - endif + ifeq ($(call is-board-platform-in-list, $(B_FAMILY)),true) + QCOM_HARDWARE_VARIANT := msm8974 + else + ifeq ($(call is-board-platform-in-list, $(B64_FAMILY)),true) + QCOM_HARDWARE_VARIANT := msm8994 + else + ifeq ($(call is-board-platform-in-list, $(BR_FAMILY)),true) + QCOM_HARDWARE_VARIANT := msm8916 + else + ifeq ($(call is-board-platform-in-list, $(UM_FAMILY)),true) + QCOM_HARDWARE_VARIANT := msm8937 + else + QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM) + endif + endif + endif endif $(call project-set-path,qcom-audio,hardware/qcom/audio-caf/$(QCOM_HARDWARE_VARIANT)) -- cgit v1.1 From f4d20d15ffb0345b90682e2e821db3146a8b0fb7 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Tue, 3 Jan 2017 07:02:44 +0800 Subject: build: qcom_target: Define MSM_VIDC_TARGET_LIST Currently, in the media HAL, we're replacing the usage of this variable with a check for TARGET_BOARD_PLATFORM. Instead of having to do that every time a new branch is made, define the variable in qcom_target. Change-Id: Idd85b6f0b167bbc64833eb03335abcaa7b9de4a9 --- core/qcom_target.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/qcom_target.mk b/core/qcom_target.mk index d5631ab..a8ff03a 100644 --- a/core/qcom_target.mk +++ b/core/qcom_target.mk @@ -60,17 +60,22 @@ ifeq ($(BOARD_USES_QCOM_HARDWARE),true) 2ND_CLANG_TARGET_GLOBAL_CPPFLAGS += $(qcom_flags) ifeq ($(call is-board-platform-in-list, $(B_FAMILY)),true) + MSM_VIDC_TARGET_LIST := $(B_FAMILY) QCOM_HARDWARE_VARIANT := msm8974 else ifeq ($(call is-board-platform-in-list, $(B64_FAMILY)),true) + MSM_VIDC_TARGET_LIST := $(B64_FAMILY) QCOM_HARDWARE_VARIANT := msm8994 else ifeq ($(call is-board-platform-in-list, $(BR_FAMILY)),true) + MSM_VIDC_TARGET_LIST := $(BR_FAMILY) QCOM_HARDWARE_VARIANT := msm8916 else ifeq ($(call is-board-platform-in-list, $(UM_FAMILY)),true) + MSM_VIDC_TARGET_LIST := $(UM_FAMILY) QCOM_HARDWARE_VARIANT := msm8937 else + MSM_VIDC_TARGET_LIST := $(TARGET_BOARD_PLATFORM) QCOM_HARDWARE_VARIANT := $(TARGET_BOARD_PLATFORM) endif endif -- cgit v1.1 From b0637e759035063cd193b6a3a5fb69fe1ee4ff88 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sun, 8 Jan 2017 09:03:01 +0800 Subject: build: envsetup: Update CAF remote CAF recommends using https://source.codeaurora.org/quic/la now. Change-Id: Ic8d6451111f0e71bce044ffaae79f0acfc34caa1 --- envsetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envsetup.sh b/envsetup.sh index aed0616..42823df 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1732,7 +1732,7 @@ function cafremote() then PFX="platform/" fi - git remote add caf git://codeaurora.org/$PFX$PROJECT + git remote add caf https://source.codeaurora.org/quic/la/$PFX$PROJECT echo "Remote 'caf' created" } -- cgit v1.1 From bb05c8fc87643e7594b53b0fc6a3217745a2b0a3 Mon Sep 17 00:00:00 2001 From: Dan Pasanen Date: Sun, 8 Jan 2017 01:01:52 -0600 Subject: core: move platform-specific helper macros to target makefiles * These (qcom specifically) are now needed sooner than we had previously been importing them. Include them within their _target.mk makefiles. This ensures they'll be imported before their macros are needed. Change-Id: I06c6ab66446e2f0b54c245cf6c2cf665b649e0c9 --- core/main.mk | 6 ------ core/mtk_target.mk | 3 +++ core/qcom_target.mk | 3 +++ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/main.mk b/core/main.mk index 6560375..b82cd6a 100644 --- a/core/main.mk +++ b/core/main.mk @@ -105,12 +105,6 @@ include $(BUILD_SYSTEM)/config.mk # be generated correctly include $(BUILD_SYSTEM)/cleanbuild.mk -# Bring in Qualcomm helper macros -include $(BUILD_SYSTEM)/qcom_utils.mk - -# Bring in Mediatek helper macros too -include $(BUILD_SYSTEM)/mtk_utils.mk - # Include the google-specific config -include vendor/google/build/config.mk diff --git a/core/mtk_target.mk b/core/mtk_target.mk index 7c3ba1f..bc03eba 100644 --- a/core/mtk_target.mk +++ b/core/mtk_target.mk @@ -1,3 +1,6 @@ +# Bring in Mediatek helper macros +include $(BUILD_SYSTEM)/mtk_utils.mk + ifeq ($(BOARD_USES_MTK_HARDWARE),true) mtk_flags := -DMTK_HARDWARE diff --git a/core/qcom_target.mk b/core/qcom_target.mk index a8ff03a..40b1775 100644 --- a/core/qcom_target.mk +++ b/core/qcom_target.mk @@ -1,5 +1,8 @@ # Target-specific configuration +# Bring in Qualcomm helper macros +include $(BUILD_SYSTEM)/qcom_utils.mk + # Populate the qcom hardware variants in the project pathmap. define ril-set-path-variant $(call project-set-path-variant,ril,TARGET_RIL_VARIANT,hardware/$(1)) -- cgit v1.1 From 8cd2bcba15c328c124b28fc12cd1b9846633d5d5 Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Wed, 28 Dec 2016 11:33:29 +1100 Subject: build: support lineage device trees Change-Id: I087a97e31cab2ccfba16b5378cef429785baf7d0 --- core/product_config.mk | 6 +++++- envsetup.sh | 23 +++++++++++++++++------ tools/roomservice.py | 33 +++++++++++++++++++-------------- 3 files changed, 41 insertions(+), 21 deletions(-) diff --git a/core/product_config.mk b/core/product_config.mk index 89c6810..58b03e9 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -181,7 +181,11 @@ include $(BUILD_SYSTEM)/device.mk # A CM build needs only the CM product makefiles. ifneq ($(CM_BUILD),) - all_product_configs := $(shell find device -path "*/$(CM_BUILD)/cm.mk") + all_product_configs := $(shell find device -path "*/$(CM_BUILD)/lineage.mk") + ifeq ($(all_product_configs),) + # Fall back to cm.mk + all_product_configs := $(shell find device -path "*/$(CM_BUILD)/cm.mk") + endif else ifneq ($(strip $(TARGET_BUILD_APPS)),) # An unbundled app build needs only the core product makefiles. diff --git a/envsetup.sh b/envsetup.sh index 42823df..8030ce4 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -84,11 +84,17 @@ function check_product() return fi - if (echo -n $1 | grep -q -e "^cm_") ; then - CM_BUILD=$(echo -n $1 | sed -e 's/^cm_//g') - export BUILD_NUMBER=$((date +%s%N ; echo $CM_BUILD; hostname) | openssl sha1 | sed -e 's/.*=//g; s/ //g' | cut -c1-10) + if (echo -n $1 | grep -q -e "^lineage_") ; then + CM_BUILD=$(echo -n $1 | sed -e 's/^lineage_//g') + export BUILD_NUMBER=$((date +%s%N ; echo $CM_BUILD; hostname) | openssl sha1 | sed -e 's/.*=//g; s/ //g' | cut -c1-10) else - CM_BUILD= + # Fall back to cm_ + if (echo -n $1 | grep -q -e "^cm_") ; then + CM_BUILD=$(echo -n $1 | sed -e 's/^cm_//g') + export BUILD_NUMBER=$((date +%s%N ; echo $CM_BUILD; hostname) | openssl sha1 | sed -e 's/.*=//g; s/ //g' | cut -c1-10) + else + CM_BUILD= + fi fi export CM_BUILD @@ -568,11 +574,16 @@ function breakfast() # A buildtype was specified, assume a full device name lunch $target else - # This is probably just the CM model name + # This is probably just the Lineage model name if [ -z "$variant" ]; then variant="userdebug" fi - lunch cm_$target-$variant + lunch lineage_$target-$variant + if [ $? -ne 0 ]; then + # try CM + echo "** Warning: '$target' is using CM-based makefiles. This will be deprecated in the next major release." + lunch cm_$target-$variant + fi fi fi return $? diff --git a/tools/roomservice.py b/tools/roomservice.py index 5393907..691456e 100755 --- a/tools/roomservice.py +++ b/tools/roomservice.py @@ -203,25 +203,30 @@ def add_to_manifest(repositories, fallback_branch = None): def fetch_dependencies(repo_path, fallback_branch = None): print('Looking for dependencies') - dependencies_path = repo_path + '/cm.dependencies' + dependencies_paths = [repo_path + '/lineage.dependencies', repo_path + '/cm.dependencies'] + found_dependencies = False syncable_repos = [] - if os.path.exists(dependencies_path): - dependencies_file = open(dependencies_path, 'r') - dependencies = json.loads(dependencies_file.read()) - fetch_list = [] + for dependencies_path in dependencies_paths: + if os.path.exists(dependencies_path): + dependencies_file = open(dependencies_path, 'r') + dependencies = json.loads(dependencies_file.read()) + fetch_list = [] - for dependency in dependencies: - if not is_in_manifest(dependency['target_path']): - fetch_list.append(dependency) - syncable_repos.append(dependency['target_path']) + for dependency in dependencies: + if not is_in_manifest(dependency['target_path']): + fetch_list.append(dependency) + syncable_repos.append(dependency['target_path']) - dependencies_file.close() + dependencies_file.close() + found_dependencies = True - if len(fetch_list) > 0: - print('Adding dependencies to manifest') - add_to_manifest(fetch_list, fallback_branch) - else: + if len(fetch_list) > 0: + print('Adding dependencies to manifest') + add_to_manifest(fetch_list, fallback_branch) + break + + if not found_dependencies: print('Dependencies file not found, bailing out.') if len(syncable_repos) > 0: -- cgit v1.1 From a3b37940bdcdc04e786fcca54195f957aa83d72b Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Fri, 13 Jan 2017 08:21:29 +0800 Subject: build: kernel: Remove obsolete checks * BOARD_USES_UBOOT is unused. * Same goes for BOARD_USES_UNCOMPRESSED_BOOT. Furthermore, it is superseded by TARGET_USES_UNCOMPRESSED_KERNEL. Change-Id: I9f0e2848fcd0cd212bccacf14df55ad03f821051 --- core/tasks/kernel.mk | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/tasks/kernel.mk b/core/tasks/kernel.mk index bc70e38..de51b74 100644 --- a/core/tasks/kernel.mk +++ b/core/tasks/kernel.mk @@ -135,16 +135,6 @@ else KERNEL_ADDITIONAL_CONFIG_SRC := /dev/null endif -## Do be discontinued in a future version. Notify builder about target -## kernel format requirement -ifeq ($(BOARD_KERNEL_IMAGE_NAME),) -ifeq ($(BOARD_USES_UBOOT),true) - $(error "Please set BOARD_KERNEL_IMAGE_NAME to uImage") -else ifeq ($(BOARD_USES_UNCOMPRESSED_BOOT),true) - $(error "Please set BOARD_KERNEL_IMAGE_NAME to Image") -endif -endif - ifeq "$(wildcard $(KERNEL_SRC) )" "" ifneq ($(TARGET_PREBUILT_KERNEL),) HAS_PREBUILT_KERNEL := true -- cgit v1.1 From 918ca7f98412ec2e79ac0119327db2cf7120db2b Mon Sep 17 00:00:00 2001 From: Gabriele M Date: Wed, 11 Jan 2017 16:11:57 +0100 Subject: releasetools: Add script to sign zips Change-Id: I9cbeb6edea79a7e9bb0fc692e53497b54058d67f --- tools/releasetools/sign_zip.py | 69 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100755 tools/releasetools/sign_zip.py diff --git a/tools/releasetools/sign_zip.py b/tools/releasetools/sign_zip.py new file mode 100755 index 0000000..c40b1b4 --- /dev/null +++ b/tools/releasetools/sign_zip.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python +# +# Copyright (C) 2017 The LineageOS 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. + +""" +Signs the given zip with the given key producing a new zip. + +Usage: sign_release_zip [flags] input_zip output_zip + + -k (--package_key) Key to use to sign the package (default is + "build/target/product/security/testkey"). +""" +import sys + +import common + +OPTIONS = common.OPTIONS + +OPTIONS.package_key = "build/target/product/security/testkey" + +def SignOutput(input_zip_name, output_zip_name): + key_passwords = common.GetKeyPasswords([OPTIONS.package_key]) + pw = key_passwords[OPTIONS.package_key] + + common.SignFile(input_zip_name, output_zip_name, OPTIONS.package_key, pw, + whole_file=True) + + +def main(argv): + + def option_handler(o, a): + if o in ("-k", "--package_key"): + OPTIONS.package_key = a + else: + return False + return True + + args = common.ParseOptions(argv, __doc__, + extra_opts="k:", + extra_long_opts=[ + "package_key=", + ], extra_option_handler=option_handler) + if len(args) != 2: + common.Usage(__doc__) + sys.exit(1) + + SignOutput(args[0], args[1]) + + +if __name__ == '__main__': + try: + main(sys.argv[1:]) + except common.ExternalError as e: + print() + print(" ERROR: %s" % e) + print() + sys.exit(1) -- cgit v1.1 From ce54189f4551fda90f95d6a015bd0b897c9c73a3 Mon Sep 17 00:00:00 2001 From: Tom Powell Date: Fri, 20 Jan 2017 20:47:49 -0800 Subject: releasetools: support reading release keys out of some sort of command key passphrases may live in some sort of secure storage, support running an arbitrary command to retrieve them. Change-Id: I49862cf60f1b73a2356e0c492e1038beef28a95f --- tools/releasetools/common.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 32bbc68..ea7312a 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -863,6 +863,7 @@ class PasswordManager(object): def __init__(self): self.editor = os.getenv("EDITOR", None) self.pwfile = os.getenv("ANDROID_PW_FILE", None) + self.secure_storage_cmd = os.getenv("ANDROID_SECURE_STORAGE_CMD", None) def GetPasswords(self, items): """Get passwords corresponding to each string in 'items', @@ -882,9 +883,23 @@ class PasswordManager(object): missing = [] for i in items: if i not in current or not current[i]: - missing.append(i) + #Attempt to load using ANDROID_SECURE_STORAGE_CMD + if self.secure_storage_cmd: + try: + os.environ["TMP__KEY_FILE_NAME"] = str(i) + ps = subprocess.Popen(self.secure_storage_cmd, shell=True, stdout=subprocess.PIPE) + output = ps.communicate()[0] + if ps.returncode == 0: + current[i] = output + except Exception as e: + print(e) + pass + if i not in current or not current[i]: + missing.append(i) # Are all the passwords already in the file? if not missing: + if "ANDROID_SECURE_STORAGE_CMD" in os.environ: + del os.environ["ANDROID_SECURE_STORAGE_CMD"] return current for i in missing: -- cgit v1.1 From 24d91d8dd36b1b2a681461bea56a44605521861e Mon Sep 17 00:00:00 2001 From: Gabriele M Date: Tue, 10 Jan 2017 23:14:12 +0100 Subject: ota_from_target_files: Remove device dependent arguments These device-specific arguments are defined at build time and are necessary to generate the zip correctly. Don't use command line arguments to specify them, but write all the needed information in misc_info.txt when the target-files zip is generated. ota_from_target_files will then read misc_info.txt and set everything automatically. Change-Id: Ibdbca575b76eb07b53fccfcea52a351c7e333f91 --- core/Makefile | 12 ++++++------ tools/releasetools/ota_from_target_files.py | 21 ++++++--------------- 2 files changed, 12 insertions(+), 21 deletions(-) diff --git a/core/Makefile b/core/Makefile index eb9d5fd..aff7821 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1838,6 +1838,8 @@ ifdef PRODUCT_DEFAULT_DEV_CERTIFICATE else $(hide) build/tools/getb64key.py $(DEFAULT_SYSTEM_DEV_CERTIFICATE).x509.pem > $(zip_root)/META/releasekey.txt endif + $(hide) echo "ota_override_device=$(OTA_SCRIPT_OVERRIDE_DEVICE)" >> $(zip_root)/META/misc_info.txt + $(hide) echo "ota_override_prop=$(OTA_SCRIPT_OVERRIDE_PROP)" >> $(zip_root)/META/misc_info.txt @# Zip everything up, preserving symlinks $(hide) (cd $(zip_root) && zip -qry ../$(notdir $@) .) @# Run fs_config on all the system, vendor, boot ramdisk, @@ -1892,15 +1894,15 @@ endif endif ifeq ($(TARGET_OTA_ASSERT_DEVICE),) - $(INTERNAL_OTA_PACKAGE_TARGET): override_device := auto + OTA_SCRIPT_OVERRIDE_DEVICE := auto else - $(INTERNAL_OTA_PACKAGE_TARGET): override_device := $(TARGET_OTA_ASSERT_DEVICE) + OTA_SCRIPT_OVERRIDE_DEVICE := $(TARGET_OTA_ASSERT_DEVICE) endif ifneq ($(TARGET_UNIFIED_DEVICE),) - $(INTERNAL_OTA_PACKAGE_TARGET): override_prop := --override_prop=true + OTA_SCRIPT_OVERRIDE_PROP := true ifeq ($(TARGET_OTA_ASSERT_DEVICE),) - $(INTERNAL_OTA_PACKAGE_TARGET): override_device := $(TARGET_DEVICE) + OTA_SCRIPT_OVERRIDE_DEVICE := $(TARGET_OTA_ASSERT_DEVICE) endif endif @@ -1910,7 +1912,6 @@ endif $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS) @echo "$(OTA_FROM_TARGET_SCRIPT)" > $(PRODUCT_OUT)/ota_script_path - @echo "$(override_device)" > $(PRODUCT_OUT)/ota_override_device @echo -e ${CL_YLW}"Package OTA:"${CL_RST}" $@" $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$$PATH MKBOOTIMG=$(MKBOOTIMG) \ $(OTA_FROM_TARGET_SCRIPT) -v \ @@ -1918,7 +1919,6 @@ $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS) -p $(HOST_OUT) \ -k $(KEY_CERT_PAIR) \ --backup=$(backuptool) \ - --override_device=$(override_device) $(override_prop) \ $(if $(OEM_OTA_CONFIG), -o $(OEM_OTA_CONFIG)) \ $(BUILT_TARGET_FILES_PACKAGE) $@ diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py index e483b1c..c2fbb1d 100755 --- a/tools/releasetools/ota_from_target_files.py +++ b/tools/releasetools/ota_from_target_files.py @@ -96,14 +96,6 @@ Usage: ota_from_target_files [flags] input_target_files output_ota_package --backup Enable or disable the execution of backuptool.sh. Disabled by default. - - --override_device - Override device-specific asserts. Can be a comma-separated list. - - --override_prop - Override build.prop items with custom vendor init. - Enabled when TARGET_UNIFIED_DEVICE is defined in BoardConfig - """ from __future__ import print_function @@ -1629,10 +1621,6 @@ def main(argv): "a float" % (a, o)) elif o in ("--backup",): OPTIONS.backuptool = bool(a.lower() == 'true') - elif o in ("--override_device",): - OPTIONS.override_device = a - elif o in ("--override_prop",): - OPTIONS.override_prop = bool(a.lower() == 'true') else: return False return True @@ -1658,15 +1646,18 @@ def main(argv): "verify", "no_fallback_to_full", "stash_threshold=", - "backup=", - "override_device=", - "override_prop=" + "backup=" ], extra_option_handler=option_handler) if len(args) != 2: common.Usage(__doc__) sys.exit(1) + if "ota_override_device" in OPTIONS.info_dict: + OPTIONS.override_device = OPTIONS.info_dict.get("ota_override_device") + if "ota_override_prop" in OPTIONS.info_dict: + OPTIONS.override_prop = OPTIONS.info_dict.get("ota_override_prop") == "true" + if OPTIONS.extra_script is not None: OPTIONS.extra_script = open(OPTIONS.extra_script).read() -- cgit v1.1 From a9182851fe1b9c992809f42caced4dd7f29026dc Mon Sep 17 00:00:00 2001 From: Tom Powell Date: Sun, 22 Jan 2017 12:32:53 -0800 Subject: core: include libf2fs_fmt_host_dyn in otatools Change-Id: I4f31352139b2f38570f0370afff3901999082e48 --- core/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Makefile b/core/Makefile index aff7821..05169b0 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1557,7 +1557,8 @@ DISTTOOLS += \ $(HOST_LIBRARY_PATH)/libext2_e2p_host$(HOST_SHLIB_SUFFIX) \ $(HOST_LIBRARY_PATH)/libext2_profile_host$(HOST_SHLIB_SUFFIX) \ $(HOST_LIBRARY_PATH)/libext2_quota_host$(HOST_SHLIB_SUFFIX) \ - $(HOST_LIBRARY_PATH)/libext2_uuid_host$(HOST_SHLIB_SUFFIX) + $(HOST_LIBRARY_PATH)/libext2_uuid_host$(HOST_SHLIB_SUFFIX) \ + $(HOST_LIBRARY_PATH)/libf2fs_fmt_host_dyn$(HOST_SHLIB_SUFFIX) OTATOOLS := $(DISTTOOLS) \ $(HOST_OUT_EXECUTABLES)/aapt -- cgit v1.1 From 9347d9680eca73a55d83fea3c9320e91aa92605a Mon Sep 17 00:00:00 2001 From: Gabriele M Date: Sun, 22 Jan 2017 20:51:01 +0100 Subject: core: Fix unified trees with no TARGET_OTA_ASSERT_DEVICE If TARGET_OTA_ASSERT_DEVICE is not set, TARGET_DEVICE should be used for OTA_SCRIPT_OVERRIDE_DEVICE. Change-Id: If382dfa29dddb39498dec5f5eadc9895b7c47d88 --- core/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Makefile b/core/Makefile index 05169b0..6cf4b9e 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1903,7 +1903,7 @@ endif ifneq ($(TARGET_UNIFIED_DEVICE),) OTA_SCRIPT_OVERRIDE_PROP := true ifeq ($(TARGET_OTA_ASSERT_DEVICE),) - OTA_SCRIPT_OVERRIDE_DEVICE := $(TARGET_OTA_ASSERT_DEVICE) + OTA_SCRIPT_OVERRIDE_DEVICE := $(TARGET_DEVICE) endif endif -- cgit v1.1 From 3cfeedb4ae21399128cbc6f96ce3162611fafe1f Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Wed, 25 Jan 2017 22:39:55 +0800 Subject: ota_from_target_files: Fix cherry-pick error In commit 24d91d8dd36b1b2a681461bea56a44605521861e, info_dict is yet to be initialized when it is checked for "ota_override_device" and "ota_override_prop". Move the checks down to after info_dict is initialized. Change-Id: Ibcbc4f993dcd2dd281ec19624107dddd994fd497 --- tools/releasetools/ota_from_target_files.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py index c2fbb1d..66db227 100755 --- a/tools/releasetools/ota_from_target_files.py +++ b/tools/releasetools/ota_from_target_files.py @@ -1653,11 +1653,6 @@ def main(argv): common.Usage(__doc__) sys.exit(1) - if "ota_override_device" in OPTIONS.info_dict: - OPTIONS.override_device = OPTIONS.info_dict.get("ota_override_device") - if "ota_override_prop" in OPTIONS.info_dict: - OPTIONS.override_prop = OPTIONS.info_dict.get("ota_override_prop") == "true" - if OPTIONS.extra_script is not None: OPTIONS.extra_script = open(OPTIONS.extra_script).read() @@ -1667,6 +1662,11 @@ def main(argv): OPTIONS.target_tmp = OPTIONS.input_tmp OPTIONS.info_dict = common.LoadInfoDict(input_zip) + if "ota_override_device" in OPTIONS.info_dict: + OPTIONS.override_device = OPTIONS.info_dict.get("ota_override_device") + if "ota_override_prop" in OPTIONS.info_dict: + OPTIONS.override_prop = OPTIONS.info_dict.get("ota_override_prop") == "true" + # If this image was originally labelled with SELinux contexts, make sure we # also apply the labels in our new image. During building, the "file_contexts" # is in the out/ directory tree, but for repacking from target-files.zip it's -- cgit v1.1 From b954ff5caa5cc8fb7ebd643124e457f073a8291d Mon Sep 17 00:00:00 2001 From: mh0rst Date: Sun, 29 Jan 2017 14:35:26 +0100 Subject: Update security patch level to 2017-01-01. Change-Id: I21cea7dab2ab3236521a171ffa63dae6bb12cccd --- core/version_defaults.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/version_defaults.mk b/core/version_defaults.mk index e30ea21..65bbf74 100644 --- a/core/version_defaults.mk +++ b/core/version_defaults.mk @@ -105,7 +105,7 @@ ifeq "" "$(PLATFORM_SECURITY_PATCH)" # It must match one of the Android Security Patch Level strings of the Public Security Bulletins. # # If there is no $PLATFORM_SECURITY_PATCH set, keep it empty. - PLATFORM_SECURITY_PATCH := 2016-12-01 + PLATFORM_SECURITY_PATCH := 2017-01-01 endif ifeq "" "$(PLATFORM_BASE_OS)" -- cgit v1.1 From a14bcf5d0037a3d18d8b807b8999aca2cf524d56 Mon Sep 17 00:00:00 2001 From: Tom Powell Date: Fri, 3 Feb 2017 16:06:10 -0800 Subject: Include make_f2fs/mkf2fsuserimg in otatools Change-Id: I1657ae2ca79214eab70e8976f6f59e6b5433afcd --- core/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Makefile b/core/Makefile index 6cf4b9e..e14ff88 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1535,7 +1535,9 @@ DISTTOOLS := $(HOST_OUT_EXECUTABLES)/minigzip \ $(HOST_OUT_JAVA_LIBRARIES)/signapk.jar \ $(HOST_OUT_JAVA_LIBRARIES)/BootSignature.jar \ $(HOST_OUT_EXECUTABLES)/mkuserimg.sh \ + $(HOST_OUT_EXECUTABLES)/mkf2fsuserimg.sh \ $(HOST_OUT_EXECUTABLES)/make_ext4fs \ + $(HOST_OUT_EXECUTABLES)/make_f2fs \ $(HOST_OUT_EXECUTABLES)/simg2img \ $(HOST_OUT_EXECUTABLES)/e2fsck \ $(HOST_OUT_EXECUTABLES)/build_verity_tree \ -- cgit v1.1 From eee8d5e431f113c145fe8a7b34c3b797d7c5f1d5 Mon Sep 17 00:00:00 2001 From: Abhisek Devkota Date: Wed, 8 Feb 2017 12:12:13 -0800 Subject: Add dumpvar for WITH_SU -Allow folks to see easily if the term session they are in has WITH_SU set to true -Also add a dumpvar rule for WITH_GMS for those that have it -Remove unused CYNGN dumpvar rules Change-Id: I8cba8ffecd8f8943c69326ae07bcc17ea61e3f34 --- core/dumpvar.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/dumpvar.mk b/core/dumpvar.mk index 0166e96..563683f 100644 --- a/core/dumpvar.mk +++ b/core/dumpvar.mk @@ -84,9 +84,11 @@ $(info HOST_OS_EXTRA=$(HOST_OS_EXTRA)) $(info HOST_BUILD_TYPE=$(HOST_BUILD_TYPE)) $(info BUILD_ID=$(BUILD_ID)) $(info OUT_DIR=$(OUT_DIR)) -ifeq ($(CYNGN_TARGET),true) -$(info CYNGN_TARGET=$(CYNGN_TARGET)) -$(info CYNGN_FEATURES=$(CYNGN_FEATURES)) +ifeq ($(WITH_SU),true) +$(info WITH_SU=$(WITH_SU)) +endif +ifeq ($(WITH_GMS),true) +$(info WITH_GMS=$(WITH_GMS)) endif $(info ============================================) endif -- cgit v1.1 From 25e01a691f9a43387cad574a3d2d64c74a390e4e Mon Sep 17 00:00:00 2001 From: Paul Keith Date: Wed, 8 Feb 2017 16:25:09 -0600 Subject: dumpvar: Dump RECOVERY_VARIANT if not empty * As more and more people are building twrp, let's remind them what they are doing Change-Id: I60b9d708f9192b9014d94c248fab8385b95951cf Signed-off-by: Paul Keith --- core/dumpvar.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/dumpvar.mk b/core/dumpvar.mk index 563683f..6bdcc5d 100644 --- a/core/dumpvar.mk +++ b/core/dumpvar.mk @@ -84,6 +84,9 @@ $(info HOST_OS_EXTRA=$(HOST_OS_EXTRA)) $(info HOST_BUILD_TYPE=$(HOST_BUILD_TYPE)) $(info BUILD_ID=$(BUILD_ID)) $(info OUT_DIR=$(OUT_DIR)) +ifneq ($(RECOVERY_VARIANT),) +$(info RECOVERY_VARIANT=$(RECOVERY_VARIANT) +endif ifeq ($(WITH_SU),true) $(info WITH_SU=$(WITH_SU)) endif -- cgit v1.1 From fafb7e2a14706f75bd76aca21c1c7d695f938ed3 Mon Sep 17 00:00:00 2001 From: "Kevin F. Haggerty" Date: Wed, 8 Feb 2017 22:56:15 -0700 Subject: dumpvar: Close yo' parens on RECOVERY_VARIANT Change-Id: Iedca93d7990fd8cd67e2086fe5bc151964d1059f --- core/dumpvar.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dumpvar.mk b/core/dumpvar.mk index 6bdcc5d..f60e455 100644 --- a/core/dumpvar.mk +++ b/core/dumpvar.mk @@ -85,7 +85,7 @@ $(info HOST_BUILD_TYPE=$(HOST_BUILD_TYPE)) $(info BUILD_ID=$(BUILD_ID)) $(info OUT_DIR=$(OUT_DIR)) ifneq ($(RECOVERY_VARIANT),) -$(info RECOVERY_VARIANT=$(RECOVERY_VARIANT) +$(info RECOVERY_VARIANT=$(RECOVERY_VARIANT)) endif ifeq ($(WITH_SU),true) $(info WITH_SU=$(WITH_SU)) -- cgit v1.1