Files
android_vendor_pawlet/config/version.mk
T
oxmc 9344e608f6 Initial commit: PawletOS vendor tree
Adds the full vendor/pawlet tree for PawletOS on Raspberry Pi 4/5:

- build/: envsetup.sh helpers (breakfast/brunch/mka), bacon OTA target,
  Soong namespace, build core hook
- config/: common.mk, version.mk, BoardConfigPawlet.mk, BoardConfigSoong.mk,
  privapp-permissions, me.pawlet.android feature XML
- hal/boot_control/rpi/: AIDL boot_control HAL for RPi A/B slot switching
- apps/Updater/: A/B OTA updater (download, verify, install, reboot)
- apps/PawletPlatform/: platform resource APK (device icons, strings)
- overlay/frameworks/base/core/res/: framework config overrides
- prebuilt/, vars/: init rc, aosp_target_release
2026-03-21 19:08:46 -07:00

53 lines
1.8 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)
# Accept PAWLET_BUILDTYPE from env or RELEASE_TYPE (CI compat)
ifndef PAWLET_BUILDTYPE
ifdef RELEASE_TYPE
RELEASE_TYPE := $(shell echo $(RELEASE_TYPE) | sed -e 's|^PAWLET_||g')
PAWLET_BUILDTYPE := $(RELEASE_TYPE)
endif
endif
# Only recognised types; everything else becomes UNOFFICIAL
ifeq ($(filter RELEASE NIGHTLY SNAPSHOT EXPERIMENTAL,$(PAWLET_BUILDTYPE)),)
PAWLET_BUILDTYPE := UNOFFICIAL
PAWLET_EXTRAVERSION :=
endif
ifeq ($(PAWLET_BUILDTYPE),UNOFFICIAL)
ifneq ($(TARGET_UNOFFICIAL_BUILD_ID),)
PAWLET_EXTRAVERSION := -$(TARGET_UNOFFICIAL_BUILD_ID)
endif
endif
# Full version suffix: <date>-<type>[-extraver]-<device>
PAWLET_VERSION_SUFFIX := $(PAWLET_BUILD_DATE)-$(PAWLET_BUILDTYPE)$(PAWLET_EXTRAVERSION)-$(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)
# ---------------------------------------------------------------------------
# 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)