Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a58c0b5f authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Merge "Build init with clang."

parents ffa85da6 9efd95b0
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,8 @@ init_cflags += \
    -Wno-unused-parameter \
    -Wno-unused-parameter \
    -Werror \
    -Werror \


init_clang := true

# --
# --


include $(CLEAR_VARS)
include $(CLEAR_VARS)
@@ -30,6 +32,7 @@ LOCAL_SRC_FILES:= \


LOCAL_STATIC_LIBRARIES := libbase
LOCAL_STATIC_LIBRARIES := libbase
LOCAL_MODULE := libinit
LOCAL_MODULE := libinit
LOCAL_CLANG := $(init_clang)
include $(BUILD_STATIC_LIBRARY)
include $(BUILD_STATIC_LIBRARY)


include $(CLEAR_VARS)
include $(CLEAR_VARS)
@@ -69,6 +72,7 @@ LOCAL_POST_INSTALL_CMD := $(hide) mkdir -p $(TARGET_ROOT_OUT)/sbin; \
    ln -sf ../init $(TARGET_ROOT_OUT)/sbin/ueventd; \
    ln -sf ../init $(TARGET_ROOT_OUT)/sbin/ueventd; \
    ln -sf ../init $(TARGET_ROOT_OUT)/sbin/watchdogd
    ln -sf ../init $(TARGET_ROOT_OUT)/sbin/watchdogd


LOCAL_CLANG := $(init_clang)
include $(BUILD_EXECUTABLE)
include $(BUILD_EXECUTABLE)




@@ -85,4 +89,5 @@ LOCAL_SHARED_LIBRARIES += \
    libbase \
    libbase \


LOCAL_STATIC_LIBRARIES := libinit
LOCAL_STATIC_LIBRARIES := libinit
LOCAL_CLANG := $(init_clang)
include $(BUILD_NATIVE_TEST)
include $(BUILD_NATIVE_TEST)