lineage: Convert build-manifest.xml to Android.bp
Change-Id: I2c629fc33af93232050834ac347674e7bb7cd8be
This commit is contained in:
committed by
Luca Stefani
parent
6d29d0ca7b
commit
2d4dffd4e3
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
||||
proprietary/*
|
||||
prebuilt/archive
|
||||
prebuilt/generated/*
|
||||
!prebuilt/generated/Android.bp
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
# Copyright (C) 2023 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.
|
||||
|
||||
ifdef MANIFEST_EXCLUDES
|
||||
MANIFEST_EXCLUDES := |$(MANIFEST_EXCLUDES)
|
||||
endif
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := build-manifest
|
||||
LOCAL_MODULE_SUFFIX := .xml
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_PRODUCT_MODULE := true
|
||||
|
||||
_build-manifest_intermediates := $(call intermediates-dir-for,$(LOCAL_MODULE_CLASS),$(LOCAL_MODULE))
|
||||
_build-manifest_xml := $(_build-manifest_intermediates)/$(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX)
|
||||
|
||||
$(_build-manifest_xml):
|
||||
mkdir -p $(dir $@)
|
||||
python3 .repo/repo/repo manifest -o - -r | grep -Ev "proprietary_$(MANIFEST_EXCLUDES)" > $@
|
||||
|
||||
include $(BUILD_SYSTEM)/base_rules.mk
|
||||
@@ -127,7 +127,7 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
# Build Manifest
|
||||
PRODUCT_PACKAGES += \
|
||||
build-manifest
|
||||
build-manifest.xml
|
||||
|
||||
# Lineage packages
|
||||
ifeq ($(PRODUCT_IS_ATV),)
|
||||
|
||||
10
prebuilt/generated/Android.bp
Normal file
10
prebuilt/generated/Android.bp
Normal file
@@ -0,0 +1,10 @@
|
||||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
prebuilt_etc {
|
||||
name: "build-manifest.xml",
|
||||
src: "build-manifest.xml",
|
||||
product_specific: true,
|
||||
}
|
||||
4
vendorsetup.sh
Executable file
4
vendorsetup.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
echo "- Generating vendor/lineage/prebuilt/generated/build-manifest.xml"
|
||||
python3 .repo/repo/repo manifest -o - -r | grep -Ev "proprietary_${MANIFEST_EXCLUDES}" > vendor/lineage/prebuilt/generated/build-manifest.xml
|
||||
Reference in New Issue
Block a user