Skip to content
Snippets Groups Projects
Select Git revision
  • 7e8af99cf504ca1dc389f282a0c94f4a911571be
  • experimental default protected
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • experimental-2025-10-23
  • experimental-2025-10-23-base
  • experimental-2025-10-22
  • experimental-2025-10-22-base
  • experimental-2025-10-19
  • experimental-2025-10-19-base
  • experimental-2025-10-15
  • experimental-2025-10-15-base
  • experimental-2025-10-12
  • experimental-2025-10-12-base
  • experimental-2025-10-06
  • experimental-2025-10-06-base
  • experimental-2025-10-02
  • experimental-2025-10-02-base
  • experimental-2025-09-19
  • experimental-2025-09-19-base
  • experimental-2025-09-15
  • experimental-2025-09-15-base
  • experimental-2025-09-12
  • experimental-2025-09-12-base
41 results

generic

Blame
  • user avatar
    Matthias Schiffer authored and David Bauer committed
    In OpenWrt 19.07, the block size was increased to 1024KiB for "tiny"
    devices by default to save flash. Unfortunately, this also significantly
    increases the cache memory required by squashfs.
    
    In my test, the increased block size reduced the image size by ~64KiB,
    but increased the RAM usage by ~2.6MiB. As most tiny devices have only
    32MiB of RAM, this is not a reasonable tradeoff.
    
    The ar71xx-generic target already defines an even lower block size of
    64KiB.
    7e8af99c
    History
    generic 2.06 KiB
    assert(env.GLUON_LANGS)
    
    
    config('CONFIG_GLUON_SITEDIR="%s"', env.GLUON_SITEDIR)
    config('CONFIG_GLUON_RELEASE="%s"', env.GLUON_RELEASE)
    try_config('CONFIG_GLUON_BRANCH="%s"', env.GLUON_BRANCH or '')
    
    for lang in string.gmatch(env.GLUON_LANGS, '%S+') do
    	try_config('CONFIG_GLUON_WEB_LANG_%s=y', lang)
    end
    
    config('CONFIG_TARGET_%s=y', env.BOARD)
    if env.SUBTARGET ~= '' then
    	config('CONFIG_TARGET_%s_%s=y', env.BOARD, env.SUBTARGET)
    end
    
    -- Disable non-default feeds in distfeeds.conf
    config('# CONFIG_FEED_gluon_base is not set')
    
    local default_feeds = {}
    for feed in string.gmatch(exec_capture_raw('. scripts/default_feeds.sh && echo "$DEFAULT_FEEDS"'), '%S+') do
    	default_feeds[feed] = true
    end
    
    for feed in string.gmatch(exec_capture_raw('. scripts/modules.sh && echo -n "$FEEDS"'), '%S+') do
    	if not default_feeds[feed] then
    		config('# CONFIG_FEED_%s is not set', feed)
    	end
    end
    
    
    config '# CONFIG_TARGET_ROOTFS_INITRAMFS is not set'
    
    config 'CONFIG_DEVEL=y'
    config 'CONFIG_ALL_NONSHARED=y'
    
    config '# CONFIG_PACKAGE_usbip is not set' -- fails to build
    config '# CONFIG_PACKAGE_kmod-jool is not set' -- fails to build
    
    config 'CONFIG_BUSYBOX_CUSTOM=y'
    config '# CONFIG_BUSYBOX_CONFIG_FEATURE_PREFER_IPV4_ADDRESS is not set'
    
    config 'CONFIG_PACKAGE_ATH_DEBUG=y'
    
    try_config 'CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=256'
    
    config '# CONFIG_KERNEL_IP_MROUTE is not set'
    config '# CONFIG_KERNEL_IPV6_MROUTE is not set'
    
    try_config 'CONFIG_TARGET_MULTI_PROFILE=y'
    try_config 'CONFIG_TARGET_PER_DEVICE_ROOTFS=y'
    
    if istrue(env.GLUON_MULTIDOMAIN) then
    	config 'CONFIG_GLUON_MULTIDOMAIN=y'
    end
    
    if istrue(env.GLUON_AUTOREMOVE) then
    	config 'CONFIG_AUTOREMOVE=y'
    end
    
    if istrue(env.GLUON_DEBUG) then
    	config 'CONFIG_DEBUG=y'
    	config 'CONFIG_NO_STRIP=y'
    	config '# CONFIG_USE_STRIP is not set'
    	config '# CONFIG_USE_SSTRIP is not set'
    
    	try_config 'CONFIG_TARGET_ROOTFS_PARTSIZE=500'
    end
    
    if not istrue(env.GLUON_MINIFY) then
    	config '# CONFIG_GLUON_MINIFY is not set'
    end
    
    packages {
    	'-kmod-ipt-offload',
    	'-odhcpd-ipv6only',
    	'-ppp',
    	'-ppp-mod-pppoe',
    	'-wpad-mini',
    	'-wpad-basic',
    	'gluon-core',
    	'ip6tables',
    }