Add a package for the dashboard. and remove hardcoded IP address.

This commit is contained in:
jbnadal
2017-06-08 13:55:09 +02:00
parent acd61f82ba
commit 443f1d0269
4 changed files with 33 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
config BR2_PACKAGE_DASHBOARD
bool "dashboard"
default n
help
html control dashboard

View File

@@ -0,0 +1,24 @@
################################################################################
#
# DASHBOARD
#
################################################################################
DASHBOARD_VERSION:= 1.0.0
DASHBOARD_SITE = $(TOPDIR)/../../src/prog/dashboard
DASHBOARD_SITE_METHOD = local
DASHBOARD_INSTALL_STAGING = NO
define DASHBOARD_BUILD_CMDS
cd $(@D) && \
npm install && \
npm run build
endef
define DASHBOARD_INSTALL_TARGET_CMDS
mkdir -p $(TARGET_DIR)/usr/local/share/dashboard
cp -a $(@D)/dist/* $(TARGET_DIR)/usr/local/share/dashboard
endef
$(eval $(generic-package))