fixup2
This commit is contained in:
parent
5eaad3748f
commit
2ed939450c
@ -18,7 +18,7 @@ define Package/gluon-status-page/install
|
||||
$(INSTALL_DIR) $(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
|
||||
endif
|
||||
|
||||
|
@ -61,7 +61,7 @@ endef
|
||||
define GluonSrcDiet
|
||||
rm -rf $(2)
|
||||
$(CP) $(1) $(2)
|
||||
ifdef GLUON_MINIFY
|
||||
ifdef CONFIG_GLUON_MINIFY
|
||||
$(FIND) $(2) -type f | while read src; do \
|
||||
if luasrcdiet --noopt-binequiv -o "$$$$src.o" "$$$$src"; then \
|
||||
chmod $$$$(stat -c%a "$$$$src") "$$$$src.o"; \
|
||||
|
@ -60,8 +60,8 @@ if istrue(env.GLUON_DEBUG) then
|
||||
try_config 'CONFIG_TARGET_ROOTFS_PARTSIZE=500'
|
||||
end
|
||||
|
||||
if istrue(env.GLUON_MINIFY) then
|
||||
config 'CONFIG_GLUON_MINIFY=y'
|
||||
if not istrue(env.GLUON_MINIFY) then
|
||||
config '# CONFIG_GLUON_MINIFY is not set'
|
||||
end
|
||||
|
||||
packages {
|
||||
|
Loading…
Reference in New Issue
Block a user