Files
android_vendor_pawlet/config/version.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

51 lines
2.2 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
#
# Adapted from vendor/lineage/config/version.mk (The LineageOS Project).
#
PAWLET_MAJOR_VERSION := 1
PAWLET_MINOR_VERSION := 0
PAWLET_BUILD_DATE := $(shell date -u +%Y%m%d)
# PAWLET_BUILDTYPE comes from the environment; only recognised types are
# kept, everything else becomes UNOFFICIAL. ro.pawlet.releasetype must match
# the update server channel ("romtype"), so keep these in sync with it.
ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(PAWLET_BUILDTYPE)),)
PAWLET_BUILDTYPE := UNOFFICIAL
endif
# Full version suffix: <date>-<type>-<device>
PAWLET_VERSION_SUFFIX := $(PAWLET_BUILD_DATE)-$(PAWLET_BUILDTYPE)-$(PAWLET_BUILD)
# Canonical version (used in OTA zip filename)
PAWLET_VERSION := $(PAWLET_MAJOR_VERSION).$(PAWLET_MINOR_VERSION)-$(PAWLET_VERSION_SUFFIX)
# Short display version (major-suffix, like LineageOS 23-<suffix>)
PAWLET_DISPLAY_VERSION := $(PAWLET_MAJOR_VERSION)-$(PAWLET_VERSION_SUFFIX)
# ---------------------------------------------------------------------------
# Security patch level
# ---------------------------------------------------------------------------
# Bumped manually whenever a monthly AOSP security bulletin's patches are
# actually backported into the tree — this is a record of work done, not
# something CI infers automatically. See PawletOS-Build/docs/security-patch-process.md
# and PawletOS-Build/scripts/check_security_patch.py (run the latter to see
# how far behind this date is against the latest published AOSP bulletin).
#PAWLET_SECURITY_PATCH := 2026-07-05
#PLATFORM_SECURITY_PATCH := $(PAWLET_SECURITY_PATCH)
# ---------------------------------------------------------------------------
# System properties written into /product/build.prop
# ---------------------------------------------------------------------------
PRODUCT_PRODUCT_PROPERTIES += \
ro.pawlet.version=$(PAWLET_VERSION) \
ro.pawlet.display.version=$(PAWLET_DISPLAY_VERSION) \
ro.pawlet.build.version=$(PAWLET_MAJOR_VERSION).$(PAWLET_MINOR_VERSION) \
ro.pawlet.releasetype=$(PAWLET_BUILDTYPE)