This commit is contained in:
lemoer 2020-05-02 21:29:29 +02:00
parent 5eaad3748f
commit 2ed939450c
3 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ define Package/gluon-status-page/install
$(INSTALL_DIR) $(1)/lib/gluon/status-page/providers $(INSTALL_DIR) $(1)/lib/gluon/status-page/providers
$(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/
ifndef GLUON_MINIFY ifndef CONFIG_GLUON_MINIFY
$(CP) ./javascript/status-page.js $(1)/lib/gluon/status-page/www/static/status-page.js $(CP) ./javascript/status-page.js $(1)/lib/gluon/status-page/www/static/status-page.js
endif endif

View File

@ -61,7 +61,7 @@ endef
define GluonSrcDiet define GluonSrcDiet
rm -rf $(2) rm -rf $(2)
$(CP) $(1) $(2) $(CP) $(1) $(2)
ifdef GLUON_MINIFY ifdef CONFIG_GLUON_MINIFY
$(FIND) $(2) -type f | while read src; do \ $(FIND) $(2) -type f | while read src; do \
if luasrcdiet --noopt-binequiv -o "$$$$src.o" "$$$$src"; then \ if luasrcdiet --noopt-binequiv -o "$$$$src.o" "$$$$src"; then \
chmod $$$$(stat -c%a "$$$$src") "$$$$src.o"; \ chmod $$$$(stat -c%a "$$$$src") "$$$$src.o"; \

View File

@ -60,8 +60,8 @@ if istrue(env.GLUON_DEBUG) then
try_config 'CONFIG_TARGET_ROOTFS_PARTSIZE=500' try_config 'CONFIG_TARGET_ROOTFS_PARTSIZE=500'
end end
if istrue(env.GLUON_MINIFY) then if not istrue(env.GLUON_MINIFY) then
config 'CONFIG_GLUON_MINIFY=y' config '# CONFIG_GLUON_MINIFY is not set'
end end
packages { packages {