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

Commit 7a5f66f1 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Ricardo Cerqueira
Browse files

init: Support for Geeksphone ONE devices

* /dev/msm_camera device (not directory)
	This is toggled by TARGET_HAS_ANCIENT_MSMCAMERA in BoardConfig.
	It's necessary because the radio in the ONE is pretty old,
	incompatible with any recent libqcamera or liboemcamera, and the
	original proprietaries refer to "/dev/msm_camera"

Change-Id: Ia70bd55b481b7be84999dde8e403d66184a69079
parent c44d973e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -22,6 +22,10 @@ LOCAL_SRC_FILES += bootchart.c
LOCAL_CFLAGS    += -DBOOTCHART=1
endif

ifeq ($(TARGET_HAS_ANCIENT_MSMCAMERA), true)
    LOCAL_CFLAGS += -DNO_MSM_CAMDIR
endif

LOCAL_MODULE:= init

LOCAL_FORCE_STATIC_EXECUTABLE := true
+2 −0
Original line number Diff line number Diff line
@@ -405,9 +405,11 @@ static void handle_device_event(struct uevent *uevent)
        } else if (!strncmp(uevent->subsystem, "adsp", 4)) {
            base = "/dev/adsp/";
            mkdir(base, 0755);
#ifndef NO_MSM_CAMDIR
        } else if (!strncmp(uevent->subsystem, "msm_camera", 10)) {
            base = "/dev/msm_camera/";
            mkdir(base, 0755);
#endif
        } else if(!strncmp(uevent->subsystem, "input", 5)) {
            base = "/dev/input/";
            mkdir(base, 0755);