From 88e8728b22e50ae9ae47d0df496720bd6cf73af1 Mon Sep 17 00:00:00 2001 From: Antia Puentes Date: Thu, 19 Sep 2019 18:16:13 +0200 Subject: wam: auto-enable remote debug when agl-devel is on Apart from preventing remote debugging when agl-devel is not set, which was tackled in SPEC-2327, we are interested in having remote debugging available by default when agl-devel is set. WAM checks if files: * /var/agl-devel/preferences/devmode_enabled * /var/agl-devel/preferences/debug_system_apps exist to enable the dev mode and the remote web inspector, so we create those files by default when agl-devel is set. Bug-AGL: SPEC-2782 Change-Id: I557a633802e6baa15339708b00719d66adbcf1ac Signed-off-by: Antia Puentes --- meta-html5-framework/recipes-wam/wam/wam_git.bb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'meta-html5-framework/recipes-wam/wam/wam_git.bb') diff --git a/meta-html5-framework/recipes-wam/wam/wam_git.bb b/meta-html5-framework/recipes-wam/wam/wam_git.bb index a4012faa..16737cab 100644 --- a/meta-html5-framework/recipes-wam/wam/wam_git.bb +++ b/meta-html5-framework/recipes-wam/wam/wam_git.bb @@ -42,3 +42,10 @@ RDEPENDS_${PN} += "wam-tinyproxy" FILES_${PN} += "${sysconfdir}/init ${sysconfdir}/wam ${libdir}/webappmanager/plugins/*.so ${systemd_system_unitdir}" CXXFLAGS_append_agl-devel = " -DAGL_DEVEL" + +do_install_append_agl-devel() { + # Enable remote inspector and dev mode + install -d ${D}${localstatedir}/agl-devel/preferences + touch ${D}${localstatedir}/agl-devel/preferences/debug_system_apps + touch ${D}${localstatedir}/agl-devel/preferences/devmode_enabled +} \ No newline at end of file -- cgit 1.2.3-korg