Files
android_vendor_pawlet/build/core/definitions.mk
T
oxmc 2fabb76ca0 build: de-Lineage the vendor tree; make bacon real; configurable cert paths
- bacon moves to build/core/definitions.mk, the one vendor hook stock AOSP
  includes (-include vendor/*/build/core/definitions.mk); the old
  build/core/config.mk + build/tasks/bacon.mk chain relied on hooks that
  only exist in Lineage's build/make fork and was never loaded.
- Drop dead helpers: check_product, repopick (script never existed),
  reposync, repodiff, pawlet_img (KonstaKANG device/brcm path), bib alias.
- psign/pota: certs dir from -c flag or PAWLET_CERTS_DIR; no ~/ default.
- version.mk: drop unused RELEASE_TYPE/TARGET_UNOFFICIAL_BUILD_ID vestiges;
  keep the buildtype filter backing ro.pawlet.releasetype.
- NOTICE: update the Lineage attribution list to match.
2026-07-15 13:36:48 -07:00

32 lines
1.5 KiB
Makefile

#
# Copyright (C) 2012 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS Project
# Copyright (C) 2025 oxmc / PawletOS
#
# SPDX-License-Identifier: Apache-2.0
#
# PawletOS build targets, loaded through the one vendor hook stock AOSP
# provides:
# build/make/core/definitions.mk:
# -include $(TOPDIR)vendor/*/build/core/definitions.mk
# The vendor/*/build/core/config.mk and vendor/*/build/tasks/*.mk hooks that
# LineageOS uses exist only in Lineage's build/make fork, not in AOSP.
#
# This file is parsed long before build/make/core/Makefile defines
# INTERNAL_OTA_PACKAGE_TARGET, so bacon is a phony target on the `otapackage`
# goal: prerequisite names are resolved at build time, and everything in the
# recipe expands at execution time, when all variables exist.
#
# ---------------------------------------------------------------------------
# bacon — PawletOS OTA package: PawletOS-<version>.zip + .sha256sum
# Adapted from vendor/lineage/build/tasks/bacon.mk (The LineageOS Project).
# ---------------------------------------------------------------------------
.PHONY: bacon
bacon: otapackage
$(if $(PAWLET_VERSION),,$(error bacon: $(TARGET_PRODUCT) is not a PawletOS product))
$(hide) ln -f $(INTERNAL_OTA_PACKAGE_TARGET) $(PRODUCT_OUT)/PawletOS-$(PAWLET_VERSION).zip
$(hide) prebuilts/build-tools/path/$(HOST_PREBUILT_TAG)/sha256sum $(PRODUCT_OUT)/PawletOS-$(PAWLET_VERSION).zip \
| sed "s|$(PRODUCT_OUT)/||" > $(PRODUCT_OUT)/PawletOS-$(PAWLET_VERSION).zip.sha256sum
@echo "Package Complete: $(PRODUCT_OUT)/PawletOS-$(PAWLET_VERSION).zip" >&2