* CTC's 2018 u-boot is more feature-complete for nx for now. * We may revisit this later. * This remediates issues with RAM carveout, clocks (on erista models), mod chip issues (on mariko models), and brings us almost in-line with L4t releases for nx. Change-Id: I622cc67acb543b6ac54c8ee7a585d88e8066606c
58 lines
2.1 KiB
Makefile
58 lines
2.1 KiB
Makefile
#
|
|
# Copyright (C) 2022 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.
|
|
#
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
LINEAGE_TOOLS_PATH := $(abspath prebuilts/tools-lineage/$(HOST_PREBUILT_TAG)/bin)
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := android.ini
|
|
LOCAL_SRC_FILES := android.ini
|
|
LOCAL_MODULE_CLASS := ETC
|
|
LOCAL_MODULE_PATH := $(PRODUCT_OUT)
|
|
include $(BUILD_PREBUILT)
|
|
INSTALLED_RADIOIMAGE_TARGET += $(PRODUCT_OUT)/android.ini
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := bootlogo_android
|
|
LOCAL_MODULE_SUFFIX := .bmp
|
|
LOCAL_SRC_FILES := bootlogo_android.bmp
|
|
LOCAL_MODULE_CLASS := ETC
|
|
LOCAL_MODULE_PATH := $(PRODUCT_OUT)
|
|
include $(BUILD_PREBUILT)
|
|
INSTALLED_RADIOIMAGE_TARGET += $(PRODUCT_OUT)/bootlogo_android.bmp
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := icon_android_hue
|
|
LOCAL_MODULE_SUFFIX := .bmp
|
|
LOCAL_SRC_FILES := icon_android_hue.bmp
|
|
LOCAL_MODULE_CLASS := ETC
|
|
LOCAL_MODULE_PATH := $(PRODUCT_OUT)
|
|
include $(BUILD_PREBUILT)
|
|
INSTALLED_RADIOIMAGE_TARGET += $(PRODUCT_OUT)/icon_android_hue.bmp
|
|
|
|
include $(CLEAR_VARS)
|
|
LOCAL_MODULE := boot.scr
|
|
LOCAL_MODULE_CLASS := ETC
|
|
LOCAL_MODULE_PATH := $(PRODUCT_OUT)
|
|
_uscript_input := $(abspath device/nintendo/nx/bootfiles/android_boot.txt)
|
|
_uscript_intermediates := $(call intermediates-dir-for,$(LOCAL_MODULE_CLASS),$(LOCAL_MODULE))
|
|
_uscript_archive := $(_uscript_intermediates)/$(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX)
|
|
$(_uscript_archive): $(_uscript_input)
|
|
@mkdir -p $(dir $@)
|
|
$(LINEAGE_TOOLS_PATH)/mkimage -A arm -T script -O linux -d $(_uscript_input) $(_uscript_intermediates)/boot.scr
|
|
include $(BUILD_SYSTEM)/base_rules.mk
|
|
INSTALLED_RADIOIMAGE_TARGET += $(PRODUCT_OUT)/boot.scr
|