mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-23 18:38:51 +09:00
![Masahiro Yamada](/assets/img/avatar_default.png)
Currently, Devres requires additional 16 byte for each allocation, which is not so insignificant in some cases. Add CONFIG_DEVRES to make this framework optional. If the option is disabled, devres functions fall back to non-managed variants. For example, devres_alloc() to kzalloc(), devm_kmalloc() to kmalloc(), etc. Because devres_head is also surrounded by an ifdef conditional, there is no memory overhead when CONFIG_DEVRES is disabled. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Suggested-by: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
16 lines
379 B
Makefile
16 lines
379 B
Makefile
#
|
|
# Copyright (c) 2013 Google, Inc
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-y += device.o lists.o root.o uclass.o util.o
|
|
obj-$(CONFIG_DEVRES) += devres.o
|
|
ifndef CONFIG_SPL_BUILD
|
|
obj-$(CONFIG_OF_CONTROL) += simple-bus.o
|
|
endif
|
|
obj-$(CONFIG_DM_DEVICE_REMOVE) += device-remove.o
|
|
obj-$(CONFIG_DM) += dump.o
|
|
obj-$(CONFIG_REGMAP) += regmap.o
|
|
obj-$(CONFIG_SYSCON) += syscon-uclass.o
|