diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-10-03 11:32:07 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-14 17:01:58 +0000 |
commit | 45ab4673cb6e7aa589d72f3f3700f7ed74a59e8d (patch) | |
tree | 0a70b80c64778887cf063a6bcfa662392c34c0c8 /Makefile | |
parent | 6003975a719df8440fb8da8ff7270eb6a3edc412 (diff) | |
download | chrome-ec-45ab4673cb6e7aa589d72f3f3700f7ed74a59e8d.tar.gz |
libc: Implement _exit(), which is needed by libc
_exit() is called by libc functions such as abort() or exit(). This
implementation replaces the one from newlib's libnosys.
BRANCH=none
BUG=b:234181908
TEST=make buildall
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I1d8f65fa206b3544a2772f38be854ee905532ad3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3933256
Reviewed-by: Andrea Grandi <agrandi@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -268,6 +268,8 @@ include $(BDIR)/build.mk endif ifeq ($(USE_BUILTIN_STDLIB), 1) include builtin/build.mk +else +include libc/build.mk endif include chip/$(CHIP)/build.mk include core/$(CORE)/build.mk @@ -310,6 +312,8 @@ endif all-obj-$(1)+=$(call objs_from_dir_p,common,common,$(1)) ifeq ($(USE_BUILTIN_STDLIB), 1) all-obj-$(1)+=$(call objs_from_dir_p,builtin,builtin,$(1)) +else +all-obj-$(1)+=$(call objs_from_dir_p,libc,libc,$(1)) endif all-obj-$(1)+=$(call objs_from_dir_p,driver,driver,$(1)) all-obj-$(1)+=$(call objs_from_dir_p,power,power,$(1)) @@ -364,6 +368,8 @@ dirs+=$(shell find common -type d) dirs+=$(shell find driver -type d) ifeq ($(USE_BUILTIN_STDLIB), 1) dirs+=builtin +else +dirs+=libc endif common_dirs=util |