Skip to content

[Q-COMPAT] common: Set PRODUCT_BUILD_RECOVERY_IMAGE=true#633

Merged
jerpelea merged 2 commits into
sonyxperiadev:masterfrom
ix5:product-build-recovery
Oct 1, 2019
Merged

[Q-COMPAT] common: Set PRODUCT_BUILD_RECOVERY_IMAGE=true#633
jerpelea merged 2 commits into
sonyxperiadev:masterfrom
ix5:product-build-recovery

Conversation

@ix5

@ix5 ix5 commented Aug 11, 2019

Copy link
Copy Markdown
Contributor

This is needed to get OTA packaging to work since Android Q since certain OTA parameters are extracted from an intermediate recovery image. Don't as why...

On Pie, a recovery image is built by default anyway, so this commit changes nothing on Pie.

Relavant: https://r.android.com/951796

Changing:

ifeq (,$(filter true, $(TARGET_NO_KERNEL) $(TARGET_NO_RECOVERY)))
[... build recoveryimage]

to:

ifeq ($(BOARD_USES_RECOVERY_AS_BOOT),true)
  BUILDING_RECOVERY_IMAGE := true
else ifeq ($(PRODUCT_BUILD_RECOVERY_IMAGE),)
  ifdef BOARD_RECOVERYIMAGE_PARTITION_SIZE
    ifeq (,$(filter true, $(TARGET_NO_KERNEL) $(TARGET_NO_RECOVERY)))
      BUILDING_RECOVERY_IMAGE := true
    endif
  endif
else ifeq ($(PRODUCT_BUILD_RECOVERY_IMAGE),true)
  BUILDING_RECOVERY_IMAGE := true
endif
[... build recoveryimage]

Also, move the treble buildvars in common.mk together.

@ix5 ix5 force-pushed the product-build-recovery branch from cafdcfd to fefbd68 Compare August 14, 2019 20:32
@jerpelea jerpelea force-pushed the master branch 2 times, most recently from 3cc88ac to 784b86e Compare September 4, 2019 11:42
@ix5 ix5 force-pushed the product-build-recovery branch from fefbd68 to 5d4775a Compare September 14, 2019 20:48
ix5 added 2 commits September 28, 2019 11:49
This is needed to get OTA packaging to work since Android Q
since certain OTA parameters are extracted from an
intermediate recovery image. Don't as why...

On Pie, a recovery image is built by default anyway, so this
commit changes nothing on Pie.

Relavant: https://r.android.com/951796

Changing:
```
ifeq (,$(filter true, $(TARGET_NO_KERNEL) $(TARGET_NO_RECOVERY)))
[... build recoveryimage]
```
to:
```
ifeq ($(BOARD_USES_RECOVERY_AS_BOOT),true)
  BUILDING_RECOVERY_IMAGE := true
else ifeq ($(PRODUCT_BUILD_RECOVERY_IMAGE),)
  ifdef BOARD_RECOVERYIMAGE_PARTITION_SIZE
    ifeq (,$(filter true, $(TARGET_NO_KERNEL) $(TARGET_NO_RECOVERY)))
      BUILDING_RECOVERY_IMAGE := true
    endif
  endif
else ifeq ($(PRODUCT_BUILD_RECOVERY_IMAGE),true)
  BUILDING_RECOVERY_IMAGE := true
endif
[... build recoveryimage]
```
@ix5 ix5 force-pushed the product-build-recovery branch from 5d4775a to 60ef542 Compare September 28, 2019 09:50
@jerpelea jerpelea merged commit 566bf9a into sonyxperiadev:master Oct 1, 2019
@ix5 ix5 deleted the product-build-recovery branch October 1, 2019 17:35
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.

2 participants