Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# drivers/barcelona/gps/Makefile
|
|
#
|
|
# Makefile for the Barcelona GPS driver.
|
|
#
|
|
# Copyright (C) 2004,2005 TomTom BV <http://www.tomtom.com/>
|
|
# Author: Dimitry Andric <dimitry.andric@tomtom.com>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License version 2 as
|
|
# published by the Free Software Foundation.
|
|
|
|
###############################################################################
|
|
$(warning GPS_CHIP_ID != common)
|
|
# Necessary Check
|
|
ifeq ($(CONFIG_MTK_GPS_SUPPORT), y)
|
|
|
|
ifneq ($(KERNEL_OUT),)
|
|
ccflags-y += -imacros $(KERNEL_OUT)/include/generated/autoconf.h
|
|
endif
|
|
|
|
ifndef TOP
|
|
TOP := $(srctree)/..
|
|
endif
|
|
ifeq ($(TARGET_BUILD_VARIANT),$(filter $(TARGET_BUILD_VARIANT),userdebug user))
|
|
ldflags-y += -s
|
|
endif
|
|
|
|
# Force build fail on modpost warning
|
|
KBUILD_MODPOST_FAIL_ON_WARNINGS := y
|
|
###############################################################################
|
|
|
|
ccflags-y += -I$(srctree)/drivers/misc/mediatek/connectivity/power_throttling
|
|
###############################################################################
|
|
GPS_PWR_TEST_SUPPORT :=n
|
|
MODULE_NAME := gps_pwr
|
|
obj-m += $(MODULE_NAME).o
|
|
|
|
$(MODULE_NAME)-objs += gps_pwr.o
|
|
ifeq ($(GPS_PWR_TEST_SUPPORT),y)
|
|
ccflags-y += -DGPS_PWR_TEST_ENABLE
|
|
endif
|
|
$(warning gps_pwr has been build)
|
|
|
|
endif #ifeq ($(CONFIG_MTK_GPS_SUPPORT), y)
|
|
# EOF
|