summaryrefslogtreecommitdiff
path: root/api/Makefile
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2024-11-23 09:47:51 +0100
committerHeinrich Schuchardt <[email protected]>2025-01-05 02:30:47 +0100
commit6f7f47e8c09aac1a81a1cf5cf2d2c9fadcb9e662 (patch)
tree3292f0a378384044d18faee8a6d8163e4d903e28 /api/Makefile
parentec9263b4f15c4cf82eb6a211c67baa6385065b8e (diff)
API: unify platform_sys_info() implementations
ARM, MIPS, and RISCV can use the same implementation of platform_sys_info(). PPC provides some extra information. So keep it separate. Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'api/Makefile')
-rw-r--r--api/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/api/Makefile b/api/Makefile
index bd2d035fcdb..ce3de6b6a1c 100644
--- a/api/Makefile
+++ b/api/Makefile
@@ -1,8 +1,11 @@
-# SPDX-License-Identifier: GPL-2.0+
+# SPDX-License-Identifier: GPL-2.0-or-later
#
# (C) Copyright 2007 Semihalf
obj-y += api.o api_display.o api_net.o api_storage.o
-obj-$(CONFIG_ARM) += api_platform-arm.o
+
+ifeq (CONFIG_PPC,y)
obj-$(CONFIG_PPC) += api_platform-powerpc.o
-obj-$(CONFIG_MIPS) += api_platform-mips.o
+else
+obj-y += api_platform.o
+endif