rebase and so on
This commit is contained in:
		
							parent
							
								
									5aa1ea448a
								
							
						
					
					
						commit
						e577c7e9c4
					
				@ -212,11 +212,11 @@ GLUON_DEBUG
 | 
			
		||||
  Setting ``GLUON_DEBUG=1`` will provide firmware images including debugging symbols usable with GDB or
 | 
			
		||||
  similar tools. Requires a device or target with at least 16 MB of flash space, e.g. `x86-64`. Unset by default.
 | 
			
		||||
 | 
			
		||||
GLUON_DO_NOT_MINIFY
 | 
			
		||||
  Setting ``GLUON_DO_NOT_MINIFY`` will omit the minification of scripts during the build process.
 | 
			
		||||
  This setting is handy if human readable scripts on the devices are desired for development purposes.
 | 
			
		||||
  Be aware, that this will increase the size of the resulting images and is therefore not suitable
 | 
			
		||||
  for devices with small flash chips.
 | 
			
		||||
GLUON_MINIFY
 | 
			
		||||
  Setting ``GLUON_MINIFY`` will minify scripts during the build process. This flag is enabled by
 | 
			
		||||
  default. Disabling this flag is handy if human readable scripts on the devices are desired for
 | 
			
		||||
  development purposes. Be aware, that this will increase the size of the resulting images and
 | 
			
		||||
  is therefore not suitable for devices with small flash chips.
 | 
			
		||||
 | 
			
		||||
GLUON_DEVICES
 | 
			
		||||
  List of devices to build. The list contains the Gluon profile name of a device, the profile
 | 
			
		||||
 | 
			
		||||
@ -348,5 +348,6 @@ config GLUON_SPECIALIZE_KERNEL
 | 
			
		||||
	select KERNEL_IP_NF_TARGET_MASQUERADE
 | 
			
		||||
	select KERNEL_IP_NF_TARGET_REDIRECT
 | 
			
		||||
 | 
			
		||||
config GLUON_DO_NOT_MINIFY
 | 
			
		||||
	bool "Disables minification of gluon scripts during build"
 | 
			
		||||
config GLUON_MINIFY
 | 
			
		||||
	bool "Minify Gluon scripts"
 | 
			
		||||
	default y
 | 
			
		||||
 | 
			
		||||
@ -10,12 +10,18 @@ define Package/gluon-status-page
 | 
			
		||||
  DEPENDS:=+gluon-web +gluon-neighbour-info +gluon-respondd +uhttpd +sse-multiplex +libiwinfo +libjson-c +libnl-tiny +libubus-lua
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
PKG_CONFIG_DEPENDS += CONFIG_GLUON_MINIFY
 | 
			
		||||
 | 
			
		||||
define Package/gluon-status-page/install
 | 
			
		||||
	$(Gluon/Build/Install)
 | 
			
		||||
 | 
			
		||||
	$(INSTALL_DIR) $(1)/lib/gluon/status-page/providers
 | 
			
		||||
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/stations $(1)/lib/gluon/status-page/providers/
 | 
			
		||||
 | 
			
		||||
ifndef GLUON_MINIFY
 | 
			
		||||
	$(CP) ./javascript/status-page.js $(1)/lib/gluon/status-page/www/static/status-page.js
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
	$(INSTALL_DIR) $(1)/lib/gluon/status-page/view/
 | 
			
		||||
	$(LN) /lib/gluon/web/i18n $(1)/lib/gluon/status-page/
 | 
			
		||||
	$(LN) /lib/gluon/web/view/error $(1)/lib/gluon/status-page/view/
 | 
			
		||||
 | 
			
		||||
@ -3,6 +3,13 @@ PKG_FILE_DEPENDS += $(GLUON_MK)
 | 
			
		||||
 | 
			
		||||
PKG_BUILD_DEPENDS += luasrcdiet/host
 | 
			
		||||
 | 
			
		||||
<<<<<<< HEAD
 | 
			
		||||
=======
 | 
			
		||||
ifneq ($(wildcard ./luasrc/.),)
 | 
			
		||||
	PKG_CONFIG_DEPENDS += CONFIG_GLUON_MINIFY
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
>>>>>>> 51dde9fa... rebase and so on
 | 
			
		||||
ifneq ($(wildcard ./src/respondd.c),)
 | 
			
		||||
  PKG_BUILD_DEPENDS += respondd
 | 
			
		||||
endif
 | 
			
		||||
@ -57,12 +64,14 @@ endef
 | 
			
		||||
define GluonSrcDiet
 | 
			
		||||
	rm -rf $(2)
 | 
			
		||||
	$(CP) $(1) $(2)
 | 
			
		||||
ifdef 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"; \
 | 
			
		||||
			mv "$$$$src.o" "$$$$src"; \
 | 
			
		||||
		fi; \
 | 
			
		||||
	done
 | 
			
		||||
endif
 | 
			
		||||
endef
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -60,8 +60,8 @@ if istrue(env.GLUON_DEBUG) then
 | 
			
		||||
	try_config 'CONFIG_TARGET_ROOTFS_PARTSIZE=500'
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if envtrue.GLUON_DO_NOT_MINIFY then
 | 
			
		||||
	config 'CONFIG_GLUON_DO_NOT_MINIFY=y'
 | 
			
		||||
if istrue(env.GLUON_MINIFY) then
 | 
			
		||||
	config 'CONFIG_GLUON_MINIFY=y'
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
packages {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user