buildroot receipe: Fix styp error
All checks were successful
the build was successful

This commit is contained in:
2019-04-11 23:32:12 +02:00
parent ec7019d0e9
commit ed991db789
18 changed files with 42 additions and 45 deletions

View File

@@ -2,4 +2,4 @@ config BR2_PACKAGE_DASHBOARD
bool "dashboard"
default n
help
html control dashboard
html control dashboard

View File

@@ -8,17 +8,16 @@ 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
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
mkdir -p $(TARGET_DIR)/usr/local/share/dashboard
cp -a $(@D)/dist/* $(TARGET_DIR)/usr/local/share/dashboard
endef
$(eval $(generic-package))