ANDROID: remove CONFIG_ANDROID dependency for CONFIG_ASHMEM 31/310531/1
authorGreg Kroah-Hartman <gregkh@google.com>
Fri, 12 Aug 2022 13:30:27 +0000 (15:30 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 30 Apr 2024 08:34:19 +0000 (17:34 +0900)
In commit 1045a06724f3 ("remove CONFIG_ANDROID"), CONFIG_ANDROID is
removed, so fix up the CONFIG_ASHMEM build option to not require it to
be selected and built properly.

Fixes: 1045a06724f3 ("remove CONFIG_ANDROID")
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
[sw0312.kim: cherry-pick commit ea7be9d2625c of https://android.googlesource.com/kernel/common/+/refs/heads/android15-6.6 to support waydroid on tizen]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: If9cdf1350949cf98444c20d778d1ca1228a6cd6d

drivers/staging/Makefile
drivers/staging/android/Kconfig

index d3dd22d..2ec175e 100644 (file)
@@ -17,7 +17,7 @@ obj-$(CONFIG_IIO)             += iio/
 obj-$(CONFIG_FB_SM750)         += sm750fb/
 obj-$(CONFIG_USB_EMXX)         += emxx_udc/
 obj-$(CONFIG_MFD_NVEC)         += nvec/
-obj-$(CONFIG_ANDROID)          += android/
+obj-$(CONFIG_ASHMEM)           += android/
 obj-$(CONFIG_STAGING_BOARD)    += board/
 obj-$(CONFIG_LTE_GDM724X)      += gdm724x/
 obj-$(CONFIG_FB_TFT)           += fbtft/
index 70498ad..36f4413 100644 (file)
@@ -1,8 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 menu "Android"
 
-if ANDROID
-
 config ASHMEM
        bool "Enable the Anonymous Shared Memory Subsystem"
        depends on SHMEM
@@ -14,6 +12,4 @@ config ASHMEM
          It is, in theory, a good memory allocator for low-memory devices,
          because it can discard shared memory units when under memory pressure.
 
-endif # if ANDROID
-
 endmenu