From a2b29d65a4808a121bc4cb548295f4def3ebf692 Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Thu, 30 Mar 2023 14:54:46 -0400 Subject: [PATCH] librecmc: libreCMC v6.0 Epoch ---- Based upon upstream 22.03 @ commit b1204ce28cf259e86c442df759c92127f5e6e678 --- .gitattributes | 1 + .gitignore | 34 + BSDmakefile | 6 + COPYING | 12 + Config.in | 40 + LICENSES/BSD-2-Clause | 32 + LICENSES/BSD-3-Clause | 36 + LICENSES/GPL-1.0 | 261 + LICENSES/GPL-2.0 | 355 + LICENSES/ISC | 24 + LICENSES/Linux-syscall-note | 25 + LICENSES/MIT | 30 + Makefile | 138 + config/Config-build.in | 390 + config/Config-devel.in | 143 + config/Config-images.in | 320 + config/Config-kernel.in | 1280 ++ config/check-uname.sh | 1 + feeds.conf.default | 1 + include/autotools.mk | 180 + include/bpf.mk | 83 + include/cmake.mk | 178 + include/debug.mk | 48 + include/depends.mk | 53 + include/device_table.txt | 5 + include/download.mk | 339 + include/feeds.mk | 53 + include/hardened-ld-pie.specs | 2 + include/hardening.mk | 61 + include/host-build.mk | 210 + include/image-commands.mk | 592 + include/image.mk | 772 ++ include/kernel-5.10 | 3 + include/kernel-build.mk | 184 + include/kernel-defaults.mk | 200 + include/kernel-version.mk | 42 + include/kernel.mk | 302 + include/meson.mk | 146 + include/netfilter.mk | 387 + include/nls.mk | 37 + include/package-bin.mk | 41 + include/package-defaults.mk | 162 + include/package-dumpinfo.mk | 57 + include/package-ipkg.mk | 276 + include/package-seccomp.mk | 12 + include/package.mk | 354 + include/prereq-build.mk | 216 + include/prereq.mk | 118 + include/quilt.mk | 181 + include/rootfs.mk | 101 + include/scan.awk | 19 + include/scan.mk | 120 + include/shell.sh | 15 + include/site/aarch64 | 30 + include/site/aarch64_be | 30 + include/site/arc | 30 + include/site/arm | 30 + include/site/armeb | 30 + include/site/darwin | 2 + include/site/i386 | 3 + include/site/i486 | 30 + include/site/i686 | 3 + include/site/linux | 78 + include/site/m68k | 28 + include/site/mips | 30 + include/site/mips64 | 30 + include/site/mips64el | 30 + include/site/mipsel | 30 + include/site/powerpc | 30 + include/site/powerpc64 | 26 + include/site/sparc | 30 + include/site/x86_64 | 30 + include/subdir.mk | 106 + include/target.mk | 355 + include/toolchain-build.mk | 23 + include/toplevel.mk | 269 + include/trusted-firmware-a.mk | 98 + include/u-boot.mk | 111 + include/uclibc++.mk | 2 + include/unpack.mk | 72 + include/verbose.mk | 63 + include/version.mk | 108 + package/Makefile | 114 + package/base-files/Makefile | 236 + package/base-files/files/bin/board_detect | 14 + package/base-files/files/bin/config_generate | 533 + package/base-files/files/bin/ipcalc.sh | 71 + package/base-files/files/etc/banner | 9 + package/base-files/files/etc/banner.failsafe | 15 + .../files/etc/board.d/99-default_network | 16 + package/base-files/files/etc/device_info | 4 + package/base-files/files/etc/diag.sh | 52 + package/base-files/files/etc/ethers | 6 + package/base-files/files/etc/fstab | 1 + package/base-files/files/etc/group | 11 + package/base-files/files/etc/hosts | 5 + .../files/etc/hotplug.d/net/00-sysctl | 9 + package/base-files/files/etc/init.d/boot | 55 + package/base-files/files/etc/init.d/done | 17 + .../base-files/files/etc/init.d/gpio_switch | 66 + package/base-files/files/etc/init.d/led | 141 + package/base-files/files/etc/init.d/sysctl | 44 + .../base-files/files/etc/init.d/sysfixtime | 34 + package/base-files/files/etc/init.d/system | 45 + package/base-files/files/etc/init.d/umount | 13 + package/base-files/files/etc/inittab | 3 + .../base-files/files/etc/iproute2/ematch_map | 8 + .../base-files/files/etc/iproute2/rt_protos | 18 + .../base-files/files/etc/iproute2/rt_tables | 12 + package/base-files/files/etc/openwrt_release | 7 + package/base-files/files/etc/openwrt_version | 1 + package/base-files/files/etc/os-release | 1 + package/base-files/files/etc/passwd | 5 + package/base-files/files/etc/preinit | 29 + package/base-files/files/etc/profile | 40 + package/base-files/files/etc/protocols | 57 + .../base-files/files/etc/rc.button/failsafe | 5 + package/base-files/files/etc/rc.button/power | 7 + package/base-files/files/etc/rc.button/reboot | 12 + package/base-files/files/etc/rc.button/reset | 31 + package/base-files/files/etc/rc.button/rfkill | 32 + package/base-files/files/etc/rc.common | 194 + package/base-files/files/etc/rc.local | 4 + package/base-files/files/etc/services | 173 + package/base-files/files/etc/shadow | 5 + package/base-files/files/etc/shells | 1 + package/base-files/files/etc/shinit | 12 + package/base-files/files/etc/sysctl.conf | 1 + .../files/etc/sysctl.d/10-default.conf | 27 + package/base-files/files/etc/sysupgrade.conf | 5 + .../files/etc/uci-defaults/10_migrate-shadow | 10 + .../etc/uci-defaults/12_network-generate-ula | 13 + .../files/etc/uci-defaults/13_fix-group-user | 9 + package/base-files/files/lib/functions.sh | 436 + .../base-files/files/lib/functions/caldata.sh | 184 + .../base-files/files/lib/functions/leds.sh | 94 + .../files/lib/functions/migrations.sh | 67 + .../base-files/files/lib/functions/network.sh | 311 + .../base-files/files/lib/functions/preinit.sh | 87 + .../base-files/files/lib/functions/service.sh | 103 + .../base-files/files/lib/functions/system.sh | 266 + .../files/lib/functions/uci-defaults.sh | 658 + .../files/lib/preinit/02_default_set_state | 5 + .../base-files/files/lib/preinit/02_sysinfo | 10 + .../files/lib/preinit/10_indicate_failsafe | 17 + .../files/lib/preinit/10_indicate_preinit | 166 + .../files/lib/preinit/30_failsafe_wait | 98 + .../files/lib/preinit/40_run_failsafe_hook | 16 + .../lib/preinit/50_indicate_regular_preinit | 9 + .../files/lib/preinit/70_initramfs_test | 12 + .../files/lib/preinit/80_mount_root | 35 + .../files/lib/preinit/99_10_failsafe_login | 14 + .../files/lib/preinit/99_10_run_init | 8 + .../base-files/files/lib/upgrade/common.sh | 288 + .../base-files/files/lib/upgrade/do_stage2 | 25 + package/base-files/files/lib/upgrade/emmc.sh | 67 + .../base-files/files/lib/upgrade/fwtool.sh | 93 + .../lib/upgrade/keep.d/base-files-essential | 11 + .../files/lib/upgrade/legacy-sdcard.sh | 91 + package/base-files/files/lib/upgrade/nand.sh | 360 + package/base-files/files/lib/upgrade/stage2 | 175 + package/base-files/files/rom/note | 3 + package/base-files/files/sbin/firstboot | 3 + package/base-files/files/sbin/hotplug-call | 18 + package/base-files/files/sbin/led.sh | 25 + package/base-files/files/sbin/pkg_check | 130 + package/base-files/files/sbin/sysupgrade | 384 + package/base-files/files/sbin/wifi | 254 + package/base-files/files/usr/lib/os-release | 18 + package/base-files/files/usr/libexec/login.sh | 5 + .../files/usr/libexec/validate_firmware_image | 66 + package/base-files/image-config.in | 277 + .../arm-trusted-firmware-rockchip/Makefile | 51 + .../boot/arm-trusted-firmware-sunxi/Makefile | 64 + package/boot/grub2/Makefile | 181 + package/boot/grub2/files/grub-early.cfg | 1 + .../grub2/patches/100-grub_setup_root.patch | 119 + package/boot/kexec-tools/Config.in | 14 + package/boot/kexec-tools/Makefile | 99 + package/boot/kexec-tools/files/kdump.config | 7 + package/boot/kexec-tools/files/kdump.defaults | 23 + package/boot/kexec-tools/files/kdump.init | 186 + ...magic-4-bytes-of-appended-DTB-in-zIm.patch | 52 + package/boot/uboot-envtools/Makefile | 86 + package/boot/uboot-envtools/files/apm821xx | 27 + package/boot/uboot-envtools/files/ath79 | 152 + package/boot/uboot-envtools/files/cns3xxx | 26 + package/boot/uboot-envtools/files/fw_printsys | 2 + package/boot/uboot-envtools/files/fw_setsys | 2 + .../boot/uboot-envtools/files/imx_cortexa9 | 64 + package/boot/uboot-envtools/files/ipq40xx | 72 + package/boot/uboot-envtools/files/ipq806x | 61 + package/boot/uboot-envtools/files/kirkwood | 38 + package/boot/uboot-envtools/files/lantiq | 37 + package/boot/uboot-envtools/files/layerscape | 24 + .../boot/uboot-envtools/files/mediatek_mt7622 | 52 + .../boot/uboot-envtools/files/mediatek_mt7623 | 29 + package/boot/uboot-envtools/files/mpc85xx | 27 + package/boot/uboot-envtools/files/mvebu | 69 + package/boot/uboot-envtools/files/mxs | 27 + package/boot/uboot-envtools/files/oxnas | 27 + package/boot/uboot-envtools/files/pistachio | 26 + package/boot/uboot-envtools/files/qoriq | 19 + package/boot/uboot-envtools/files/ramips | 94 + package/boot/uboot-envtools/files/realtek | 51 + .../uboot-envtools/files/uboot-envtools.sh | 46 + .../uboot-envtools/patches/001-compile.patch | 16 + package/boot/uboot-rockchip/Makefile | 107 + ...01-scripts-remove-dependency-on-swig.patch | 24 + ...-spl-remove-dtoc-of-pdata-generation.patch | 28 + ...rock64pro-disable-CONFIG_USE_PREBOOT.patch | 27 + .../of-platdata/nanopi-r2s-rk3328/dt-decl.h | 23 + .../of-platdata/nanopi-r2s-rk3328/dt-plat.c | 155 + .../nanopi-r2s-rk3328/dt-structs-gen.h | 51 + package/boot/uboot-sunxi/Makefile | 400 + .../patches/002-add-olimex-a13-som.patch | 20 + .../003-add-theobroma-a31-pangolin.patch | 375 + .../patches/062-A20-improve-gmac-upload.patch | 12 + .../063-fix-lime2-revK-add-micrel-PHY.patch | 44 + ...1-sun6i-sync-PLL1-multdiv-with-Boot1.patch | 32 + .../093-sun6i-fix-PLL-LDO-voltselect.patch | 69 + .../100-sun6i-alternate-on-UART2.patch | 16 + .../101-sun6i-support-console-on-UART2.patch | 30 + ...2-sunxi-make_CONS_INDEX-configurable.patch | 23 + ...-environment-for-dtc-binary-location.patch | 35 + .../patches/210-sunxi-deactivate-binman.patch | 37 + .../230-disable-axp209-on-a13-olinuxino.diff | 19 + .../250-sun8i-h3-zeropi-add-device-tree.patch | 81 + .../251-sun8i-h3-zeropi-add-defconfig.patch | 24 + ...2-sunxi-h3-add-support-for-nanopi-r1.patch | 198 + ...nxi-h5-add-support-for-nanopi-r1s-h5.patch | 271 + .../patches/260-add-missing-type-u64.patch | 10 + package/boot/uboot-sunxi/uEnv-a64.txt | 7 + package/boot/uboot-sunxi/uEnv-default.txt | 6 + package/boot/uboot-sunxi/uEnv-h6.txt | 7 + package/boot/uboot-sunxi/uEnv-pangolin.txt | 6 + package/devel/binutils/Makefile | 143 + package/devel/gdb/Makefile | 98 + .../001-gdb-pr14523-mips-signal-number.patch | 16 + .../devel/gdb/patches/110-shared_libgcc.patch | 76 + .../120-sigprocmask-invalid-call.patch | 38 + .../devel/gdb/patches/130-gdb-ctrl-c.patch | 35 + package/devel/gdb/patches/140-sgidefs.patch | 30 + package/devel/gdb/patches/150-mips64.patch | 32 + package/devel/perf/Makefile | 81 + package/devel/strace/Makefile | 85 + package/devel/strace/patches/010-m4.patch | 10 + package/devel/trace-cmd/Makefile | 63 + .../devel/trace-cmd/patches/100-musl.patch | 104 + .../patches/110-mac80211_tracepoint.patch | 24 + package/devel/valgrind/Makefile | 203 + package/devel/valgrind/files/default.supp | 42 + .../010-mips-Fix-new-syscall-numbers.patch | 131 + .../patches/100-fix_configure_check.patch | 11 + .../patches/130-fix_arm_arch_detection.patch | 17 + .../patches/130-mips_fix_soft_float.patch | 68 + .../firmware/linux-libre-firmware/Makefile | 39 + package/firmware/linux-libre-firmware/qca.mk | 16 + package/firmware/wireless-regdb/Makefile | 32 + .../patches/500-world-regd-5GHz.patch | 16 + package/kernel/bpf-headers/Makefile | 114 + package/kernel/bpf-headers/files/stdarg.h | 19 + .../src/include/generated/bounds.h | 14 + package/kernel/button-hotplug/Makefile | 50 + package/kernel/button-hotplug/src/Kconfig | 2 + package/kernel/button-hotplug/src/Makefile | 1 + .../button-hotplug/src/button-hotplug.c | 344 + package/kernel/cryptodev-linux/Makefile | 58 + ...-dtc-Update-to-version-with-overlays.patch | 642 + package/kernel/gpio-button-hotplug/Makefile | 45 + .../kernel/gpio-button-hotplug/src/Makefile | 1 + .../src/gpio-button-hotplug.c | 731 ++ package/kernel/ksmbd/Makefile | 73 + .../ksmbd/patches/01-keep_kmod_metadata.patch | 11 + package/kernel/linux/Makefile | 68 + .../kernel/linux/files/hotplug-sched-teql.sh | 23 + .../linux/files/sysctl-br-netfilter.conf | 7 + .../linux/files/sysctl-nf-conntrack.conf | 8 + .../kernel/linux/files/sysctl-tcp-bbr.conf | 4 + package/kernel/linux/modules/001-depends.mk | 14 + package/kernel/linux/modules/block.mk | 612 + package/kernel/linux/modules/can.mk | 308 + package/kernel/linux/modules/crypto.mk | 979 ++ package/kernel/linux/modules/firewire.mk | 76 + package/kernel/linux/modules/fs.mk | 619 + package/kernel/linux/modules/gpio-cascade.mk | 20 + package/kernel/linux/modules/hwmon.mk | 620 + package/kernel/linux/modules/i2c.mk | 290 + package/kernel/linux/modules/iio.mk | 561 + package/kernel/linux/modules/input.mk | 229 + package/kernel/linux/modules/leds.mk | 212 + package/kernel/linux/modules/lib.mk | 285 + package/kernel/linux/modules/multiplexer.mk | 34 + package/kernel/linux/modules/netdevices.mk | 1290 ++ package/kernel/linux/modules/netfilter.mk | 1258 ++ package/kernel/linux/modules/netsupport.mk | 1439 +++ package/kernel/linux/modules/nls.mk | 339 + package/kernel/linux/modules/other.mk | 1252 ++ package/kernel/linux/modules/pcmcia.mk | 113 + package/kernel/linux/modules/sound.mk | 536 + package/kernel/linux/modules/spi.mk | 75 + package/kernel/linux/modules/usb.mk | 1803 +++ package/kernel/linux/modules/video.mk | 995 ++ package/kernel/linux/modules/virt.mk | 74 + package/kernel/linux/modules/w1.mk | 176 + package/kernel/linux/modules/wpan.mk | 152 + package/kernel/mac80211/Makefile | 326 + package/kernel/mac80211/ath.mk | 229 + .../files/lib/netifd/wireless/mac80211.sh | 1220 ++ .../mac80211/files/lib/wifi/mac80211.sh | 190 + .../kernel/mac80211/files/mac80211.hotplug | 5 + .../patches/ath/070-ath_common_config.patch | 10 + .../patches/ath/400-ath_move_debug_code.patch | 31 + .../patches/ath/402-ath_regd_optional.patch | 92 + .../patches/ath/403-world_regd_fixup.patch | 84 + .../patches/ath/404-regd_no_assoc_hints.patch | 19 + .../patches/ath/405-ath_regd_us.patch | 26 + .../ath/406-ath_relax_default_regd.patch | 51 + ...add_platform_eeprom_support_to_ath5k.patch | 56 + .../201-ath5k-WAR-for-AR71xx-PCI-bug.patch | 38 + .../ath5k/411-ath5k_allow_adhoc_and_ap.patch | 46 + .../ath5k/420-ath5k_disable_fast_cc.patch | 18 + .../ath5k/430-add_ath5k_platform.patch | 33 + .../patches/ath5k/432-ath5k_add_pciids.patch | 11 + .../ath5k/440-ath5k_channel_bw_debugfs.patch | 142 + ...-ieee80211-freq-limit-property-to-li.patch | 28 + ...w-reset-AHB-WMAC-interface-on-AR91xx.patch | 25 + ..._hw-issue-external-reset-for-QCA955x.patch | 129 + ...h9k-force-rx_clear-when-disabling-rx.patch | 35 + ...erpret-requested-txpower-in-EIRP-dom.patch | 36 + ...power-reduction-for-US-regulatory-do.patch | 24 + .../ath9k/401-ath9k_blink_default.patch | 11 + .../ath9k/410-ath9k_allow_adhoc_and_ap.patch | 10 + ...abled-MFP-capability-unconditionally.patch | 34 + .../ath9k/500-ath9k_eeprom_debugfs.patch | 65 + .../patches/ath9k/501-ath9k_ahb_init.patch | 34 + .../510-ath9k_intr_mitigation_tweak.patch | 18 + .../ath9k/511-ath9k_reduce_rxbuf.patch | 11 + .../ath9k/512-ath9k_channelbw_debugfs.patch | 125 + .../patches/ath9k/513-ath9k_add_pci_ids.patch | 30 + .../patches/ath9k/530-ath9k_extra_leds.patch | 267 + .../ath9k/531-ath9k_extra_platform_leds.patch | 76 + .../ath9k/540-ath9k_reduce_ani_interval.patch | 11 + .../ath9k/542-ath9k_debugfs_diag.patch | 139 + .../ath9k/543-ath9k_entropy_from_adc.patch | 186 + ...544-ath9k-ar933x-usb-hang-workaround.patch | 79 + .../ath9k/545-ath9k_ani_ws_detect.patch | 155 + .../ath9k/547-ath9k_led_defstate_fix.patch | 29 + .../ath9k/548-ath9k_enable_gpio_chip.patch | 251 + .../ath9k/549-ath9k_enable_gpio_buttons.patch | 143 + .../ath9k/551-ath9k_ubnt_uap_plus_hsr.patch | 403 + .../patches/ath9k/552-ath9k-ahb_of.patch | 331 + .../ath9k/553-ath9k_of_gpio_mask.patch | 25 + ...calibration-data-via-nvmem-subsystem.patch | 154 + ...-fetch-pci-init-values-through-nvmem.patch | 181 + .../patches/build/000-fix_kconfig.patch | 14 + .../patches/build/001-fix_build.patch | 169 + .../patches/build/002-change_allconfig.patch | 64 + .../build/003-remove_bogus_modparams.patch | 34 + .../build/012-kernel_build_check.patch | 11 + .../patches/build/015-ipw200-mtu.patch | 34 + .../patches/build/050-lib80211_option.patch | 34 + .../patches/build/060-no_local_ssb_bcma.patch | 335 + ...define-RF5592-in-init_eeprom-routine.patch | 52 + ...02-rt2x00-add-throughput-LED-trigger.patch | 76 + ...dd-support-for-external-PA-on-MT7620.patch | 125 + ...ove-up-and-reuse-busy-wait-functions.patch | 178 + ...-RF-self-TXDC-calibration-for-MT7620.patch | 106 + ...-rt2x00-add-r-calibration-for-MT7620.patch | 203 + ...00-add-RXDCOC-calibration-for-MT7620.patch | 117 + ...2x00-add-RXIQ-calibration-for-MT7620.patch | 434 + ...0-add-TX-LOFT-calibration-for-MT7620.patch | 982 ++ ...x00-move-helper-functions-up-in-file.patch | 94 + ...HT20-HT40-bandwidth-switch-on-MT7620.patch | 56 + .../patches/rt2x00/100-rt2x00_options.patch | 47 + ...to-build-rt2800soc-module-for-RT3883.patch | 30 + ...1-rt2x00-introduce-rt2x00_platform_h.patch | 32 + .../602-rt2x00-introduce-rt2x00eeprom.patch | 296 + .../603-rt2x00-of_load_eeprom_filename.patch | 31 + ...om-on-SoC-from-a-mtd-device-defines-.patch | 113 + ...isabling_bands_through_platform_data.patch | 47 + ...07-rt2x00-add_platform_data_mac_addr.patch | 25 + ...00-allow_disabling_bands_through_dts.patch | 19 + ...c-loadable-via-OF-on-rt288x-305x-SoC.patch | 33 + ...0-rt2x00-change-led-polarity-from-OF.patch | 40 + .../611-rt2x00-add-AP+STA-support.patch | 11 + ...t-support-for-external-LNA-on-MT7620.patch | 161 + ...duce-accessors-for-CHIP_VER-register.patch | 139 + ...-differentiate-based-on-SoC-CHIP_VER.patch | 408 + .../110-mac80211_keep_keys_on_stop_ap.patch | 12 + .../120-cfg80211_allow_perm_addr_change.patch | 43 + .../subsys/150-disable_addr_notifier.patch | 67 + .../mac80211/patches/subsys/210-ap_scan.patch | 11 + ...domize-BA-session-dialog-token-alloc.patch | 38 + ...-the-fwd_skb-dev-for-mesh-forwarding.patch | 62 + ...rse-boottime-for-airtime-fairness-co.patch | 60 + ...211_hwsim-make-6-GHz-channels-usable.patch | 74 + ...d-support-for-.ndo_fill_forward_path.patch | 178 + ...-minstrel_ht-fix-MINSTREL_FRAC-macro.patch | 21 + ...l_ht-reduce-fluctuations-in-rate-pro.patch | 30 + ...l_ht-rework-rate-downgrade-code-and-.patch | 151 + ...211-split-beacon-retrieval-functions.patch | 262 + ...11-MBSSID-and-EMA-support-in-AP-mode.patch | 493 + ...nt-APIs-for-dedicated-radar-detectio.patch | 378 + ...ffchan_cac_event-to-a-dedicated-work.patch | 183 + ...sible-NULL-pointer-dereference-in-cf.patch | 99 + ...e-offchan_cac_abort_wk-in-cfg80211_r.patch | 136 + ...ontinuous-radar-monitoring-on-offcha.patch | 220 + ...introduce-set_radar_offchan-callback.patch | 67 + ...offchannel_chain-structs-to-backgrou.patch | 532 + ...MBSSID-support-in-interface-handling.patch | 144 + ...11-MBSSID-beacon-handling-in-AP-mode.patch | 326 + .../325-mac80211-MBSSID-channel-switch.patch | 52 + ...bssid_indicator-in-ieee80211_assign_.patch | 25 + ...wake-queues-on-a-vif-that-is-being-s.patch | 38 + ...airtime-fairness-back-to-deficit-rou.patch | 1249 ++ ...a-airtime-deficit-field-s32-instead-.patch | 52 + ...r-aql_tx_pending-when-checking-airti.patch | 48 + ...cently-active-tx-queues-in-schedulin.patch | 118 + ...er-PHY-AQL-limit-to-improve-fairness.patch | 131 + ...ugfs-file-to-display-per-phy-AQL-pen.patch | 58 + ...cumulate-airtime-deficit-for-active-.patch | 36 + ...crease-quantum-for-airtime-scheduler.patch | 53 + ...-multicast-packets-from-AQL-pending-.patch | 30 + ...-not-abuse-fq.lock-in-ieee80211_do_s.patch | 46 + ...dlock-Don-t-start-TX-while-holding-f.patch | 40 + ...vif-queues-are-operational-after-sta.patch | 47 + ...x-decap-offload-for-stations-on-AP_V.patch | 37 + ...x-ieee80211_data_to_8023_exthdr-hand.patch | 99 + ...-not-drop-packets-smaller-than-the-L.patch | 25 + ...x-mesh-airtime-link-metric-estimatin.patch | 36 + .../500-mac80211_configure_antenna_gain.patch | 162 + ...the-dst-buffer-to-of_get_mac_address.patch | 29 + .../mac80211/scripts/import-backports.sh | 109 + package/kernel/nat46/Makefile | 35 + package/kernel/trelay/Makefile | 48 + package/kernel/trelay/files/trelay.config | 4 + package/kernel/trelay/files/trelay.hotplug | 5 + package/kernel/trelay/files/trelay.init | 32 + package/kernel/trelay/src/Makefile | 1 + package/kernel/trelay/src/trelay.c | 294 + package/lang/luasrcdiet/Makefile | 58 + package/libs/argp-standalone/Makefile | 61 + .../patches/001-throw-in-funcdef.patch | 79 + .../patches/002-no_optimize.patch | 11 + ...900-fix-segfault-in_canon_doc_option.patch | 14 + package/libs/elfutils/Makefile | 116 + .../patches/003-libintl-compatibility.patch | 23 + .../patches/005-build_only_libs.patch | 11 + .../006-Fix-build-on-aarch64-musl.patch | 55 + .../elfutils/patches/100-musl-compat.patch | 29 + .../libs/elfutils/patches/101-no-fts.patch | 83 + package/libs/expat/Makefile | 54 + package/libs/gettext-full/Makefile | 102 + .../patches/000-relocatable.patch | 30 + .../gettext-full/patches/001-autotools.patch | 24 + .../patches/001-no_examples_and_tests.patch | 22 + .../libs/gettext-full/patches/010-m4.patch | 382 + .../patches/150-disable_libxml_iconv.patch | 22 + package/libs/glib2/Makefile | 123 + .../patches/003-valgrind.h-mips16-fix.patch | 11 + package/libs/glib2/patches/006-c99.patch | 11 + package/libs/glib2/patches/010-libintl.patch | 144 + package/libs/gmp/Makefile | 70 + package/libs/jansson/Makefile | 50 + package/libs/libaudit/Makefile | 109 + ...tue-functions-for-strndupa-rawmemchr.patch | 133 + .../libaudit/patches/0002-fix-gcc-10.patch | 26 + package/libs/libbsd/Makefile | 45 + package/libs/libcap/Makefile | 116 + .../libcap/patches/300-disable-tests.patch | 10 + package/libs/libevent2/Makefile | 163 + package/libs/libffi/Makefile | 90 + package/libs/libiconv-full/Makefile | 90 + package/libs/libiconv/COPYING | 504 + package/libs/libiconv/COPYRIGHT | 20 + package/libs/libiconv/Makefile | 79 + package/libs/libiconv/src/LICENSE | 6 + package/libs/libiconv/src/iconv.c | 449 + package/libs/libiconv/src/include/charmaps.h | 80 + .../src/include/charmaps/iso-8859-10.h | 24 + .../src/include/charmaps/iso-8859-13.h | 24 + .../src/include/charmaps/iso-8859-14.h | 25 + .../src/include/charmaps/iso-8859-16.h | 24 + .../src/include/charmaps/iso-8859-2.h | 24 + .../src/include/charmaps/iso-8859-3.h | 24 + .../src/include/charmaps/iso-8859-4.h | 24 + .../src/include/charmaps/iso-8859-5.h | 24 + .../src/include/charmaps/iso-8859-6.h | 24 + .../src/include/charmaps/iso-8859-7.h | 24 + .../src/include/charmaps/iso-8859-8.h | 24 + .../src/include/charmaps/iso-8859-9.h | 24 + .../libiconv/src/include/charmaps/koi8-r.h | 24 + .../src/include/charmaps/windows-1250.h | 24 + .../src/include/charmaps/windows-1251.h | 24 + .../src/include/charmaps/windows-1252.h | 25 + .../src/include/charmaps/windows-1253.h | 24 + .../src/include/charmaps/windows-1254.h | 24 + .../src/include/charmaps/windows-1255.h | 24 + .../src/include/charmaps/windows-1256.h | 24 + .../src/include/charmaps/windows-1257.h | 24 + .../src/include/charmaps/windows-1258.h | 24 + .../src/include/charmaps/windows-874.h | 24 + package/libs/libiconv/src/include/iconv.h | 36 + package/libs/libiconv/src/m4/iconv.m4 | 214 + package/libs/libjson-c/Makefile | 56 + .../patches/001-dont-build-docs.patch | 11 + .../libs/libjson-c/patches/010-clang.patch | 11 + package/libs/libmbim/Makefile | 96 + package/libs/libmnl/Makefile | 78 + .../libs/libmnl/patches/001-fix_build.patch | 11 + package/libs/libnetfilter-conntrack/Makefile | 74 + ...-fix-build-with-kernel-5_15-and-musl.patch | 49 + package/libs/libnfnetlink/Makefile | 72 + package/libs/libnftnl/Makefile | 75 + package/libs/libnl-tiny/Makefile | 49 + package/libs/libnl/Makefile | 128 + ...ivate-field-in-libnl-pkg-config-file.patch | 25 + package/libs/libpam/Makefile | 81 + package/libs/libpam/files/pam.conf | 15 + .../libs/libpam/files/pam.d/common-account | 20 + package/libs/libpam/files/pam.d/common-auth | 21 + .../libs/libpam/files/pam.d/common-password | 28 + .../libs/libpam/files/pam.d/common-session | 25 + .../files/pam.d/common-session-noninteractive | 25 + package/libs/libpam/files/pam.d/other | 16 + ...uild-always-use-lib-instead-of-lib64.patch | 11 + package/libs/libpcap/Config.in | 17 + package/libs/libpcap/Makefile | 104 + .../libs/libpcap/patches/100-no-openssl.patch | 10 + .../libpcap/patches/102-skip-manpages.patch | 69 + .../patches/201-space_optimization.patch | 26 + package/libs/libqmi/Config.in | 31 + package/libs/libqmi/Makefile | 113 + package/libs/libqrtr-glib/Makefile | 70 + package/libs/libsepol/Makefile | 84 + package/libs/libtool/Makefile | 54 + package/libs/libubox/Makefile | 113 + package/libs/libunwind/Makefile | 62 + ...ce-exec_prefix-lib64-libdir-on-ppc64.patch | 29 + .../002-fix-building-getcontext_S.patch | 17 + ...03-fix-missing-ef_reg-defs-with-musl.patch | 45 + .../libs/libunwind/patches/004-ppc-musl.patch | 383 + package/libs/libusb/Makefile | 62 + ...n-the-Changelog-and-clean-up-a-stray.patch | 29 + ...parsing-of-descriptors-for-multi-con.patch | 61 + package/libs/libxml2/Makefile | 199 + package/libs/libxslt/Makefile | 166 + .../patches/010-fix-xml2-config-check.patch | 11 + package/libs/mbedtls/Makefile | 139 + .../mbedtls/patches/100-fix-compile.patch | 22 + ...l.h-workaround-for-gcc-11.2.0-issues.patch | 30 + package/libs/mbedtls/patches/200-config.patch | 228 + package/libs/musl-fts/Makefile | 63 + package/libs/ncurses/Makefile | 191 + .../100-ncurses-5.6-20080112-urxvt.patch | 175 + .../101-ncurses-5.6-20080628-kbs.patch | 52 + .../patches/102-ncurses-5.9-gcc-5.patch | 44 + .../patches/103-ncurses-ar-determinism.patch | 22 + .../patches/200-fix_missing_include.patch | 14 + .../libs/ncurses/patches/900-terminfo.patch | 20 + package/libs/nettle/Config.in | 9 + package/libs/nettle/Makefile | 93 + .../libs/nettle/patches/100-portability.patch | 34 + package/libs/openssl/Config.in | 296 + package/libs/openssl/Makefile | 403 + package/libs/openssl/engine.mk | 46 + package/libs/openssl/files/afalg.cnf | 3 + package/libs/openssl/files/devcrypto.cnf | 31 + package/libs/openssl/files/openssl.init | 31 + package/libs/openssl/files/padlock.cnf | 3 + ...m-ppc-xlate.pl-add-linux64v2-flavour.patch | 55 + .../patches/100-Configure-afalg-support.patch | 23 + .../openssl/patches/110-openwrt_targets.patch | 64 + .../120-strip-cflags-from-binary.patch | 21 + .../patches/130-dont-build-tests-fuzz.patch | 29 + .../patches/140-allow-prefer-chacha20.patch | 78 + .../150-openssl.cnf-add-engines-conf.patch | 29 + ...o-save-ioctl-if-EVP_MD_.FLAG_ONESHOT.patch | 58 + ..._devcrypto-add-configuration-options.patch | 566 + ...ypto-add-command-to-dump-driver-info.patch | 273 + ...o-make-the-dev-crypto-engine-dynamic.patch | 2718 ++++ ...default-to-not-use-digests-in-engine.patch | 41 + ...to-ignore-error-when-closing-session.patch | 24 + package/libs/pcre/Config.in | 11 + package/libs/pcre/Makefile | 129 + package/libs/popt/Makefile | 57 + package/libs/readline/Makefile | 72 + .../readline/patches/001-curses-link.patch | 16 + package/libs/sysfsutils/Makefile | 86 + package/libs/sysfsutils/files/local.conf | 1 + package/libs/sysfsutils/files/sysfs.conf | 22 + package/libs/sysfsutils/files/sysfsutils | 48 + .../patches/200-mnt_path_check.patch | 55 + package/libs/toolchain/Makefile | 737 ++ .../toolchain/glibc-files/etc/nsswitch.conf | 13 + package/libs/uclient/Makefile | 51 + package/libs/ustream-ssl/Makefile | 72 + package/libs/wolfssl/Config.in | 100 + package/libs/wolfssl/Makefile | 169 + .../patches/100-disable-hardening-check.patch | 11 + package/libs/zlib/Config.in | 11 + package/libs/zlib/Makefile | 98 + .../001-neon-implementation-of-adler32.patch | 253 + ...m-specific-optimisations-for-inflate.patch | 1909 +++ ...m-specific-optimisations-for-inflate.patch | 501 + ...rcefiles-in-patch-002-to-buildsystem.patch | 100 + .../005-relative-pkg-config-paths.patch | 14 + .../zlib/patches/006-fix-CVE-2022-37434.patch | 32 + ...x-compressor-crash-on-certain-inputs.patch | 343 + ...ll-dereference-in-fix-CVE-2022-37434.patch | 29 + package/luci/.github/issue_template | 40 + package/luci/.github/workflows/build.yml | 71 + package/luci/.github/workflows/ci_helpers.sh | 26 + package/luci/.github/workflows/formal.yml | 63 + package/luci/.github/workflows/jsdoc.yml | 33 + package/luci/.gitignore | 16 + package/luci/LICENSE | 201 + package/luci/NOTICE | 9 + .../applications/luci-app-commands/Makefile | 16 + .../luasrc/controller/commands.lua | 268 + .../luasrc/model/cbi/commands.lua | 27 + .../luasrc/view/commands.htm | 187 + .../luasrc/view/commands_public.htm | 50 + .../luci-app-commands/po/ar/commands.po | 155 + .../luci-app-commands/po/bg/commands.po | 155 + .../luci-app-commands/po/bn_BD/commands.po | 152 + .../luci-app-commands/po/ca/commands.po | 155 + .../luci-app-commands/po/cs/commands.po | 153 + .../luci-app-commands/po/da/commands.po | 156 + .../luci-app-commands/po/de/commands.po | 155 + .../luci-app-commands/po/el/commands.po | 151 + .../luci-app-commands/po/en/commands.po | 156 + .../luci-app-commands/po/es/commands.po | 156 + .../luci-app-commands/po/fi/commands.po | 156 + .../luci-app-commands/po/fr/commands.po | 157 + .../luci-app-commands/po/he/commands.po | 151 + .../luci-app-commands/po/hi/commands.po | 151 + .../luci-app-commands/po/hu/commands.po | 157 + .../luci-app-commands/po/it/commands.po | 156 + .../luci-app-commands/po/ja/commands.po | 154 + .../luci-app-commands/po/ko/commands.po | 152 + .../luci-app-commands/po/mr/commands.po | 156 + .../luci-app-commands/po/ms/commands.po | 151 + .../luci-app-commands/po/nb_NO/commands.po | 155 + .../luci-app-commands/po/pl/commands.po | 156 + .../luci-app-commands/po/pt/commands.po | 156 + .../luci-app-commands/po/pt_BR/commands.po | 156 + .../luci-app-commands/po/ro/commands.po | 156 + .../luci-app-commands/po/ru/commands.po | 162 + .../luci-app-commands/po/sk/commands.po | 156 + .../luci-app-commands/po/sv/commands.po | 155 + .../po/templates/commands.pot | 140 + .../luci-app-commands/po/tr/commands.po | 155 + .../luci-app-commands/po/uk/commands.po | 156 + .../luci-app-commands/po/vi/commands.po | 151 + .../luci-app-commands/po/zh_Hans/commands.po | 155 + .../luci-app-commands/po/zh_Hant/commands.po | 156 + .../share/rpcd/acl.d/luci-app-commands.json | 11 + .../applications/luci-app-firewall/Makefile | 16 + .../luci-static/resources/tools/firewall.js | 691 + .../resources/view/firewall/custom.js | 33 + .../resources/view/firewall/forwards.js | 293 + .../resources/view/firewall/rules.js | 490 + .../resources/view/firewall/snats.js | 304 + .../resources/view/firewall/zones.js | 363 + .../luci-app-firewall/po/ar/firewall.po | 1236 ++ .../luci-app-firewall/po/bg/firewall.po | 1113 ++ .../luci-app-firewall/po/bn_BD/firewall.po | 1112 ++ .../luci-app-firewall/po/ca/firewall.po | 1142 ++ .../luci-app-firewall/po/cs/firewall.po | 1156 ++ .../luci-app-firewall/po/da/firewall.po | 1265 ++ .../luci-app-firewall/po/de/firewall.po | 1289 ++ .../luci-app-firewall/po/el/firewall.po | 1125 ++ .../luci-app-firewall/po/en/firewall.po | 1117 ++ .../luci-app-firewall/po/es/firewall.po | 1290 ++ .../luci-app-firewall/po/fa/firewall.po | 1136 ++ .../luci-app-firewall/po/fi/firewall.po | 1265 ++ .../luci-app-firewall/po/fr/firewall.po | 1293 ++ .../luci-app-firewall/po/he/firewall.po | 1110 ++ .../luci-app-firewall/po/hi/firewall.po | 1112 ++ .../luci-app-firewall/po/hu/firewall.po | 1194 ++ .../luci-app-firewall/po/id/firewall.po | 1155 ++ .../luci-app-firewall/po/it/firewall.po | 1141 ++ .../luci-app-firewall/po/ja/firewall.po | 1268 ++ .../luci-app-firewall/po/ko/firewall.po | 1133 ++ .../luci-app-firewall/po/mr/firewall.po | 1112 ++ .../luci-app-firewall/po/ms/firewall.po | 1110 ++ .../luci-app-firewall/po/nb_NO/firewall.po | 1137 ++ .../luci-app-firewall/po/nl/firewall.po | 1120 ++ .../luci-app-firewall/po/pl/firewall.po | 1272 ++ .../luci-app-firewall/po/pt/firewall.po | 1291 ++ .../luci-app-firewall/po/pt_BR/firewall.po | 1287 ++ .../luci-app-firewall/po/ro/firewall.po | 1285 ++ .../luci-app-firewall/po/ru/firewall.po | 1294 ++ .../luci-app-firewall/po/si/firewall.po | 1112 ++ .../luci-app-firewall/po/sk/firewall.po | 1145 ++ .../luci-app-firewall/po/sv/firewall.po | 1138 ++ .../po/templates/firewall.pot | 1099 ++ .../luci-app-firewall/po/tr/firewall.po | 1271 ++ .../luci-app-firewall/po/uk/firewall.po | 1288 ++ .../luci-app-firewall/po/vi/firewall.po | 1122 ++ .../luci-app-firewall/po/zh_Hans/firewall.po | 1206 ++ .../luci-app-firewall/po/zh_Hant/firewall.po | 1215 ++ .../share/luci/menu.d/luci-app-firewall.json | 64 + .../share/rpcd/acl.d/luci-app-firewall.json | 24 + .../applications/luci-app-openvpn/Makefile | 16 + .../luasrc/controller/openvpn.lua | 58 + .../luasrc/model/cbi/openvpn-advanced.lua | 907 ++ .../luasrc/model/cbi/openvpn-basic.lua | 192 + .../luasrc/model/cbi/openvpn-file.lua | 86 + .../luasrc/model/cbi/openvpn.lua | 175 + .../view/openvpn/cbi-select-input-add.htm | 111 + .../luasrc/view/openvpn/ovpn_css.htm | 38 + .../luasrc/view/openvpn/pageswitch.htm | 30 + .../luci-app-openvpn/po/ar/openvpn.po | 823 ++ .../luci-app-openvpn/po/bg/openvpn.po | 821 ++ .../luci-app-openvpn/po/bn_BD/openvpn.po | 821 ++ .../luci-app-openvpn/po/ca/openvpn.po | 825 ++ .../luci-app-openvpn/po/cs/openvpn.po | 833 ++ .../luci-app-openvpn/po/da/openvpn.po | 841 ++ .../luci-app-openvpn/po/de/openvpn.po | 844 ++ .../luci-app-openvpn/po/el/openvpn.po | 824 ++ .../luci-app-openvpn/po/en/openvpn.po | 822 ++ .../luci-app-openvpn/po/es/openvpn.po | 842 ++ .../luci-app-openvpn/po/fa/openvpn.po | 829 ++ .../luci-app-openvpn/po/fi/openvpn.po | 821 ++ .../luci-app-openvpn/po/fr/openvpn.po | 855 ++ .../luci-app-openvpn/po/he/openvpn.po | 819 ++ .../luci-app-openvpn/po/hi/openvpn.po | 821 ++ .../luci-app-openvpn/po/hu/openvpn.po | 843 ++ .../luci-app-openvpn/po/it/openvpn.po | 840 ++ .../luci-app-openvpn/po/ja/openvpn.po | 821 ++ .../luci-app-openvpn/po/ko/openvpn.po | 821 ++ .../luci-app-openvpn/po/mr/openvpn.po | 821 ++ .../luci-app-openvpn/po/ms/openvpn.po | 819 ++ .../luci-app-openvpn/po/nb_NO/openvpn.po | 820 ++ .../luci-app-openvpn/po/pl/openvpn.po | 842 ++ .../luci-app-openvpn/po/pt/openvpn.po | 843 ++ .../luci-app-openvpn/po/pt_BR/openvpn.po | 841 ++ .../luci-app-openvpn/po/ro/openvpn.po | 841 ++ .../luci-app-openvpn/po/ru/openvpn.po | 909 ++ .../luci-app-openvpn/po/sk/openvpn.po | 819 ++ .../luci-app-openvpn/po/sv/openvpn.po | 821 ++ .../luci-app-openvpn/po/templates/openvpn.pot | 808 ++ .../luci-app-openvpn/po/tr/openvpn.po | 841 ++ .../luci-app-openvpn/po/uk/openvpn.po | 820 ++ .../luci-app-openvpn/po/vi/openvpn.po | 823 ++ .../luci-app-openvpn/po/zh_Hans/openvpn.po | 825 ++ .../luci-app-openvpn/po/zh_Hant/openvpn.po | 827 ++ .../root/etc/config/openvpn_recipes | 101 + .../share/rpcd/acl.d/luci-app-openvpn.json | 15 + .../luci/applications/luci-app-opkg/Makefile | 14 + .../htdocs/luci-static/resources/view/opkg.js | 1088 ++ .../applications/luci-app-opkg/po/ar/opkg.po | 345 + .../applications/luci-app-opkg/po/bg/opkg.po | 350 + .../luci-app-opkg/po/bn_BD/opkg.po | 340 + .../applications/luci-app-opkg/po/ca/opkg.po | 355 + .../applications/luci-app-opkg/po/cs/opkg.po | 350 + .../applications/luci-app-opkg/po/da/opkg.po | 349 + .../applications/luci-app-opkg/po/de/opkg.po | 357 + .../applications/luci-app-opkg/po/el/opkg.po | 352 + .../applications/luci-app-opkg/po/en/opkg.po | 340 + .../applications/luci-app-opkg/po/es/opkg.po | 354 + .../applications/luci-app-opkg/po/fi/opkg.po | 355 + .../applications/luci-app-opkg/po/fr/opkg.po | 354 + .../applications/luci-app-opkg/po/he/opkg.po | 340 + .../applications/luci-app-opkg/po/hi/opkg.po | 340 + .../applications/luci-app-opkg/po/hu/opkg.po | 352 + .../applications/luci-app-opkg/po/it/opkg.po | 354 + .../applications/luci-app-opkg/po/ja/opkg.po | 352 + .../applications/luci-app-opkg/po/ko/opkg.po | 351 + .../applications/luci-app-opkg/po/mr/opkg.po | 340 + .../applications/luci-app-opkg/po/ms/opkg.po | 351 + .../luci-app-opkg/po/nb_NO/opkg.po | 345 + .../applications/luci-app-opkg/po/pl/opkg.po | 356 + .../applications/luci-app-opkg/po/pt/opkg.po | 356 + .../luci-app-opkg/po/pt_BR/opkg.po | 357 + .../applications/luci-app-opkg/po/ro/opkg.po | 352 + .../applications/luci-app-opkg/po/ru/opkg.po | 357 + .../applications/luci-app-opkg/po/sk/opkg.po | 351 + .../applications/luci-app-opkg/po/sv/opkg.po | 349 + .../luci-app-opkg/po/templates/opkg.pot | 327 + .../applications/luci-app-opkg/po/tr/opkg.po | 351 + .../applications/luci-app-opkg/po/uk/opkg.po | 353 + .../applications/luci-app-opkg/po/vi/opkg.po | 351 + .../luci-app-opkg/po/zh_Hans/opkg.po | 345 + .../luci-app-opkg/po/zh_Hant/opkg.po | 341 + .../luci-app-opkg/root/usr/libexec/opkg-call | 59 + .../usr/share/luci/menu.d/luci-app-opkg.json | 13 + .../usr/share/rpcd/acl.d/luci-app-opkg.json | 29 + .../applications/luci-app-p910nd/Makefile | 14 + .../luasrc/model/cbi/p910nd.lua | 49 + .../luci-app-p910nd/po/ar/p910nd.po | 63 + .../luci-app-p910nd/po/bg/p910nd.po | 62 + .../luci-app-p910nd/po/bn_BD/p910nd.po | 62 + .../luci-app-p910nd/po/ca/p910nd.po | 66 + .../luci-app-p910nd/po/cs/p910nd.po | 62 + .../luci-app-p910nd/po/da/p910nd.po | 64 + .../luci-app-p910nd/po/de/p910nd.po | 64 + .../luci-app-p910nd/po/el/p910nd.po | 64 + .../luci-app-p910nd/po/en/p910nd.po | 64 + .../luci-app-p910nd/po/es/p910nd.po | 64 + .../luci-app-p910nd/po/fi/p910nd.po | 64 + .../luci-app-p910nd/po/fr/p910nd.po | 64 + .../luci-app-p910nd/po/he/p910nd.po | 65 + .../luci-app-p910nd/po/hi/p910nd.po | 60 + .../luci-app-p910nd/po/hu/p910nd.po | 62 + .../luci-app-p910nd/po/it/p910nd.po | 64 + .../luci-app-p910nd/po/ja/p910nd.po | 64 + .../luci-app-p910nd/po/ko/p910nd.po | 62 + .../luci-app-p910nd/po/mr/p910nd.po | 62 + .../luci-app-p910nd/po/ms/p910nd.po | 58 + .../luci-app-p910nd/po/nb_NO/p910nd.po | 60 + .../luci-app-p910nd/po/pl/p910nd.po | 66 + .../luci-app-p910nd/po/pt/p910nd.po | 64 + .../luci-app-p910nd/po/pt_BR/p910nd.po | 66 + .../luci-app-p910nd/po/ro/p910nd.po | 65 + .../luci-app-p910nd/po/ru/p910nd.po | 66 + .../luci-app-p910nd/po/sk/p910nd.po | 63 + .../luci-app-p910nd/po/sv/p910nd.po | 62 + .../luci-app-p910nd/po/templates/p910nd.pot | 49 + .../luci-app-p910nd/po/tr/p910nd.po | 62 + .../luci-app-p910nd/po/uk/p910nd.po | 63 + .../luci-app-p910nd/po/vi/p910nd.po | 64 + .../luci-app-p910nd/po/zh_Hans/p910nd.po | 65 + .../luci-app-p910nd/po/zh_Hant/p910nd.po | 65 + .../root/etc/uci-defaults/40_luci-p910nd | 10 + .../share/luci/menu.d/luci-app-p910nd.json | 15 + .../usr/share/rpcd/acl.d/luci-app-p910nd.json | 11 + .../applications/luci-app-uhttpd/Makefile | 21 + .../luasrc/model/cbi/uhttpd/uhttpd.lua | 232 + .../luci-app-uhttpd/po/ar/uhttpd.po | 270 + .../luci-app-uhttpd/po/bg/uhttpd.po | 269 + .../luci-app-uhttpd/po/bn_BD/uhttpd.po | 269 + .../luci-app-uhttpd/po/ca/uhttpd.po | 269 + .../luci-app-uhttpd/po/cs/uhttpd.po | 271 + .../luci-app-uhttpd/po/da/uhttpd.po | 285 + .../luci-app-uhttpd/po/de/uhttpd.po | 282 + .../luci-app-uhttpd/po/el/uhttpd.po | 269 + .../luci-app-uhttpd/po/en/uhttpd.po | 277 + .../luci-app-uhttpd/po/es/uhttpd.po | 291 + .../luci-app-uhttpd/po/fi/uhttpd.po | 270 + .../luci-app-uhttpd/po/fr/uhttpd.po | 289 + .../luci-app-uhttpd/po/he/uhttpd.po | 270 + .../luci-app-uhttpd/po/hi/uhttpd.po | 267 + .../luci-app-uhttpd/po/hu/uhttpd.po | 274 + .../luci-app-uhttpd/po/id/uhttpd.po | 283 + .../luci-app-uhttpd/po/it/uhttpd.po | 295 + .../luci-app-uhttpd/po/ja/uhttpd.po | 280 + .../luci-app-uhttpd/po/ko/uhttpd.po | 269 + .../luci-app-uhttpd/po/mr/uhttpd.po | 269 + .../luci-app-uhttpd/po/ms/uhttpd.po | 269 + .../luci-app-uhttpd/po/nb_NO/uhttpd.po | 269 + .../luci-app-uhttpd/po/pl/uhttpd.po | 286 + .../luci-app-uhttpd/po/pt/uhttpd.po | 280 + .../luci-app-uhttpd/po/pt_BR/uhttpd.po | 283 + .../luci-app-uhttpd/po/ro/uhttpd.po | 286 + .../luci-app-uhttpd/po/ru/uhttpd.po | 294 + .../luci-app-uhttpd/po/sk/uhttpd.po | 269 + .../luci-app-uhttpd/po/sv/uhttpd.po | 274 + .../luci-app-uhttpd/po/templates/uhttpd.pot | 258 + .../luci-app-uhttpd/po/tr/uhttpd.po | 285 + .../luci-app-uhttpd/po/uk/uhttpd.po | 288 + .../luci-app-uhttpd/po/vi/uhttpd.po | 269 + .../luci-app-uhttpd/po/zh_Hans/uhttpd.po | 271 + .../luci-app-uhttpd/po/zh_Hant/uhttpd.po | 271 + .../share/luci/menu.d/luci-app-uhttpd.json | 14 + .../usr/share/rpcd/acl.d/luci-app-uhttpd.json | 11 + .../applications/luci-app-wireguard/Makefile | 15 + .../resources/view/wireguard/status.js | 228 + .../luci-app-wireguard/po/ar/wireguard.po | 93 + .../luci-app-wireguard/po/bg/wireguard.po | 92 + .../luci-app-wireguard/po/bn_BD/wireguard.po | 92 + .../luci-app-wireguard/po/ca/wireguard.po | 92 + .../luci-app-wireguard/po/cs/wireguard.po | 92 + .../luci-app-wireguard/po/da/wireguard.po | 92 + .../luci-app-wireguard/po/de/wireguard.po | 92 + .../luci-app-wireguard/po/el/wireguard.po | 92 + .../luci-app-wireguard/po/en/wireguard.po | 92 + .../luci-app-wireguard/po/es/wireguard.po | 95 + .../luci-app-wireguard/po/fi/wireguard.po | 92 + .../luci-app-wireguard/po/fr/wireguard.po | 92 + .../luci-app-wireguard/po/he/wireguard.po | 93 + .../luci-app-wireguard/po/hi/wireguard.po | 86 + .../luci-app-wireguard/po/hu/wireguard.po | 92 + .../luci-app-wireguard/po/id/wireguard.po | 92 + .../luci-app-wireguard/po/it/wireguard.po | 92 + .../luci-app-wireguard/po/ja/wireguard.po | 96 + .../luci-app-wireguard/po/ko/wireguard.po | 93 + .../luci-app-wireguard/po/mr/wireguard.po | 92 + .../luci-app-wireguard/po/ms/wireguard.po | 92 + .../luci-app-wireguard/po/nb_NO/wireguard.po | 92 + .../luci-app-wireguard/po/pl/wireguard.po | 93 + .../luci-app-wireguard/po/pt/wireguard.po | 92 + .../luci-app-wireguard/po/pt_BR/wireguard.po | 95 + .../luci-app-wireguard/po/ro/wireguard.po | 93 + .../luci-app-wireguard/po/ru/wireguard.po | 98 + .../luci-app-wireguard/po/sk/wireguard.po | 92 + .../luci-app-wireguard/po/sv/wireguard.po | 92 + .../po/templates/wireguard.pot | 83 + .../luci-app-wireguard/po/tr/wireguard.po | 92 + .../luci-app-wireguard/po/uk/wireguard.po | 93 + .../luci-app-wireguard/po/vi/wireguard.po | 92 + .../po/zh_Hans/wireguard.po | 98 + .../po/zh_Hant/wireguard.po | 98 + .../share/luci/menu.d/luci-app-wireguard.json | 14 + .../share/rpcd/acl.d/luci-app-wireguard.json | 12 + package/luci/build/check-controllers.sh | 30 + .../luci/build/find-cherry-pick-candidates.pl | 44 + package/luci/build/i18n-add-language.sh | 37 + package/luci/build/i18n-init.sh | 24 + package/luci/build/i18n-merge-master.pl | 22 + package/luci/build/i18n-po2lua.pl | 27 + package/luci/build/i18n-scan.pl | 257 + package/luci/build/i18n-sync.sh | 24 + package/luci/build/i18n-update.pl | 83 + package/luci/build/luadoc/doc.lua | 126 + package/luci/build/luadoc/luadoc/config.lua | 34 + .../luci/build/luadoc/luadoc/doclet/debug.lua | 46 + .../build/luadoc/luadoc/doclet/formatter.lua | 84 + .../luci/build/luadoc/luadoc/doclet/html.lua | 275 + .../luadoc/luadoc/doclet/html/constant.lp | 28 + .../build/luadoc/luadoc/doclet/html/file.lp | 112 + .../luadoc/luadoc/doclet/html/function.lp | 64 + .../build/luadoc/luadoc/doclet/html/index.lp | 67 + .../luadoc/luadoc/doclet/html/luadoc.css | 285 + .../build/luadoc/luadoc/doclet/html/menu.lp | 55 + .../build/luadoc/luadoc/doclet/html/module.lp | 155 + .../build/luadoc/luadoc/doclet/html/table.lp | 15 + .../luci/build/luadoc/luadoc/doclet/raw.lua | 12 + package/luci/build/luadoc/luadoc/init.lua | 50 + package/luci/build/luadoc/luadoc/lp.lua | 130 + .../build/luadoc/luadoc/taglet/standard.lua | 567 + .../luadoc/luadoc/taglet/standard/tags.lua | 191 + package/luci/build/luadoc/luadoc/util.lua | 201 + package/luci/build/makedocs.sh | 21 + package/luci/build/mkbasepot.sh | 16 + package/luci/build/mkrevision.sh | 27 + package/luci/build/zoneinfo2lua.pl | 177 + package/luci/collections/luci-light/Makefile | 17 + .../collections/luci-ssl-openssl/Makefile | 21 + package/luci/collections/luci-ssl/Makefile | 19 + package/luci/collections/luci/Makefile | 23 + package/luci/contrib/package/Makefile | 2 + package/luci/contrib/package/csstidy/Makefile | 39 + .../luci/contrib/package/lucihttp/Makefile | 75 + package/luci/docs/CBI.md | 246 + package/luci/docs/JsonRpcHowTo.md | 66 + package/luci/docs/LAR.md | 87 + package/luci/docs/LMO.md | 144 + package/luci/docs/LuCI-0.10.md | 202 + package/luci/docs/Modules.md | 94 + package/luci/docs/ModulesHowTo.md | 153 + package/luci/docs/README.md | 6 + package/luci/docs/Templates.md | 65 + package/luci/docs/ThemesHowTo.md | 76 + package/luci/docs/api/index.html | 435 + package/luci/docs/api/luadoc.css | 285 + .../docs/api/modules/luci.dispatcher.html | 1149 ++ .../api/modules/luci.http.conditionals.html | 556 + .../luci/docs/api/modules/luci.http.date.html | 410 + package/luci/docs/api/modules/luci.http.html | 1271 ++ .../luci/docs/api/modules/luci.http.mime.html | 326 + package/luci/docs/api/modules/luci.i18n.html | 395 + .../luci/docs/api/modules/luci.ip.cidr.html | 1515 +++ package/luci/docs/api/modules/luci.ip.html | 1221 ++ package/luci/docs/api/modules/luci.json.html | 598 + package/luci/docs/api/modules/luci.jsonc.html | 397 + .../docs/api/modules/luci.jsonc.parser.html | 495 + .../docs/api/modules/luci.model.ipkg.html | 734 ++ .../luci/docs/api/modules/luci.model.uci.html | 1635 +++ package/luci/docs/api/modules/luci.rpcc.html | 328 + .../luci/docs/api/modules/luci.rpcc.ruci.html | 281 + package/luci/docs/api/modules/luci.sys.html | 645 + .../luci/docs/api/modules/luci.sys.init.html | 516 + .../docs/api/modules/luci.sys.iptparser.html | 466 + .../luci/docs/api/modules/luci.sys.net.html | 601 + .../docs/api/modules/luci.sys.process.html | 523 + .../luci/docs/api/modules/luci.sys.user.html | 416 + .../luci/docs/api/modules/luci.sys.wifi.html | 284 + package/luci/docs/api/modules/luci.util.html | 1772 +++ package/luci/docs/api/modules/luci.xml.html | 321 + .../docs/api/modules/nixio.CHANGELOG.html | 290 + .../docs/api/modules/nixio.CryptoHash.html | 316 + package/luci/docs/api/modules/nixio.File.html | 673 + .../luci/docs/api/modules/nixio.README.html | 374 + .../luci/docs/api/modules/nixio.Socket.html | 1033 ++ .../docs/api/modules/nixio.TLSContext.html | 479 + .../docs/api/modules/nixio.TLSSocket.html | 575 + .../docs/api/modules/nixio.UnifiedIO.html | 767 ++ package/luci/docs/api/modules/nixio.bin.html | 427 + package/luci/docs/api/modules/nixio.bit.html | 744 ++ .../luci/docs/api/modules/nixio.crypto.html | 319 + package/luci/docs/api/modules/nixio.fs.html | 1562 +++ package/luci/docs/api/modules/nixio.html | 2405 ++++ package/luci/docs/i18n.md | 19 + package/luci/docs/jsapi/README.md | 5 + package/luci/jsdoc.conf.json | 25 + package/luci/libs/luci-lib-base/Makefile | 14 + .../luci/libs/luci-lib-base/luasrc/debug.lua | 37 + .../luci/libs/luci-lib-base/luasrc/http.lua | 554 + .../libs/luci-lib-base/luasrc/http.luadoc | 260 + .../luci/libs/luci-lib-base/luasrc/ltn12.lua | 316 + .../luci/libs/luci-lib-base/luasrc/util.lua | 782 ++ .../libs/luci-lib-base/luasrc/util.luadoc | 419 + .../luci/libs/luci-lib-httpclient/Makefile | 14 + .../luci-lib-httpclient/luasrc/httpclient.lua | 419 + .../luasrc/httpclient/receiver.lua | 284 + .../libs/luci-lib-httpprotoutils/Makefile | 14 + .../luasrc/http/conditionals.lua | 110 + .../luasrc/http/conditionals.luadoc | 85 + .../luasrc/http/date.lua | 87 + .../luasrc/http/date.luadoc | 46 + .../luasrc/http/mime.lua | 78 + .../luasrc/http/mime.luadoc | 34 + package/luci/libs/luci-lib-ip/Makefile | 16 + package/luci/libs/luci-lib-ip/src/Makefile | 17 + package/luci/libs/luci-lib-ip/src/ip.c | 1699 +++ package/luci/libs/luci-lib-ip/src/ip.luadoc | 1065 ++ package/luci/libs/luci-lib-ipkg/Makefile | 14 + .../libs/luci-lib-ipkg/luasrc/model/ipkg.lua | 247 + .../luci-lib-ipkg/luasrc/model/ipkg.luadoc | 125 + package/luci/libs/luci-lib-iptparser/Makefile | 14 + .../luasrc/sys/iptparser.lua | 374 + .../luasrc/sys/iptparser.luadoc | 69 + package/luci/libs/luci-lib-json/Makefile | 16 + .../luci/libs/luci-lib-json/luasrc/json.lua | 535 + .../libs/luci-lib-json/luasrc/json.luadoc | 94 + package/luci/libs/luci-lib-jsonc/Makefile | 14 + package/luci/libs/luci-lib-jsonc/src/Makefile | 17 + package/luci/libs/luci-lib-jsonc/src/jsonc.c | 539 + .../luci/libs/luci-lib-jsonc/src/jsonc.luadoc | 146 + package/luci/libs/luci-lib-nixio/.gitignore | 11 + package/luci/libs/luci-lib-nixio/LICENSE | 201 + package/luci/libs/luci-lib-nixio/Makefile | 54 + package/luci/libs/luci-lib-nixio/NOTICE | 10 + package/luci/libs/luci-lib-nixio/README | 13 + .../luci/libs/luci-lib-nixio/axTLS/Makefile | 181 + package/luci/libs/luci-lib-nixio/axTLS/README | 3 + .../luci-lib-nixio/axTLS/bindings/Config.in | 105 + .../luci-lib-nixio/axTLS/bindings/Makefile | 86 + .../libs/luci-lib-nixio/axTLS/bindings/README | 43 + .../axTLS/bindings/csharp/Makefile | 35 + .../axTLS/bindings/csharp/axTLS.cs | 491 + .../axTLS/bindings/generate_SWIG_interface.pl | 393 + .../axTLS/bindings/generate_interface.pl | 322 + .../axTLS/bindings/java/Makefile | 94 + .../axTLS/bindings/java/SSL.java | 137 + .../axTLS/bindings/java/SSLCTX.java | 229 + .../axTLS/bindings/java/SSLClient.java | 81 + .../axTLS/bindings/java/SSLReadHolder.java | 61 + .../axTLS/bindings/java/SSLServer.java | 72 + .../axTLS/bindings/java/SSLUtil.java | 116 + .../axTLS/bindings/lua/Makefile | 67 + .../axTLS/bindings/perl/Makefile | 91 + .../axTLS/bindings/vbnet/Makefile | 35 + .../axTLS/bindings/vbnet/axTLSvb.vb | 200 + .../libs/luci-lib-nixio/axTLS/config/.config | 112 + .../luci-lib-nixio/axTLS/config/Config.in | 114 + .../luci-lib-nixio/axTLS/config/JMeter.jmx | 247 + .../luci-lib-nixio/axTLS/config/Rules.mak | 220 + .../luci-lib-nixio/axTLS/config/axhttpd.aip | 136 + .../luci-lib-nixio/axTLS/config/axtls.RES | Bin 0 -> 22748 bytes .../libs/luci-lib-nixio/axTLS/config/axtls.rc | 32 + .../libs/luci-lib-nixio/axTLS/config/config.h | 113 + .../luci-lib-nixio/axTLS/config/linuxconfig | 119 + .../luci-lib-nixio/axTLS/config/makefile.conf | 127 + .../axTLS/config/makefile.dotnet.conf | 65 + .../axTLS/config/makefile.java.conf | 58 + .../luci-lib-nixio/axTLS/config/makefile.post | 19 + .../scripts/config/Kconfig-language.txt | 255 + .../axTLS/config/scripts/config/Makefile | 121 + .../axTLS/config/scripts/config/conf.c | 583 + .../axTLS/config/scripts/config/confdata.c | 458 + .../axTLS/config/scripts/config/expr.c | 1099 ++ .../axTLS/config/scripts/config/expr.h | 195 + .../config/scripts/config/lex.zconf.c_shipped | 3688 ++++++ .../axTLS/config/scripts/config/lkc.h | 123 + .../axTLS/config/scripts/config/lkc_proto.h | 40 + .../scripts/config/lxdialog/BIG.FAT.WARNING | 4 + .../scripts/config/lxdialog/checklist.c | 372 + .../config/scripts/config/lxdialog/colors.h | 161 + .../config/scripts/config/lxdialog/dialog.h | 199 + .../config/scripts/config/lxdialog/inputbox.c | 240 + .../config/scripts/config/lxdialog/menubox.c | 438 + .../config/scripts/config/lxdialog/msgbox.c | 85 + .../config/scripts/config/lxdialog/textbox.c | 556 + .../config/scripts/config/lxdialog/util.c | 375 + .../config/scripts/config/lxdialog/yesno.c | 118 + .../axTLS/config/scripts/config/mconf.c | 977 ++ .../axTLS/config/scripts/config/menu.c | 390 + .../axTLS/config/scripts/config/mkconfigs | 67 + .../axTLS/config/scripts/config/symbol.c | 809 ++ .../axTLS/config/scripts/config/util.c | 109 + .../axTLS/config/scripts/config/zconf.l | 366 + .../config/scripts/config/zconf.tab.c_shipped | 2130 ++++ .../config/scripts/config/zconf.tab.h_shipped | 125 + .../axTLS/config/scripts/config/zconf.y | 690 + .../luci-lib-nixio/axTLS/config/win32config | 119 + .../libs/luci-lib-nixio/axTLS/crypto/Makefile | 50 + .../libs/luci-lib-nixio/axTLS/crypto/aes.c | 456 + .../libs/luci-lib-nixio/axTLS/crypto/bigint.c | 1575 +++ .../libs/luci-lib-nixio/axTLS/crypto/bigint.h | 99 + .../luci-lib-nixio/axTLS/crypto/bigint_impl.h | 112 + .../libs/luci-lib-nixio/axTLS/crypto/crypto.h | 222 + .../luci-lib-nixio/axTLS/crypto/crypto_misc.c | 357 + .../libs/luci-lib-nixio/axTLS/crypto/hmac.c | 100 + .../libs/luci-lib-nixio/axTLS/crypto/md2.c | 162 + .../libs/luci-lib-nixio/axTLS/crypto/md5.c | 293 + .../libs/luci-lib-nixio/axTLS/crypto/rc4.c | 91 + .../libs/luci-lib-nixio/axTLS/crypto/rsa.c | 268 + .../libs/luci-lib-nixio/axTLS/crypto/sha1.c | 248 + .../libs/luci-lib-nixio/axTLS/docsrc/Makefile | 39 + .../luci-lib-nixio/axTLS/docsrc/axTLS.dox | 1237 ++ .../axTLS/docsrc/doco_footer.html | 3 + .../axTLS/docsrc/images/axolotl.jpg | Bin 0 -> 3041 bytes .../axTLS/docsrc/images/tsbasbw.gif | Bin 0 -> 2481 bytes .../libs/luci-lib-nixio/axTLS/httpd/Config.in | 163 + .../libs/luci-lib-nixio/axTLS/httpd/Makefile | 127 + .../libs/luci-lib-nixio/axTLS/httpd/axhttp.h | 154 + .../libs/luci-lib-nixio/axTLS/httpd/axhttpd.c | 604 + .../luci-lib-nixio/axTLS/httpd/htpasswd.c | 136 + .../kepler-1.1-snapshot-20070521-1825.tar.gz | Bin 0 -> 768249 bytes .../luci-lib-nixio/axTLS/httpd/kepler.patch | 64 + .../libs/luci-lib-nixio/axTLS/httpd/proc.c | 1238 ++ .../luci-lib-nixio/axTLS/httpd/tdate_parse.c | 119 + .../luci-lib-nixio/axTLS/samples/Config.in | 63 + .../luci-lib-nixio/axTLS/samples/Makefile | 62 + .../luci-lib-nixio/axTLS/samples/c/Makefile | 76 + .../luci-lib-nixio/axTLS/samples/c/axssl.c | 883 ++ .../axTLS/samples/csharp/Makefile | 48 + .../axTLS/samples/csharp/axssl.cs | 758 ++ .../axTLS/samples/java/Makefile | 51 + .../axTLS/samples/java/axssl.java | 760 ++ .../axTLS/samples/java/manifest.mf | 1 + .../luci-lib-nixio/axTLS/samples/lua/Makefile | 43 + .../axTLS/samples/lua/axssl.lua | 562 + .../axTLS/samples/perl/Makefile | 43 + .../axTLS/samples/perl/axssl.pl | 634 + .../axTLS/samples/vbnet/Makefile | 48 + .../axTLS/samples/vbnet/axssl.vb | 702 ++ .../luci-lib-nixio/axTLS/ssl/BigIntConfig.in | 132 + .../libs/luci-lib-nixio/axTLS/ssl/Config.in | 336 + .../libs/luci-lib-nixio/axTLS/ssl/Makefile | 123 + .../luci/libs/luci-lib-nixio/axTLS/ssl/asn1.c | 510 + .../luci/libs/luci-lib-nixio/axTLS/ssl/cert.h | 43 + .../luci-lib-nixio/axTLS/ssl/crypto_misc.h | 164 + .../libs/luci-lib-nixio/axTLS/ssl/gen_cert.c | 363 + .../libs/luci-lib-nixio/axTLS/ssl/loader.c | 465 + .../libs/luci-lib-nixio/axTLS/ssl/openssl.c | 322 + .../libs/luci-lib-nixio/axTLS/ssl/os_port.c | 158 + .../libs/luci-lib-nixio/axTLS/ssl/os_port.h | 207 + .../luci/libs/luci-lib-nixio/axTLS/ssl/p12.c | 486 + .../luci-lib-nixio/axTLS/ssl/private_key.h | 54 + .../luci/libs/luci-lib-nixio/axTLS/ssl/ssl.h | 474 + .../luci-lib-nixio/axTLS/ssl/test/Makefile | 97 + .../axTLS/ssl/test/axTLS.ca_key.pem | 15 + .../axTLS/ssl/test/axTLS.ca_x509.cer | Bin 0 -> 483 bytes .../axTLS/ssl/test/axTLS.ca_x509.pem | 13 + .../axTLS/ssl/test/axTLS.device_key | Bin 0 -> 609 bytes .../axTLS/ssl/test/axTLS.device_key.pem | 15 + .../axTLS/ssl/test/axTLS.encrypted.p8 | Bin 0 -> 385 bytes .../axTLS/ssl/test/axTLS.encrypted_pem.p8 | 11 + .../axTLS/ssl/test/axTLS.key_1024 | Bin 0 -> 609 bytes .../axTLS/ssl/test/axTLS.key_1024.pem | 15 + .../axTLS/ssl/test/axTLS.key_2048 | Bin 0 -> 1191 bytes .../axTLS/ssl/test/axTLS.key_2048.pem | 27 + .../axTLS/ssl/test/axTLS.key_4096 | Bin 0 -> 2349 bytes .../axTLS/ssl/test/axTLS.key_4096.pem | 51 + .../axTLS/ssl/test/axTLS.key_512 | Bin 0 -> 321 bytes .../axTLS/ssl/test/axTLS.key_512.pem | 9 + .../axTLS/ssl/test/axTLS.key_aes128.pem | 12 + .../axTLS/ssl/test/axTLS.key_aes256.pem | 12 + .../axTLS/ssl/test/axTLS.noname.p12 | Bin 0 -> 1483 bytes .../axTLS/ssl/test/axTLS.unencrypted.p8 | Bin 0 -> 347 bytes .../axTLS/ssl/test/axTLS.unencrypted_pem.p8 | 10 + .../axTLS/ssl/test/axTLS.withCA.p12 | Bin 0 -> 2089 bytes .../axTLS/ssl/test/axTLS.withoutCA.p12 | Bin 0 -> 1573 bytes .../axTLS/ssl/test/axTLS.x509_1024.cer | Bin 0 -> 475 bytes .../axTLS/ssl/test/axTLS.x509_1024.pem | 12 + .../axTLS/ssl/test/axTLS.x509_2048.cer | Bin 0 -> 607 bytes .../axTLS/ssl/test/axTLS.x509_2048.pem | 15 + .../axTLS/ssl/test/axTLS.x509_4096.cer | Bin 0 -> 863 bytes .../axTLS/ssl/test/axTLS.x509_4096.pem | 20 + .../axTLS/ssl/test/axTLS.x509_512.cer | Bin 0 -> 406 bytes .../axTLS/ssl/test/axTLS.x509_512.pem | 11 + .../axTLS/ssl/test/axTLS.x509_aes128.pem | 11 + .../axTLS/ssl/test/axTLS.x509_aes256.pem | 11 + .../axTLS/ssl/test/axTLS.x509_bad_after.pem | 11 + .../axTLS/ssl/test/axTLS.x509_bad_before.pem | 11 + .../axTLS/ssl/test/axTLS.x509_device.cer | Bin 0 -> 401 bytes .../axTLS/ssl/test/axTLS.x509_device.pem | 24 + .../luci-lib-nixio/axTLS/ssl/test/datatest.c | 43 + .../axTLS/ssl/test/datatest.c.old | 280 + .../axTLS/ssl/test/deutsche_telecom.x509_ca | Bin 0 -> 670 bytes .../axTLS/ssl/test/equifax.x509_ca | Bin 0 -> 646 bytes .../luci-lib-nixio/axTLS/ssl/test/gnutls.cer | Bin 0 -> 599 bytes .../axTLS/ssl/test/header_issue.dat | Bin 0 -> 1159 bytes .../axTLS/ssl/test/killopenssl.sh | 2 + .../axTLS/ssl/test/make_certs.sh | 174 + .../axTLS/ssl/test/microsoft.x509_ca | Bin 0 -> 1046 bytes .../axTLS/ssl/test/microsoft.x509_ca.pem | 24 + .../luci-lib-nixio/axTLS/ssl/test/ms_iis.cer | 13 + .../axTLS/ssl/test/perf_bigint.c | 228 + .../luci-lib-nixio/axTLS/ssl/test/socgen.cer | Bin 0 -> 980 bytes .../luci-lib-nixio/axTLS/ssl/test/ssltest.c | 1983 +++ .../axTLS/ssl/test/ssltest.c.bak | 1940 +++ .../axTLS/ssl/test/test_axssl.sh | 163 + .../axTLS/ssl/test/thawte.x509_ca | Bin 0 -> 811 bytes .../axTLS/ssl/test/verisign.x509_ca | Bin 0 -> 668 bytes .../axTLS/ssl/test/verisign.x509_ca.pem | 16 + .../axTLS/ssl/test/verisign.x509_my_cert | Bin 0 -> 1095 bytes .../axTLS/ssl/test/verisign.x509_my_cert.pem | 25 + .../luci/libs/luci-lib-nixio/axTLS/ssl/tls1.c | 2057 +++ .../luci/libs/luci-lib-nixio/axTLS/ssl/tls1.h | 289 + .../libs/luci-lib-nixio/axTLS/ssl/tls1_clnt.c | 386 + .../libs/luci-lib-nixio/axTLS/ssl/tls1_svr.c | 476 + .../libs/luci-lib-nixio/axTLS/ssl/version.h | 1 + .../luci/libs/luci-lib-nixio/axTLS/ssl/x509.c | 502 + .../luci-lib-nixio/axTLS/www/bin/.htaccess | 2 + .../libs/luci-lib-nixio/axTLS/www/favicon.ico | Bin 0 -> 22486 bytes .../libs/luci-lib-nixio/axTLS/www/index.html | 7106 +++++++++++ .../luci-lib-nixio/axTLS/www/lua/download.lua | 75 + .../libs/luci-lib-nixio/axTLS/www/lua/env.lua | 26 + .../luci-lib-nixio/axTLS/www/lua/overview.lp | 64 + .../axTLS/www/lua/prepara_sql2.lua | 31 + .../axTLS/www/lua/test_conc.lua | 38 + .../axTLS/www/lua/test_cookies.lp | 13 + .../axTLS/www/lua/test_cookies.lua | 14 + .../luci-lib-nixio/axTLS/www/lua/test_err.lua | 4 + .../luci-lib-nixio/axTLS/www/lua/test_fs.lua | 23 + .../luci-lib-nixio/axTLS/www/lua/test_htk.lua | 22 + .../luci-lib-nixio/axTLS/www/lua/test_lib.lua | 31 + .../axTLS/www/lua/test_main.html | 127 + .../luci-lib-nixio/axTLS/www/lua/test_main.lp | 31 + .../axTLS/www/lua/test_main.lua | 46 + .../axTLS/www/lua/test_session.lua | 43 + .../luci-lib-nixio/axTLS/www/lua/test_sql.lua | 13 + .../axTLS/www/lua/test_sql2.lua | 24 + .../axTLS/www/lua/test_variables.lp | 14 + .../axTLS/www/test_dir/bin/.htaccess | 1 + .../axTLS/www/test_dir/no_http/.htaccess | 1 + .../axTLS/www/test_dir/no_http/.htpasswd | 2 + .../axTLS/www/test_dir/no_http/index.html | 6 + .../axTLS/www/test_dir/no_ssl/.htaccess | 1 + .../axTLS/www/test_dir/no_ssl/index.html | 6 + .../libs/luci-lib-nixio/axtls-config/.config | 112 + .../libs/luci-lib-nixio/axtls-config/config.h | 113 + .../axtls-root/etc/nixio/rsa_main.der | Bin 0 -> 609 bytes .../libs/luci-lib-nixio/docsrc/CHANGELOG.lua | 29 + .../libs/luci-lib-nixio/docsrc/README.lua | 95 + .../docsrc/nixio.CryptoHash.lua | 17 + .../libs/luci-lib-nixio/docsrc/nixio.File.lua | 109 + .../luci-lib-nixio/docsrc/nixio.Socket.lua | 170 + .../docsrc/nixio.TLSContext.lua | 46 + .../luci-lib-nixio/docsrc/nixio.TLSSocket.lua | 73 + .../luci-lib-nixio/docsrc/nixio.UnifiedIO.lua | 129 + .../libs/luci-lib-nixio/docsrc/nixio.bin.lua | 33 + .../libs/luci-lib-nixio/docsrc/nixio.bit.lua | 92 + .../luci-lib-nixio/docsrc/nixio.crypto.lua | 15 + .../libs/luci-lib-nixio/docsrc/nixio.fs.lua | 265 + .../luci/libs/luci-lib-nixio/docsrc/nixio.lua | 467 + .../libs/luci-lib-nixio/nixio-0.3-1.rockspec | 37 + .../root/lib/upgrade/luci-add-conffiles.sh | 16 + .../root/usr/lib/lua/nixio/fs.lua | 175 + .../root/usr/lib/lua/nixio/util.lua | 270 + package/luci/libs/luci-lib-nixio/src/Makefile | 120 + .../luci/libs/luci-lib-nixio/src/address.c | 569 + .../libs/luci-lib-nixio/src/axtls-compat.c | 297 + .../libs/luci-lib-nixio/src/axtls-compat.h | 150 + package/luci/libs/luci-lib-nixio/src/binary.c | 309 + package/luci/libs/luci-lib-nixio/src/bind.c | 293 + package/luci/libs/luci-lib-nixio/src/bit.c | 149 + .../libs/luci-lib-nixio/src/cyassl-compat.c | 31 + .../libs/luci-lib-nixio/src/cyassl-compat.h | 32 + package/luci/libs/luci-lib-nixio/src/file.c | 435 + package/luci/libs/luci-lib-nixio/src/fs.c | 566 + package/luci/libs/luci-lib-nixio/src/io.c | 225 + .../libs/luci-lib-nixio/src/mingw-compat.c | 220 + .../libs/luci-lib-nixio/src/mingw-compat.h | 112 + .../luci/libs/luci-lib-nixio/src/nixio-tls.h | 53 + package/luci/libs/luci-lib-nixio/src/nixio.c | 240 + package/luci/libs/luci-lib-nixio/src/nixio.h | 139 + package/luci/libs/luci-lib-nixio/src/poll.c | 210 + .../luci/libs/luci-lib-nixio/src/process.c | 450 + .../luci/libs/luci-lib-nixio/src/protoent.c | 103 + package/luci/libs/luci-lib-nixio/src/socket.c | 173 + .../luci/libs/luci-lib-nixio/src/sockopt.c | 390 + package/luci/libs/luci-lib-nixio/src/splice.c | 185 + package/luci/libs/luci-lib-nixio/src/syslog.c | 122 + .../libs/luci-lib-nixio/src/tls-context.c | 248 + .../luci/libs/luci-lib-nixio/src/tls-crypto.c | 185 + .../luci/libs/luci-lib-nixio/src/tls-socket.c | 263 + package/luci/libs/luci-lib-nixio/src/user.c | 263 + package/luci/libs/luci-lib-px5g/Makefile | 17 + .../luci/libs/luci-lib-px5g/lua/px5g/util.lua | 44 + .../luci-lib-px5g/root/usr/sbin/px5g-genkeys | 19 + package/luci/libs/luci-lib-px5g/src/Makefile | 17 + .../libs/luci-lib-px5g/src/library/bignum.c | 2010 +++ .../libs/luci-lib-px5g/src/library/havege.c | 276 + .../luci/libs/luci-lib-px5g/src/library/rsa.c | 750 ++ .../libs/luci-lib-px5g/src/library/sha1.c | 622 + .../libs/luci-lib-px5g/src/library/timing.c | 265 + .../luci-lib-px5g/src/library/x509write.c | 1137 ++ .../libs/luci-lib-px5g/src/polarssl/bignum.h | 437 + .../libs/luci-lib-px5g/src/polarssl/bn_mul.h | 731 ++ .../libs/luci-lib-px5g/src/polarssl/config.h | 329 + .../libs/luci-lib-px5g/src/polarssl/havege.h | 75 + .../libs/luci-lib-px5g/src/polarssl/rsa.h | 309 + .../libs/luci-lib-px5g/src/polarssl/sha1.h | 150 + .../libs/luci-lib-px5g/src/polarssl/timing.h | 81 + .../libs/luci-lib-px5g/src/polarssl/x509.h | 549 + package/luci/libs/luci-lib-px5g/src/px5g.c | 159 + package/luci/libs/luci-lib-px5g/src/px5g.h | 16 + package/luci/libs/luci-lib-rpcc/Makefile | 14 + .../luci/libs/luci-lib-rpcc/luasrc/rpcc.lua | 59 + .../libs/luci-lib-rpcc/luasrc/rpcc.luadoc | 36 + .../libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua | 48 + .../luci-lib-rpcc/luasrc/rpcc/ruci.luadoc | 16 + package/luci/libs/rpcd-mod-luci/Makefile | 54 + .../libs/rpcd-mod-luci/src/CMakeLists.txt | 23 + package/luci/libs/rpcd-mod-luci/src/luci.c | 2057 +++ package/luci/libs/rpcd-mod-rrdns/Makefile | 46 + .../libs/rpcd-mod-rrdns/src/CMakeLists.txt | 23 + package/luci/libs/rpcd-mod-rrdns/src/rrdns.c | 389 + package/luci/libs/rpcd-mod-rrdns/src/rrdns.h | 51 + package/luci/luci.mk | 337 + package/luci/modules/luci-base/Makefile | 45 + .../modules/luci-base/htdocs/cgi-bin/luci | 5 + .../htdocs/luci-static/resources/cbi.js | 802 ++ .../htdocs/luci-static/resources/cbi/file.svg | 12 + .../luci-static/resources/cbi/folder.svg | 12 + .../htdocs/luci-static/resources/cbi/link.svg | 13 + .../htdocs/luci-static/resources/firewall.js | 560 + .../htdocs/luci-static/resources/form.js | 4852 +++++++ .../htdocs/luci-static/resources/fs.js | 429 + .../luci-static/resources/icons/alias.png | Bin 0 -> 651 bytes .../resources/icons/alias_disabled.png | Bin 0 -> 371 bytes .../luci-static/resources/icons/bridge.png | Bin 0 -> 646 bytes .../resources/icons/bridge_disabled.png | Bin 0 -> 385 bytes .../luci-static/resources/icons/ethernet.png | Bin 0 -> 664 bytes .../resources/icons/ethernet_disabled.png | Bin 0 -> 384 bytes .../luci-static/resources/icons/loading.gif | Bin 0 -> 1786 bytes .../luci-static/resources/icons/port_down.png | Bin 0 -> 489 bytes .../luci-static/resources/icons/port_up.png | Bin 0 -> 561 bytes .../resources/icons/signal-0-25.png | Bin 0 -> 451 bytes .../luci-static/resources/icons/signal-0.png | Bin 0 -> 430 bytes .../resources/icons/signal-25-50.png | Bin 0 -> 454 bytes .../resources/icons/signal-50-75.png | Bin 0 -> 454 bytes .../resources/icons/signal-75-100.png | Bin 0 -> 440 bytes .../resources/icons/signal-none.png | Bin 0 -> 624 bytes .../luci-static/resources/icons/switch.png | Bin 0 -> 656 bytes .../resources/icons/switch_disabled.png | Bin 0 -> 388 bytes .../luci-static/resources/icons/tunnel.png | Bin 0 -> 339 bytes .../resources/icons/tunnel_disabled.png | Bin 0 -> 234 bytes .../luci-static/resources/icons/vlan.png | Bin 0 -> 656 bytes .../resources/icons/vlan_disabled.png | Bin 0 -> 388 bytes .../luci-static/resources/icons/wifi.png | Bin 0 -> 745 bytes .../resources/icons/wifi_disabled.png | Bin 0 -> 480 bytes .../htdocs/luci-static/resources/luci.js | 3462 +++++ .../htdocs/luci-static/resources/network.js | 4380 +++++++ .../luci-static/resources/promis.min.js | 5 + .../luci-static/resources/protocol/dhcp.js | 42 + .../luci-static/resources/protocol/none.js | 8 + .../luci-static/resources/protocol/static.js | 196 + .../htdocs/luci-static/resources/rpc.js | 485 + .../luci-static/resources/tools/prng.js | 111 + .../luci-static/resources/tools/widgets.js | 629 + .../htdocs/luci-static/resources/uci.js | 988 ++ .../htdocs/luci-static/resources/ui.js | 4903 ++++++++ .../luci-static/resources/validation.js | 605 + .../htdocs/luci-static/resources/xhr.js | 1 + .../modules/luci-base/luasrc/cacheloader.lua | 12 + .../luci/modules/luci-base/luasrc/ccache.lua | 76 + .../luci/modules/luci-base/luasrc/config.lua | 18 + .../luasrc/controller/admin/index.lua | 199 + .../luci-base/luasrc/controller/admin/uci.lua | 70 + .../modules/luci-base/luasrc/dispatcher.lua | 1564 +++ .../luci-base/luasrc/dispatcher.luadoc | 220 + .../luci/modules/luci-base/luasrc/i18n.lua | 55 + .../luci/modules/luci-base/luasrc/i18n.luadoc | 42 + .../modules/luci-base/luasrc/model/uci.lua | 508 + .../modules/luci-base/luasrc/model/uci.luadoc | 369 + .../luci/modules/luci-base/luasrc/sgi/cgi.lua | 73 + .../modules/luci-base/luasrc/sgi/uhttpd.lua | 99 + .../luci/modules/luci-base/luasrc/store.lua | 6 + package/luci/modules/luci-base/luasrc/sys.lua | 615 + .../luci/modules/luci-base/luasrc/sys.luadoc | 392 + .../modules/luci-base/luasrc/sys/zoneinfo.lua | 19 + .../luci-base/luasrc/sys/zoneinfo/tzdata.lua | 452 + .../luasrc/sys/zoneinfo/tzoffset.lua | 45 + .../modules/luci-base/luasrc/template.lua | 100 + .../luci/modules/luci-base/luasrc/version.lua | 9 + .../luci-base/luasrc/view/csrftoken.htm | 24 + .../luasrc/view/empty_node_placeholder.htm | 11 + .../luci-base/luasrc/view/error404.htm | 12 + .../luci-base/luasrc/view/error500.htm | 11 + .../modules/luci-base/luasrc/view/footer.htm | 27 + .../modules/luci-base/luasrc/view/header.htm | 38 + .../modules/luci-base/luasrc/view/indexer.htm | 7 + .../modules/luci-base/luasrc/view/sysauth.htm | 75 + .../modules/luci-base/luasrc/view/view.htm | 12 + package/luci/modules/luci-base/luasrc/xml.lua | 26 + .../luci/modules/luci-base/luasrc/xml.luadoc | 23 + package/luci/modules/luci-base/po/ar/base.po | 10030 +++++++++++++++ package/luci/modules/luci-base/po/bg/base.po | 9818 +++++++++++++++ .../luci/modules/luci-base/po/bn_BD/base.po | 9743 ++++++++++++++ package/luci/modules/luci-base/po/ca/base.po | 9864 +++++++++++++++ package/luci/modules/luci-base/po/cs/base.po | 10061 +++++++++++++++ package/luci/modules/luci-base/po/da/base.po | 10333 +++++++++++++++ package/luci/modules/luci-base/po/de/base.po | 10473 +++++++++++++++ package/luci/modules/luci-base/po/el/base.po | 9881 +++++++++++++++ package/luci/modules/luci-base/po/en/base.po | 9747 ++++++++++++++ package/luci/modules/luci-base/po/es/base.po | 10473 +++++++++++++++ package/luci/modules/luci-base/po/fi/base.po | 10122 +++++++++++++++ package/luci/modules/luci-base/po/fr/base.po | 10461 +++++++++++++++ package/luci/modules/luci-base/po/he/base.po | 9772 ++++++++++++++ package/luci/modules/luci-base/po/hi/base.po | 9745 ++++++++++++++ package/luci/modules/luci-base/po/hu/base.po | 10099 +++++++++++++++ package/luci/modules/luci-base/po/it/base.po | 10051 +++++++++++++++ package/luci/modules/luci-base/po/ja/base.po | 10152 +++++++++++++++ package/luci/modules/luci-base/po/ko/base.po | 9906 +++++++++++++++ package/luci/modules/luci-base/po/mr/base.po | 9743 ++++++++++++++ package/luci/modules/luci-base/po/ms/base.po | 9784 +++++++++++++++ .../luci/modules/luci-base/po/nb_NO/base.po | 9901 +++++++++++++++ package/luci/modules/luci-base/po/nl/base.po | 9763 ++++++++++++++ package/luci/modules/luci-base/po/pl/base.po | 10384 +++++++++++++++ package/luci/modules/luci-base/po/pt/base.po | 10362 +++++++++++++++ .../luci/modules/luci-base/po/pt_BR/base.po | 10480 ++++++++++++++++ package/luci/modules/luci-base/po/ro/base.po | 10420 +++++++++++++++ package/luci/modules/luci-base/po/ru/base.po | 10404 +++++++++++++++ package/luci/modules/luci-base/po/sk/base.po | 9822 +++++++++++++++ package/luci/modules/luci-base/po/sv/base.po | 9787 +++++++++++++++ .../modules/luci-base/po/templates/base.pot | 9734 ++++++++++++++ package/luci/modules/luci-base/po/tr/base.po | 10330 +++++++++++++++ package/luci/modules/luci-base/po/uk/base.po | 10428 +++++++++++++++ package/luci/modules/luci-base/po/vi/base.po | 9989 +++++++++++++++ .../luci/modules/luci-base/po/zh_Hans/base.po | 9981 +++++++++++++++ .../luci/modules/luci-base/po/zh_Hant/base.po | 9990 +++++++++++++++ .../modules/luci-base/root/etc/config/luci | 31 + .../luci-base/root/etc/config/ucitrack | 56 + .../luci-base/root/etc/init.d/ucitrack | 57 + .../root/etc/luci-uploads/.placeholder | 0 .../modules/luci-base/root/sbin/luci-reload | 45 + .../luci-base/root/usr/libexec/rpcd/luci | 683 + .../root/usr/share/acl.d/luci-base.json | 8 + .../root/usr/share/luci/menu.d/luci-base.json | 153 + .../root/usr/share/rpcd/acl.d/luci-base.json | 46 + .../modules/luci-base/root/www/index.html | 20 + package/luci/modules/luci-base/src/Makefile | 29 + .../modules/luci-base/src/contrib/lemon.c | 5040 ++++++++ .../modules/luci-base/src/contrib/lempar.c | 851 ++ .../luci/modules/luci-base/src/mkversion.sh | 24 + .../modules/luci-base/src/plural_formula.y | 43 + package/luci/modules/luci-base/src/po2lmo.c | 332 + .../luci/modules/luci-base/src/template_lmo.c | 637 + .../luci/modules/luci-base/src/template_lmo.h | 104 + .../modules/luci-base/src/template_lualib.c | 224 + .../modules/luci-base/src/template_lualib.h | 30 + .../modules/luci-base/src/template_parser.c | 419 + .../modules/luci-base/src/template_parser.h | 80 + .../modules/luci-base/src/template_utils.c | 500 + .../modules/luci-base/src/template_utils.h | 49 + package/luci/modules/luci-compat/Makefile | 19 + .../htdocs/luci-static/resources/cbi/add.gif | Bin 0 -> 378 bytes .../luci-static/resources/cbi/apply.gif | Bin 0 -> 268 bytes .../luci-static/resources/cbi/arrow.gif | Bin 0 -> 135 bytes .../htdocs/luci-static/resources/cbi/down.gif | Bin 0 -> 131 bytes .../luci-static/resources/cbi/download.gif | Bin 0 -> 189 bytes .../htdocs/luci-static/resources/cbi/edit.gif | Bin 0 -> 272 bytes .../luci-static/resources/cbi/fieldadd.gif | Bin 0 -> 371 bytes .../htdocs/luci-static/resources/cbi/file.gif | Bin 0 -> 267 bytes .../htdocs/luci-static/resources/cbi/find.gif | Bin 0 -> 273 bytes .../luci-static/resources/cbi/folder.gif | Bin 0 -> 698 bytes .../htdocs/luci-static/resources/cbi/help.gif | Bin 0 -> 266 bytes .../htdocs/luci-static/resources/cbi/key.gif | Bin 0 -> 230 bytes .../htdocs/luci-static/resources/cbi/link.gif | Bin 0 -> 279 bytes .../luci-static/resources/cbi/reload.gif | Bin 0 -> 248 bytes .../luci-static/resources/cbi/remove.gif | Bin 0 -> 385 bytes .../luci-static/resources/cbi/reset.gif | Bin 0 -> 258 bytes .../htdocs/luci-static/resources/cbi/save.gif | Bin 0 -> 263 bytes .../htdocs/luci-static/resources/cbi/up.gif | Bin 0 -> 130 bytes .../htdocs/luci-static/resources/cbi/user.gif | Bin 0 -> 246 bytes .../luci/modules/luci-compat/luasrc/cbi.lua | 1977 +++ .../luci-compat/luasrc/cbi/datatypes.lua | 485 + .../luci-compat/luasrc/model/firewall.lua | 568 + .../luci-compat/luasrc/model/network.lua | 1915 +++ .../luasrc/model/network/proto_3g.lua | 49 + .../luasrc/model/network/proto_4x6.lua | 64 + .../luasrc/model/network/proto_6x4.lua | 50 + .../luasrc/model/network/proto_dhcpv6.lua | 16 + .../luasrc/model/network/proto_hnet.lua | 16 + .../luasrc/model/network/proto_ipip.lua | 40 + .../model/network/proto_modemmanager.lua | 55 + .../luasrc/model/network/proto_ncm.lua | 69 + .../model/network/proto_openconnect.lua | 45 + .../luasrc/model/network/proto_ppp.lua | 82 + .../luasrc/model/network/proto_pppossh.lua | 40 + .../luasrc/model/network/proto_qmi.lua | 55 + .../luasrc/model/network/proto_relay.lua | 158 + .../luasrc/model/network/proto_vpnc.lua | 45 + .../luasrc/model/network/proto_wireguard.lua | 42 + .../luci-compat/luasrc/tools/webadmin.lua | 105 + .../luci-compat/luasrc/view/cbi/browser.htm | 10 + .../luci-compat/luasrc/view/cbi/button.htm | 7 + .../luasrc/view/cbi/cell_valuefooter.htm | 2 + .../luasrc/view/cbi/cell_valueheader.htm | 12 + .../luci-compat/luasrc/view/cbi/compound.htm | 1 + .../luci-compat/luasrc/view/cbi/delegator.htm | 24 + .../luci-compat/luasrc/view/cbi/dropdown.htm | 19 + .../luci-compat/luasrc/view/cbi/dvalue.htm | 13 + .../luci-compat/luasrc/view/cbi/dynlist.htm | 12 + .../luci-compat/luasrc/view/cbi/error.htm | 19 + .../luasrc/view/cbi/firewall_zonelist.htm | 108 + .../luci-compat/luasrc/view/cbi/footer.htm | 41 + .../luasrc/view/cbi/full_valuefooter.htm | 12 + .../luasrc/view/cbi/full_valueheader.htm | 9 + .../luci-compat/luasrc/view/cbi/fvalue.htm | 12 + .../luci-compat/luasrc/view/cbi/header.htm | 21 + .../luci-compat/luasrc/view/cbi/ipaddr.htm | 27 + .../luci-compat/luasrc/view/cbi/lvalue.htm | 14 + .../luci-compat/luasrc/view/cbi/map.htm | 44 + .../luci-compat/luasrc/view/cbi/mvalue.htm | 24 + .../luasrc/view/cbi/network_ifacelist.htm | 91 + .../luasrc/view/cbi/network_netinfo.htm | 27 + .../luasrc/view/cbi/network_netlist.htm | 81 + .../luci-compat/luasrc/view/cbi/nsection.htm | 29 + .../luasrc/view/cbi/nullsection.htm | 37 + .../luasrc/view/cbi/simpleform.htm | 77 + .../luasrc/view/cbi/tabcontainer.htm | 14 + .../luasrc/view/cbi/tblsection.htm | 203 + .../luci-compat/luasrc/view/cbi/tsection.htm | 52 + .../luci-compat/luasrc/view/cbi/tvalue.htm | 5 + .../luasrc/view/cbi/ucisection.htm | 56 + .../luci-compat/luasrc/view/cbi/upload.htm | 15 + .../luci-compat/luasrc/view/cbi/value.htm | 35 + .../luasrc/view/cbi/valuefooter.htm | 1 + .../luasrc/view/cbi/valueheader.htm | 1 + .../luasrc/view/cbi/wireless_modefreq.htm | 173 + .../usr/share/rpcd/acl.d/luci-compat.json | 11 + .../luci/modules/luci-mod-admin-full/Makefile | 17 + .../luci/modules/luci-mod-admin-mini/Makefile | 15 + .../luasrc/controller/mini/index.lua | 39 + .../luasrc/controller/mini/network.lua | 12 + .../luasrc/controller/mini/system.lua | 235 + .../luasrc/model/cbi/mini/dhcp.lua | 97 + .../luasrc/model/cbi/mini/index.lua | 4 + .../luasrc/model/cbi/mini/luci.lua | 37 + .../luasrc/model/cbi/mini/network.lua | 219 + .../luasrc/model/cbi/mini/passwd.lua | 35 + .../luasrc/model/cbi/mini/system.lua | 76 + .../luasrc/model/cbi/mini/wifi.lua | 351 + .../luasrc/view/mini/applyreboot.htm | 13 + .../luasrc/view/mini/backup.htm | 32 + .../luasrc/view/mini/index.htm | 13 + .../luasrc/view/mini/reboot.htm | 25 + .../luasrc/view/mini/upgrade.htm | 96 + .../luci/modules/luci-mod-dashboard/Makefile | 18 + .../resources/view/dashboard/css/custom.css | 287 + .../view/dashboard/icons/devices.svg | 1 + .../view/dashboard/icons/internet.svg | 1 + .../view/dashboard/icons/not-internet.svg | 1 + .../resources/view/dashboard/icons/router.svg | 1 + .../view/dashboard/icons/wireless.svg | 1 + .../view/dashboard/include/10_router.js | 322 + .../view/dashboard/include/20_lan.js | 150 + .../view/dashboard/include/30_wifi.js | 267 + .../resources/view/dashboard/index.js | 110 + .../luci-mod-dashboard/po/ar/dashboard.po | 218 + .../luci-mod-dashboard/po/bg/dashboard.po | 222 + .../luci-mod-dashboard/po/bn_BD/dashboard.po | 222 + .../luci-mod-dashboard/po/ca/dashboard.po | 222 + .../luci-mod-dashboard/po/cs/dashboard.po | 222 + .../luci-mod-dashboard/po/da/dashboard.po | 220 + .../luci-mod-dashboard/po/de/dashboard.po | 222 + .../luci-mod-dashboard/po/el/dashboard.po | 222 + .../luci-mod-dashboard/po/en/dashboard.po | 222 + .../luci-mod-dashboard/po/es/dashboard.po | 225 + .../luci-mod-dashboard/po/fi/dashboard.po | 222 + .../luci-mod-dashboard/po/fr/dashboard.po | 222 + .../luci-mod-dashboard/po/he/dashboard.po | 219 + .../luci-mod-dashboard/po/hi/dashboard.po | 218 + .../luci-mod-dashboard/po/hu/dashboard.po | 223 + .../luci-mod-dashboard/po/it/dashboard.po | 222 + .../luci-mod-dashboard/po/ja/dashboard.po | 222 + .../luci-mod-dashboard/po/ko/dashboard.po | 222 + .../luci-mod-dashboard/po/mr/dashboard.po | 218 + .../luci-mod-dashboard/po/ms/dashboard.po | 218 + .../luci-mod-dashboard/po/nb_NO/dashboard.po | 230 + .../luci-mod-dashboard/po/nl/dashboard.po | 225 + .../luci-mod-dashboard/po/pl/dashboard.po | 223 + .../luci-mod-dashboard/po/pt/dashboard.po | 222 + .../luci-mod-dashboard/po/pt_BR/dashboard.po | 222 + .../luci-mod-dashboard/po/ro/dashboard.po | 223 + .../luci-mod-dashboard/po/ru/dashboard.po | 223 + .../luci-mod-dashboard/po/sk/dashboard.po | 219 + .../luci-mod-dashboard/po/sv/dashboard.po | 222 + .../po/templates/dashboard.pot | 211 + .../luci-mod-dashboard/po/tr/dashboard.po | 222 + .../luci-mod-dashboard/po/uk/dashboard.po | 223 + .../luci-mod-dashboard/po/vi/dashboard.po | 219 + .../po/zh_Hans/dashboard.po | 220 + .../po/zh_Hant/dashboard.po | 220 + .../share/luci/menu.d/luci-mod-dashboard.json | 13 + .../share/rpcd/acl.d/luci-mod-dashboard.json | 41 + .../luci/modules/luci-mod-network/Makefile | 17 + .../luci-static/resources/tools/network.js | 913 ++ .../resources/view/network/dhcp.js | 785 ++ .../resources/view/network/diagnostics.js | 167 + .../resources/view/network/interfaces.js | 1623 +++ .../resources/view/network/routes.js | 208 + .../resources/view/network/switch.js | 377 + .../resources/view/network/wireless.js | 2239 ++++ .../etc/uci-defaults/50_luci-mod-admin-full | 22 + .../root/usr/libexec/luci-peeraddr | 46 + .../share/luci/menu.d/luci-mod-network.json | 86 + .../share/rpcd/acl.d/luci-mod-network.json | 70 + package/luci/modules/luci-mod-rpc/Makefile | 17 + .../luci-mod-rpc/luasrc/controller/rpc.lua | 245 + .../modules/luci-mod-rpc/luasrc/jsonrpc.lua | 83 + .../luci-mod-rpc/luasrc/jsonrpcbind/uci.lua | 82 + package/luci/modules/luci-mod-status/Makefile | 18 + .../luci-static/resources/svg/bandwidth.svg | 16 + .../resources/svg/channel_analysis.svg | 19 + .../luci-static/resources/svg/connections.svg | 17 + .../htdocs/luci-static/resources/svg/load.svg | 17 + .../luci-static/resources/svg/wifirate.svg | 15 + .../luci-static/resources/svg/wireless.svg | 16 + .../resources/view/status/bandwidth.js | 318 + .../resources/view/status/channel_analysis.js | 419 + .../resources/view/status/connections.js | 428 + .../resources/view/status/dmesg.js | 36 + .../view/status/include/10_system.js | 80 + .../view/status/include/20_memory.js | 61 + .../view/status/include/25_storage.js | 51 + .../view/status/include/30_network.js | 108 + .../resources/view/status/include/40_dhcp.js | 195 + .../resources/view/status/include/50_dsl.js | 59 + .../resources/view/status/include/60_wifi.js | 370 + .../resources/view/status/index.js | 109 + .../resources/view/status/iptables.js | 371 + .../luci-static/resources/view/status/load.js | 295 + .../resources/view/status/nftables.js | 702 ++ .../resources/view/status/processes.js | 87 + .../resources/view/status/routes.js | 282 + .../resources/view/status/syslog.js | 41 + .../resources/view/status/wireless.js | 345 + .../luasrc/view/admin_status/index.htm | 78 + .../share/luci/menu.d/luci-mod-status.json | 167 + .../rpcd/acl.d/luci-mod-status-index.json | 52 + .../usr/share/rpcd/acl.d/luci-mod-status.json | 97 + .../luci/modules/luci-mod-status/src/Makefile | 14 + .../modules/luci-mod-status/src/luci-bwc.c | 803 ++ package/luci/modules/luci-mod-system/Makefile | 17 + .../resources/view/system/crontab.js | 36 + .../resources/view/system/dropbear.js | 43 + .../resources/view/system/flash.js | 489 + .../view/system/led-trigger/default-on.js | 9 + .../view/system/led-trigger/heartbeat.js | 10 + .../view/system/led-trigger/netdev.js | 28 + .../resources/view/system/led-trigger/none.js | 22 + .../view/system/led-trigger/timer.js | 24 + .../luci-static/resources/view/system/leds.js | 140 + .../resources/view/system/mounts.js | 410 + .../resources/view/system/password.js | 99 + .../resources/view/system/reboot.js | 65 + .../resources/view/system/sshkeys.js | 292 + .../resources/view/system/startup.js | 137 + .../resources/view/system/system.js | 319 + .../resources/view/system/uhttpd.js | 22 + .../model/cbi/admin_system/backupfiles.lua | 87 + .../share/luci/menu.d/luci-mod-system.json | 150 + .../usr/share/rpcd/acl.d/luci-mod-system.json | 190 + package/luci/package.json | 9 + package/luci/protocols/luci-proto-3g/Makefile | 14 + .../luci-static/resources/protocol/3g.js | 160 + .../protocols/luci-proto-bonding/Makefile | 17 + .../luci-static/resources/protocol/bonding.js | 426 + .../luci/protocols/luci-proto-gre/Makefile | 21 + .../luci-static/resources/protocol/gre.js | 106 + .../luci-static/resources/protocol/gretap.js | 111 + .../luci-static/resources/protocol/grev6.js | 108 + .../resources/protocol/grev6tap.js | 113 + .../luci/protocols/luci-proto-hnet/Makefile | 17 + .../luci-static/resources/protocol/hnet.js | 36 + .../luci/protocols/luci-proto-ipip/Makefile | 16 + .../luci-static/resources/protocol/ipip.js | 73 + .../luci/protocols/luci-proto-ipv6/Makefile | 16 + .../luci-static/resources/protocol/464xlat.js | 52 + .../luci-static/resources/protocol/6in4.js | 93 + .../luci-static/resources/protocol/6rd.js | 73 + .../luci-static/resources/protocol/6to4.js | 57 + .../luci-static/resources/protocol/dhcpv6.js | 36 + .../luci-static/resources/protocol/dslite.js | 71 + .../luci-static/resources/protocol/map.js | 90 + .../luci-proto-modemmanager/Makefile | 14 + .../resources/protocol/modemmanager.js | 139 + .../rpcd/acl.d/luci-proto-modemmanager.json | 12 + .../luci/protocols/luci-proto-ncm/Makefile | 14 + .../luci-static/resources/protocol/ncm.js | 122 + .../luci/protocols/luci-proto-ppp/Makefile | 16 + .../luci-static/resources/protocol/l2tp.js | 61 + .../luci-static/resources/protocol/ppp.js | 136 + .../luci-static/resources/protocol/pppoa.js | 122 + .../luci-static/resources/protocol/pppoe.js | 100 + .../luci-static/resources/protocol/pptp.js | 109 + .../protocols/luci-proto-pppossh/Makefile | 17 + .../luci-static/resources/protocol/pppossh.js | 128 + .../luci/protocols/luci-proto-qmi/Makefile | 14 + .../luci-static/resources/protocol/qmi.js | 137 + .../luci/protocols/luci-proto-relay/Makefile | 14 + .../luci-static/resources/protocol/relay.js | 183 + .../luci/protocols/luci-proto-sstp/Makefile | 15 + .../luci-static/resources/protocol/sstp.js | 70 + .../luci/protocols/luci-proto-vxlan/Makefile | 16 + .../luci-static/resources/protocol/vxlan.js | 80 + .../luci-static/resources/protocol/vxlan6.js | 75 + .../protocols/luci-proto-wireguard/Makefile | 15 + .../resources/protocol/wireguard.js | 871 ++ .../root/usr/libexec/rpcd/luci.wireguard | 162 + .../usr/share/rpcd/acl.d/luci-wireguard.json | 20 + .../luci/protocols/luci-proto-xfrm/Makefile | 14 + .../luci-static/resources/protocol/xfrm.js | 51 + .../luci/themes/luci-theme-bootstrap/Makefile | 16 + .../htdocs/luci-static/bootstrap-dark | 1 + .../htdocs/luci-static/bootstrap-light | 1 + .../htdocs/luci-static/bootstrap/cascade.css | 2546 ++++ .../htdocs/luci-static/bootstrap/favicon.png | Bin 0 -> 733 bytes .../htdocs/luci-static/bootstrap/mobile.css | 425 + .../luci-static/resources/menu-bootstrap.js | 101 + .../resources/view/bootstrap/sysauth.js | 34 + .../luasrc/view/themes/bootstrap-dark | 1 + .../luasrc/view/themes/bootstrap-light | 1 + .../luasrc/view/themes/bootstrap/footer.htm | 21 + .../luasrc/view/themes/bootstrap/header.htm | 95 + .../luasrc/view/themes/bootstrap/sysauth.htm | 53 + .../etc/uci-defaults/30_luci-theme-bootstrap | 28 + .../luci/themes/luci-theme-material/Makefile | 14 + .../htdocs/luci-static/material/brand.png | Bin 0 -> 3939 bytes .../htdocs/luci-static/material/cascade.css | 3130 +++++ .../htdocs/luci-static/material/custom.css | 13 + .../htdocs/luci-static/material/favicon.ico | Bin 0 -> 4286 bytes .../luci-static/material/icons/arrow.svg | 1 + .../luci-static/material/icons/logout.svg | 1 + .../luci-static/material/icons/menu.svg | 1 + .../luci-static/material/icons/spinner.svg | 1 + .../luci-static/resources/menu-material.js | 182 + .../luasrc/view/themes/material/footer.htm | 32 + .../luasrc/view/themes/material/header.htm | 101 + .../etc/uci-defaults/30_luci-theme-material | 12 + .../themes/luci-theme-openwrt-2020/Makefile | 14 + .../GalanoGrotesqueW00-Regular.woff2 | Bin 0 -> 29004 bytes .../luci-static/openwrt2020/cascade.css | 1944 +++ .../htdocs/luci-static/openwrt2020/logo.png | Bin 0 -> 3896 bytes .../htdocs/luci-static/openwrt2020/logo.svg | 7 + .../luci-static/openwrt2020/spinner.svg | 12 + .../luci-static/resources/menu-openwrt2020.js | 147 + .../luasrc/view/themes/openwrt2020/footer.htm | 17 + .../luasrc/view/themes/openwrt2020/header.htm | 79 + .../uci-defaults/30_luci-theme-openwrt-2020 | 12 + .../luci/themes/luci-theme-openwrt/Makefile | 14 + .../luci-static/openwrt.org/cascade.css | 2092 +++ .../htdocs/luci-static/openwrt.org/tabbg.png | Bin 0 -> 152 bytes .../luci-static/resources/menu-openwrt.js | 133 + .../luasrc/view/themes/openwrt.org/footer.htm | 19 + .../luasrc/view/themes/openwrt.org/header.htm | 95 + .../etc/uci-defaults/30_luci-theme-openwrt | 12 + package/network/config/firewall/Makefile | 64 + .../config/firewall/files/firewall.config | 206 + .../config/firewall/files/firewall.hotplug | 11 + .../config/firewall/files/firewall.init | 61 + .../config/firewall/files/firewall.user | 7 + package/network/config/firewall4/Makefile | 50 + package/network/config/gre/Makefile | 44 + package/network/config/gre/files/gre.sh | 296 + package/network/config/ipip/Makefile | 40 + package/network/config/ipip/files/ipip.sh | 94 + package/network/config/netifd/Makefile | 50 + .../files/etc/hotplug.d/iface/00-netstate | 6 + .../etc/hotplug.d/net/20-smp-packet-steering | 67 + .../config/netifd/files/etc/init.d/network | 144 + .../etc/uci-defaults/14_migrate-dhcp-release | 23 + .../config/netifd/files/etc/udhcpc.user | 1 + .../netifd/files/lib/netifd/dhcp.script | 120 + .../netifd/files/lib/netifd/proto/dhcp.sh | 88 + .../config/netifd/files/lib/network/config.sh | 76 + .../config/netifd/files/sbin/devstatus | 12 + .../network/config/netifd/files/sbin/ifdown | 1 + .../network/config/netifd/files/sbin/ifstatus | 13 + package/network/config/netifd/files/sbin/ifup | 77 + .../files/usr/share/udhcpc/default.script | 57 + package/network/config/qos-scripts/Makefile | 53 + .../config/qos-scripts/files/etc/config/qos | 68 + .../files/etc/hotplug.d/iface/10-qos | 2 + .../config/qos-scripts/files/etc/init.d/qos | 28 + .../qos-scripts/files/usr/bin/qos-start | 4 + .../config/qos-scripts/files/usr/bin/qos-stat | 68 + .../config/qos-scripts/files/usr/bin/qos-stop | 7 + .../qos-scripts/files/usr/lib/qos/generate.sh | 543 + .../qos-scripts/files/usr/lib/qos/tcrules.awk | 106 + package/network/config/soloscli/Makefile | 45 + .../files/etc/hotplug.d/atm/15-solos-init | 26 + .../soloscli/files/etc/uci-defaults/solos | 13 + .../config/soloscli/files/solos-log-stats | 19 + .../soloscli/patches/001-no-driver.patch | 11 + .../config/soloscli/patches/002-cflags.patch | 12 + package/network/config/swconfig/Makefile | 57 + .../network/config/swconfig/files/switch.sh | 15 + package/network/config/swconfig/src/Makefile | 16 + package/network/config/swconfig/src/cli.c | 387 + package/network/config/swconfig/src/swlib.c | 924 ++ package/network/config/swconfig/src/swlib.h | 269 + package/network/config/swconfig/src/uci.c | 246 + package/network/config/vti/Makefile | 44 + package/network/config/vti/files/vti.sh | 154 + package/network/config/vxlan/Makefile | 33 + package/network/config/vxlan/files/vxlan.sh | 195 + package/network/config/xfrm/Makefile | 38 + package/network/config/xfrm/files/xfrm.sh | 72 + package/network/ipv6/464xlat/Makefile | 43 + package/network/ipv6/464xlat/files/464xlat.sh | 118 + package/network/ipv6/464xlat/src/464xlatcfg.c | 154 + package/network/ipv6/464xlat/src/Makefile | 8 + package/network/ipv6/6in4/Makefile | 42 + package/network/ipv6/6in4/files/6in4.sh | 163 + package/network/ipv6/6rd/Makefile | 48 + package/network/ipv6/6rd/files/6rd.sh | 106 + package/network/ipv6/6rd/src/6rdcalc.c | 126 + package/network/ipv6/6rd/src/Makefile | 7 + package/network/ipv6/6to4/Makefile | 42 + package/network/ipv6/6to4/files/6to4.sh | 98 + package/network/ipv6/ds-lite/Makefile | 42 + package/network/ipv6/ds-lite/files/dslite.sh | 110 + package/network/ipv6/map/Makefile | 40 + package/network/ipv6/map/files/map.sh | 245 + package/network/ipv6/map/src/CMakeLists.txt | 29 + package/network/ipv6/map/src/mapcalc.c | 418 + package/network/ipv6/odhcp6c/Makefile | 60 + .../network/ipv6/odhcp6c/files/dhcpv6.script | 244 + package/network/ipv6/odhcp6c/files/dhcpv6.sh | 137 + .../network/ipv6/odhcp6c/files/odhcp6c.user | 1 + package/network/ipv6/thc-ipv6/Makefile | 61 + .../patches/000-cflags_override.patch | 12 + .../ipv6/thc-ipv6/patches/100-no-ssl.patch | 9 + package/network/services/cgi-io/Makefile | 47 + package/network/services/dnsmasq/Makefile | 199 + .../50-dnsmasq-migrate-resolv-conf-auto.sh | 8 + .../services/dnsmasq/files/dhcp-script.sh | 53 + .../network/services/dnsmasq/files/dhcp.conf | 33 + .../dnsmasq/files/dhcpbogushostname.conf | 8 + .../services/dnsmasq/files/dnsmasq.conf | 37 + .../services/dnsmasq/files/dnsmasq.init | 1296 ++ .../services/dnsmasq/files/dnsmasq_acl.json | 15 + .../services/dnsmasq/files/dnsmasqsec.hotplug | 12 + .../services/dnsmasq/files/rfc6761.conf | 11 + ...rite-after-free-error-in-DHCPv6-code.patch | 179 + ...00-remove-old-runtime-kernel-support.patch | 165 + .../dnsmasq/patches/200-ubus_dns.patch | 282 + package/network/services/dropbear/Config.in | 121 + package/network/services/dropbear/Makefile | 217 + .../services/dropbear/files/dropbear.config | 5 + .../services/dropbear/files/dropbear.failsafe | 8 + .../services/dropbear/files/dropbear.init | 282 + ...01-fix-MAX_UNAUTH_CLIENTS-regression.patch | 134 + .../dropbear/patches/100-pubkey_path.patch | 106 + .../dropbear/patches/110-change_user.patch | 18 + .../patches/130-ssh_ignore_x_args.patch | 13 + .../dropbear/patches/140-disable_assert.patch | 15 + .../dropbear/patches/160-lto-jobserver.patch | 33 + .../600-allow-blank-root-password.patch | 11 + .../patches/900-configure-hardening.patch | 56 + .../patches/901-bundled-libs-cflags.patch | 48 + ...nkey-fix-use-of-rsa-sha2-256-pubkeys.patch | 38 + package/network/services/ead/Makefile | 52 + package/network/services/ead/src/Makefile | 33 + package/network/services/ead/src/aes.c | 1061 ++ package/network/services/ead/src/ead-client.c | 433 + package/network/services/ead/src/ead-crypt.c | 179 + package/network/services/ead/src/ead-crypt.h | 21 + package/network/services/ead/src/ead-pcap.h | 71 + package/network/services/ead/src/ead.c | 974 ++ package/network/services/ead/src/ead.h | 139 + package/network/services/ead/src/filter.c | 25 + package/network/services/ead/src/libbridge.h | 60 + .../network/services/ead/src/libbridge_init.c | 127 + .../services/ead/src/libbridge_private.h | 35 + package/network/services/ead/src/list.h | 602 + package/network/services/ead/src/passwd | 3 + package/network/services/ead/src/pfc.c | 54 + .../network/services/ead/src/pw_encrypt_md5.c | 646 + package/network/services/ead/src/sha1.c | 104 + .../services/ead/src/tinysrp/Makefile.am | 28 + .../services/ead/src/tinysrp/Makefile.in | 477 + .../network/services/ead/src/tinysrp/Notes | 110 + .../services/ead/src/tinysrp/acconfig.h | 9 + .../services/ead/src/tinysrp/acinclude.m4 | 27 + .../services/ead/src/tinysrp/aclocal.m4 | 157 + package/network/services/ead/src/tinysrp/bn.h | 471 + .../network/services/ead/src/tinysrp/bn_add.c | 305 + .../network/services/ead/src/tinysrp/bn_asm.c | 382 + .../network/services/ead/src/tinysrp/bn_ctx.c | 142 + .../network/services/ead/src/tinysrp/bn_div.c | 378 + .../network/services/ead/src/tinysrp/bn_exp.c | 395 + .../network/services/ead/src/tinysrp/bn_lcl.h | 419 + .../network/services/ead/src/tinysrp/bn_lib.c | 576 + .../network/services/ead/src/tinysrp/bn_mul.c | 172 + .../services/ead/src/tinysrp/bn_prime.h | 325 + .../services/ead/src/tinysrp/bn_shift.c | 139 + .../network/services/ead/src/tinysrp/bn_sqr.c | 160 + .../services/ead/src/tinysrp/bn_word.c | 130 + .../services/ead/src/tinysrp/clitest.c | 110 + .../services/ead/src/tinysrp/config.h.in | 79 + .../services/ead/src/tinysrp/configure | 2421 ++++ .../services/ead/src/tinysrp/configure.in | 52 + .../services/ead/src/tinysrp/install-sh | 250 + .../network/services/ead/src/tinysrp/missing | 134 + .../services/ead/src/tinysrp/mkinstalldirs | 39 + .../services/ead/src/tinysrp/srvtest.c | 111 + .../services/ead/src/tinysrp/stamp-h.in | 1 + .../services/ead/src/tinysrp/t_client.c | 285 + .../services/ead/src/tinysrp/t_client.h | 148 + .../network/services/ead/src/tinysrp/t_conf.c | 1080 ++ .../network/services/ead/src/tinysrp/t_conv.c | 226 + .../services/ead/src/tinysrp/t_defines.h | 169 + .../services/ead/src/tinysrp/t_getconf.c | 118 + .../services/ead/src/tinysrp/t_getpass.c | 191 + .../network/services/ead/src/tinysrp/t_math.c | 177 + .../network/services/ead/src/tinysrp/t_misc.c | 338 + .../network/services/ead/src/tinysrp/t_pw.c | 264 + .../network/services/ead/src/tinysrp/t_pwd.h | 310 + .../network/services/ead/src/tinysrp/t_read.c | 81 + .../network/services/ead/src/tinysrp/t_read.h | 55 + .../services/ead/src/tinysrp/t_server.c | 259 + .../services/ead/src/tinysrp/t_server.h | 138 + .../network/services/ead/src/tinysrp/t_sha.c | 166 + .../network/services/ead/src/tinysrp/t_sha.h | 26 + .../services/ead/src/tinysrp/t_truerand.c | 151 + .../network/services/ead/src/tinysrp/tconf.c | 157 + .../services/ead/src/tinysrp/tinysrp.c | 235 + .../services/ead/src/tinysrp/tinysrp.h | 18 + .../network/services/ead/src/tinysrp/tpasswd | 2 + .../services/ead/src/tinysrp/tphrase.c | 354 + package/network/services/hostapd/Config.in | 89 + package/network/services/hostapd/Makefile | 717 ++ .../services/hostapd/files/dhcp-get-server.sh | 2 + .../hostapd/files/hostapd-basic.config | 403 + .../hostapd/files/hostapd-full.config | 403 + .../hostapd/files/hostapd-mini.config | 403 + .../network/services/hostapd/files/hostapd.sh | 1572 +++ .../services/hostapd/files/multicall.c | 28 + .../hostapd/files/wpa_supplicant-basic.config | 624 + .../hostapd/files/wpa_supplicant-full.config | 624 + .../hostapd/files/wpa_supplicant-mini.config | 624 + .../hostapd/files/wpa_supplicant-p2p.config | 624 + .../network/services/hostapd/files/wpad.init | 41 + .../network/services/hostapd/files/wpad.json | 22 + .../services/hostapd/files/wpad_acl.json | 10 + .../services/hostapd/files/wps-hotplug.sh | 69 + .../001-wolfssl-init-RNG-with-ECC-key.patch | 43 + ...hannels-to-be-selected-if-dfs-is-ena.patch | 106 + ...erministic-channel-on-channel-switch.patch | 81 + ...ix-sta-add-after-previous-connection.patch | 26 + ...use-of-uninitialized-stack-variables.patch | 25 + ...-dl_list_del-before-freeing-ipv6-add.patch | 19 + ...ewrite-neigh-code-to-not-depend-on-l.patch | 275 + ...ssing-authentication-frames-in-block.patch | 34 + .../hostapd/patches/050-build_fix.patch | 20 + .../hostapd/patches/100-daemonize_fix.patch | 97 + .../hostapd/patches/200-multicall.patch | 355 + .../services/hostapd/patches/300-noscan.patch | 58 + .../hostapd/patches/301-mesh-noscan.patch | 71 + .../patches/310-rescan_immediately.patch | 11 + .../hostapd/patches/320-optional_rfkill.patch | 61 + .../patches/330-nl80211_fix_set_freq.patch | 11 + .../patches/340-reload_freq_change.patch | 75 + .../341-mesh-ctrl-iface-channel-switch.patch | 39 + .../patches/350-nl80211_del_beacon_bss.patch | 54 + .../patches/360-ctrl_iface_reload.patch | 106 + .../hostapd/patches/370-ap_sta_support.patch | 393 + .../patches/380-disable_ctrl_iface_mib.patch | 193 + .../381-hostapd_cli_UNKNOWN-COMMAND.patch | 11 + .../patches/390-wpa_ie_cap_workaround.patch | 56 + .../400-wps_single_auth_enc_type.patch | 23 + .../patches/410-limit_debug_messages.patch | 210 + .../patches/420-indicate-features.patch | 62 + .../patches/430-hostapd_cli_ifdef.patch | 56 + .../hostapd/patches/431-wpa_cli_ifdef.patch | 18 + .../hostapd/patches/432-missing-typedef.patch | 10 + .../hostapd/patches/450-scan_wait.patch | 73 + ...dd-new-config-params-to-be-used-with.patch | 189 + ...-use-new-parameters-during-ibss-join.patch | 59 + .../patches/463-add-mcast_rate-to-11s.patch | 68 + .../patches/464-fix-mesh-obss-check.patch | 19 + .../patches/470-survey_data_fallback.patch | 25 + .../patches/500-lto-jobserver-support.patch | 59 + .../patches/590-rrm-wnm-statistics.patch | 92 + .../599-wpa_supplicant-fix-warnings.patch | 19 + .../hostapd/patches/600-ubus_support.patch | 565 + .../610-hostapd_cli_ujail_permission.patch | 33 + .../hostapd/patches/700-wifi-reload.patch | 220 + .../hostapd/patches/710-vlan_no_bridge.patch | 41 + .../patches/711-wds_bridge_force.patch | 22 + .../patches/720-iface_max_num_sta.patch | 82 + .../hostapd/patches/730-ft_iface.patch | 38 + .../hostapd/patches/740-snoop_iface.patch | 66 + ...750-qos_map_set_without_interworking.patch | 112 + .../751-qos_map_ignore_when_unsupported.patch | 12 + .../services/hostapd/src/src/ap/ubus.c | 2087 +++ .../services/hostapd/src/src/ap/ubus.h | 145 + .../hostapd/src/src/utils/build_features.h | 61 + .../hostapd/src/wpa_supplicant/ubus.c | 430 + .../hostapd/src/wpa_supplicant/ubus.h | 66 + package/network/services/ipset-dns/Makefile | 59 + .../services/ipset-dns/files/ipset-dns.config | 16 + .../services/ipset-dns/files/ipset-dns.init | 57 + package/network/services/lldpd/Config.in | 58 + package/network/services/lldpd/Makefile | 116 + .../network/services/lldpd/files/lldpd.config | 20 + .../network/services/lldpd/files/lldpd.init | 130 + package/network/services/odhcpd/Makefile | 108 + .../services/odhcpd/files/odhcpd-update | 6 + .../services/odhcpd/files/odhcpd.defaults | 52 + .../network/services/odhcpd/files/odhcpd.init | 22 + package/network/services/omcproxy/Makefile | 46 + .../services/omcproxy/files/omcproxy.config | 9 + .../services/omcproxy/files/omcproxy.init | 166 + package/network/services/p910nd/Makefile | 62 + .../services/p910nd/files/p910nd.config | 26 + .../services/p910nd/files/p910nd.hotplug | 13 + .../network/services/p910nd/files/p910nd.init | 66 + package/network/services/ppp/Makefile | 313 + .../services/ppp/files/etc/ppp/chap-secrets | 1 + .../network/services/ppp/files/etc/ppp/filter | 23 + .../services/ppp/files/etc/ppp/options | 8 + .../services/ppp/files/etc/ppp/options.pptp | 7 + .../services/ppp/files/etc/ppp/radius.conf | 8 + .../ppp/files/etc/ppp/radius/dictionary | 253 + .../ppp/files/etc/ppp/radius/dictionary.asnet | 3 + .../files/etc/ppp/radius/dictionary.microsoft | 80 + .../services/ppp/files/etc/ppp/radius/servers | 2 + .../services/ppp/files/lib/netifd/ppp-down | 13 + .../services/ppp/files/lib/netifd/ppp-up | 20 + .../services/ppp/files/lib/netifd/ppp6-up | 32 + package/network/services/ppp/files/ppp.sh | 338 + .../010-use_target_for_configure.patch | 24 + .../ppp/patches/105-debian_demand.patch | 170 + .../120-debian_ipv6_updown_option.patch | 95 + .../ppp/patches/133-fix_sha1_include.patch | 11 + .../services/ppp/patches/200-makefile.patch | 56 + .../ppp/patches/201-mppe_mppc_1.1.patch | 1518 +++ .../services/ppp/patches/203-opt_flags.patch | 38 + .../ppp/patches/204-radius_config.patch | 72 + .../patches/205-no_exponential_timeout.patch | 29 + .../ppp/patches/207-lcp_mtu_max.patch | 25 + .../ppp/patches/208-fix_status_code.patch | 24 + .../300-filter-pcap-includes-lib.patch | 20 + .../ppp/patches/310-precompile_filter.patch | 194 + ...multilink_support_custom_iface_names.patch | 147 + .../330-retain_foreign_default_routes.patch | 22 + .../340-populate_default_gateway.patch | 34 + .../patches/400-simplify_kernel_checks.patch | 154 + .../ppp/patches/401-no_record_file.patch | 39 + .../services/ppp/patches/403-no_wtmp.patch | 25 + .../404-remove_obsolete_protocol_names.patch | 151 + .../ppp/patches/405-no_multilink_option.patch | 28 + .../ppp/patches/500-add-pptp-plugin.patch | 3066 +++++ .../ppp/patches/510-pptp_compile_fix.patch | 11 + .../ppp/patches/511-pptp_cflags.patch | 11 + ...openssl-for-the-DES-instead-of-the-l.patch | 89 + .../ppp/patches/610-pppd_compile_fix.patch | 12 + package/network/services/ppp/utils/pfc.c | 51 + package/network/services/relayd/Makefile | 42 + .../network/services/relayd/files/relay.init | 109 + package/network/services/sstp-client/Makefile | 65 + .../sstp-client/files/etc/ppp/chap-secrets | 4 + .../etc/ppp/peers/peer-sstp-example-nopty.txt | 14 + .../files/etc/ppp/peers/peer-sstp-example.txt | 15 + .../files/lib/netifd/proto/sstp.sh | 130 + .../sstp-client/patches/100-musl-compat.patch | 33 + .../patches/200-openssl-deprecated.patch | 20 + package/network/services/uhttpd/Makefile | 138 + .../services/uhttpd/files/ubus.default | 17 + .../services/uhttpd/files/uhttpd.config | 151 + .../network/services/uhttpd/files/uhttpd.init | 230 + package/network/services/umdns/Makefile | 47 + .../network/services/umdns/files/umdns.config | 3 + .../network/services/umdns/files/umdns.init | 52 + .../network/services/umdns/files/umdns.json | 57 + package/network/services/ustp/Makefile | 41 + .../network/services/ustp/files/ustpd.init | 14 + .../network/utils/adb-enablemodem/Makefile | 26 + .../adb-enablemodem/files/adb-enablemodem | 64 + package/network/utils/arptables/Makefile | 43 + package/network/utils/bonding/Makefile | 42 + .../bonding/files/lib/netifd/proto/bonding.sh | 225 + package/network/utils/bpftools/Makefile | 149 + .../utils/bpftools/patches/001-cflags.patch | 10 + .../utils/bpftools/patches/002-includes.patch | 26 + package/network/utils/comgt/Makefile | 106 + package/network/utils/comgt/files/3g.chat | 12 + package/network/utils/comgt/files/3g.sh | 116 + package/network/utils/comgt/files/3g.usb | 35 + .../utils/comgt/files/directip-stop.gcom | 16 + .../network/utils/comgt/files/directip.gcom | 55 + package/network/utils/comgt/files/directip.sh | 114 + package/network/utils/comgt/files/evdo.chat | 17 + .../utils/comgt/files/getcardinfo.gcom | 14 + .../network/utils/comgt/files/getcarrier.gcom | 20 + .../network/utils/comgt/files/getcnum.gcom | 20 + .../network/utils/comgt/files/getimsi.gcom | 17 + .../utils/comgt/files/getstrength.gcom | 14 + package/network/utils/comgt/files/ncm.json | 116 + package/network/utils/comgt/files/ncm.sh | 270 + .../network/utils/comgt/files/runcommand.gcom | 31 + .../network/utils/comgt/files/setmode.gcom | 26 + package/network/utils/comgt/files/setpin.gcom | 56 + package/network/utils/comgt/files/ussd.gcom | 21 + .../utils/comgt/patches/001-compile_fix.patch | 23 + .../utils/comgt/patches/002-termios.patch | 105 + .../utils/comgt/patches/003-no_XCASE.patch | 20 + .../utils/comgt/patches/004-check_tty.patch | 68 + package/network/utils/ebtables/Makefile | 79 + .../utils/ebtables/patches/100-musl_fix.patch | 10 + .../patches/200-fix-extension-init.patch | 260 + package/network/utils/ethtool/Makefile | 67 + package/network/utils/iproute2/Makefile | 281 + .../iproute2/patches/100-configure.patch | 12 + .../iproute2/patches/110-darwin_fixes.patch | 59 + .../patches/115-add-config-xtlibdir.patch | 12 + .../120-no_arpd_ifstat_rtacct_lnstat.patch | 20 + .../130-no_netem_tipc_dcb_man_vdpa.patch | 11 + .../patches/140-allow_pfifo_fast.patch | 9 + .../patches/140-keep_libmnl_optional.patch | 11 + .../patches/145-keep_libelf_optional.patch | 11 + .../patches/150-keep_libcap_optional.patch | 11 + .../iproute2/patches/160-libnetlink-pic.patch | 11 + .../utils/iproute2/patches/170-ip_tiny.patch | 110 + .../patches/175-reduce-dynamic-syms.patch | 45 + .../patches/180-drop_FAILED_POLICY.patch | 41 + .../patches/190-fix-nls-rpath-link.patch | 20 + .../patches/195-build_variant_ip_tc.patch | 22 + .../patches/200-drop_libbsd_dependency.patch | 19 + .../patches/300-selinux-configurable.patch | 11 + package/network/utils/ipset/Makefile | 74 + .../0001-lib-ipset-fix-printf-warning.patch | 11 + ...2-Fix-IPv6-sets-nftables-translation.patch | 82 + package/network/utils/iptables/Makefile | 785 ++ ...l-init_extensions6-for-static-builds.patch | 68 + ...002-xtables-Call-init_extensions_a_b.patch | 107 + .../010-add-set-dscpmark-support.patch | 452 + .../patches/101-remove-check-already.patch | 28 + .../102-iptables-disable-modprobe.patch | 18 + .../iptables/patches/103-optional-xml.patch | 13 + .../patches/200-configurable_builtin.patch | 79 + .../iptables/patches/600-shared-libext.patch | 102 + .../700-disable-legacy-revisions.patch | 95 + .../patches/800-flowoffload_target.patch | 95 + package/network/utils/iw/Makefile | 73 + .../utils/iw/patches/001-nl80211_h_sync.patch | 137 + ...ow-specifying-CFLAGS-LIBS-externally.patch | 68 + .../utils/iw/patches/120-antenna_gain.patch | 33 + .../iw/patches/130-survey-bss-rx-time.patch | 12 + .../utils/iw/patches/200-reduce_size.patch | 366 + package/network/utils/iwcap/Makefile | 46 + package/network/utils/iwcap/src/iwcap.c | 583 + package/network/utils/iwinfo/Makefile | 119 + .../network/utils/layerscape/restool/Makefile | 39 + .../restool/patches/remove-manpage.patch | 18 + package/network/utils/linux-atm/Makefile | 197 + .../network/utils/linux-atm/files/atm.hotplug | 1 + .../network/utils/linux-atm/files/br2684-up | 3 + .../network/utils/linux-atm/files/br2684ctl | 84 + .../utils/linux-atm/files/br2684ctl_wrap | 5 + .../linux-atm/patches/000-debian_16.patch | 270 + .../linux-atm/patches/200-no_libfl.patch | 179 + .../linux-atm/patches/300-objcopy_path.patch | 40 + .../patches/400-portability_fixes.patch | 70 + .../patches/500-br2684ctl_script.patch | 63 + .../patches/501-br2684ctl_itfname.patch | 74 + .../510-remove-LINUX_NETDEVICE-hack.patch | 52 + .../patches/600-fix-format-errors.patch | 11 + .../linux-atm/patches/700-musl-include.patch | 30 + .../patches/800-include_sockios.patch | 21 + package/network/utils/ltq-dsl-base/Makefile | 34 + .../files/etc/hotplug.d/dsl/led_dsl.sh | 32 + .../files/etc/hotplug.d/dsl/pppoa.sh | 37 + .../ltq-dsl-base/files/sbin/dsl_notify.sh | 6 + package/network/utils/modemmanager/Config.in | 30 + package/network/utils/modemmanager/Makefile | 132 + package/network/utils/modemmanager/README.md | 40 + .../modemmanager/files/25-modemmanager-net | 31 + .../modemmanager/files/25-modemmanager-tty | 16 + .../modemmanager/files/25-modemmanager-usb | 13 + .../modemmanager/files/25-modemmanager-wwan | 15 + .../modemmanager/files/modemmanager.common | 342 + .../modemmanager/files/modemmanager.init | 38 + .../modemmanager/files/modemmanager.proto | 550 + .../files/usr/sbin/ModemManager-wrapper | 33 + .../001-plugins-Fix-port-enums-includes.patch | 88 + ...-meson-Fix-daemon-enums-dependencies.patch | 96 + package/network/utils/net-snmp/Config.in.wut | 14 + package/network/utils/net-snmp/Makefile | 291 + .../network/utils/net-snmp/files/snmpd.conf | 130 + .../network/utils/net-snmp/files/snmpd.init | 359 + .../utils/net-snmp/files/snmptrapd.init | 15 + .../net-snmp/patches/000-cross-compile.patch | 47 + ...OST-MIB-hr_filesys-fix-compile-error.patch | 34 + .../patches/100-debian-statistics.patch | 22 + .../patches/110-debian-makefiles.patch | 40 + .../patches/120-debian-searchdirs.patch | 14 + .../patches/130-debian-extramibs.patch | 5183 ++++++++ .../net-snmp/patches/160-no_ldconfig.patch | 11 + .../utils/net-snmp/patches/170-ldflags.patch | 11 + .../net-snmp/patches/750-ieee802dot11.patch | 6156 +++++++++ .../net-snmp/patches/900-musl-compat.patch | 13 + package/network/utils/nftables/Makefile | 85 + ...-t-use-non-POSIX-formats-in-strptime.patch | 44 + ...001-examples-compile-with-make-check.patch | 29 + package/network/utils/pppossh/Makefile | 38 + package/network/utils/pppossh/README.md | 68 + .../network/utils/pppossh/files/pppossh.sh | 72 + package/network/utils/resolveip/Makefile | 41 + .../network/utils/resolveip/src/resolveip.c | 98 + package/network/utils/rssileds/Makefile | 47 + package/network/utils/rssileds/files/rssi | 3 + .../utils/rssileds/files/rssileds.init | 75 + package/network/utils/rssileds/src/rssileds.c | 290 + package/network/utils/tcpdump/Makefile | 68 + .../patches/001-remove_pcap_debug.patch | 100 + .../tcpdump/patches/100-tcpdump_mini.patch | 857 ++ .../tcpdump/patches/101-CVE-2020-8037.patch | 47 + .../tcpdump/patches/102-CVE-2018-16301.patch | 101 + package/network/utils/umbim/Makefile | 45 + .../umbim/files/lib/netifd/proto/mbim.sh | 213 + package/network/utils/uqmi/Makefile | 48 + .../utils/uqmi/files/lib/netifd/proto/qmi.sh | 477 + .../network/utils/wireguard-tools/Makefile | 65 + .../utils/wireguard-tools/files/wireguard.sh | 217 + .../wireguard-tools/files/wireguard_watchdog | 68 + package/network/utils/wireless-tools/Makefile | 94 + .../wireless-tools/patches/001-debian.patch | 35 + ...-fix-iwconfig-power-argument-parsing.patch | 13 + .../patches/003-we_essential_def.patch | 359 + .../patches/004-increase_iwlist_buffer.patch | 46 + package/network/utils/wpan-tools/Makefile | 33 + ...h-fix-compatibility-with-libnl-3.3.0.patch | 44 + package/network/utils/wwan/Makefile | 45 + .../network/utils/wwan/files/data/0421-03a7 | 6 + .../network/utils/wwan/files/data/0421-060d | 6 + .../network/utils/wwan/files/data/0421-060e | 6 + .../network/utils/wwan/files/data/0421-0612 | 6 + .../network/utils/wwan/files/data/0421-0619 | 6 + .../network/utils/wwan/files/data/0421-061e | 6 + .../network/utils/wwan/files/data/0421-0623 | 6 + .../network/utils/wwan/files/data/0421-0629 | 6 + .../network/utils/wwan/files/data/0421-062d | 6 + .../network/utils/wwan/files/data/0421-062f | 6 + .../network/utils/wwan/files/data/0421-0638 | 6 + .../network/utils/wwan/files/data/05c6-0016 | 6 + .../network/utils/wwan/files/data/05c6-0023 | 5 + .../network/utils/wwan/files/data/05c6-00a0 | 6 + .../network/utils/wwan/files/data/05c6-6000 | 5 + .../network/utils/wwan/files/data/05c6-9000 | 5 + .../network/utils/wwan/files/data/07d1-3e01 | 5 + .../network/utils/wwan/files/data/07d1-3e02 | 5 + .../network/utils/wwan/files/data/07d1-7e11 | 6 + .../network/utils/wwan/files/data/0af0-4005 | 4 + .../network/utils/wwan/files/data/0af0-6901 | 5 + .../network/utils/wwan/files/data/0af0-7201 | 5 + .../network/utils/wwan/files/data/0af0-8120 | 4 + .../network/utils/wwan/files/data/0af0-9200 | 5 + .../network/utils/wwan/files/data/0b3c-c000 | 4 + .../network/utils/wwan/files/data/0b3c-c001 | 4 + .../network/utils/wwan/files/data/0b3c-c002 | 4 + .../network/utils/wwan/files/data/0b3c-c003 | 5 + .../network/utils/wwan/files/data/0b3c-c004 | 4 + .../network/utils/wwan/files/data/0b3c-c005 | 4 + .../network/utils/wwan/files/data/0b3c-c00a | 4 + .../network/utils/wwan/files/data/0b3c-c00b | 4 + .../network/utils/wwan/files/data/0bdb-1900 | 6 + .../network/utils/wwan/files/data/0bdb-1902 | 6 + .../network/utils/wwan/files/data/0bdb-190a | 6 + .../network/utils/wwan/files/data/0bdb-190d | 6 + .../network/utils/wwan/files/data/0bdb-1910 | 6 + .../network/utils/wwan/files/data/0c88-17da | 5 + .../network/utils/wwan/files/data/0c88-180a | 5 + .../network/utils/wwan/files/data/0f3d-68a2 | 4 + .../network/utils/wwan/files/data/0f3d-68aa | 5 + .../network/utils/wwan/files/data/1004-6124 | 6 + .../network/utils/wwan/files/data/1004-6141 | 6 + .../network/utils/wwan/files/data/1004-6157 | 6 + .../network/utils/wwan/files/data/1004-618f | 5 + .../network/utils/wwan/files/data/106c-3711 | 6 + .../network/utils/wwan/files/data/106c-3714 | 6 + .../network/utils/wwan/files/data/106c-3715 | 6 + .../network/utils/wwan/files/data/106c-3716 | 6 + .../network/utils/wwan/files/data/106c-3717 | 6 + .../network/utils/wwan/files/data/106c-3718 | 4 + .../network/utils/wwan/files/data/106c-3721 | 4 + .../network/utils/wwan/files/data/1199-0017 | 5 + .../network/utils/wwan/files/data/1199-0018 | 5 + .../network/utils/wwan/files/data/1199-0019 | 5 + .../network/utils/wwan/files/data/1199-0020 | 5 + .../network/utils/wwan/files/data/1199-0021 | 5 + .../network/utils/wwan/files/data/1199-0022 | 5 + .../network/utils/wwan/files/data/1199-0023 | 5 + .../network/utils/wwan/files/data/1199-0024 | 5 + .../network/utils/wwan/files/data/1199-0025 | 5 + .../network/utils/wwan/files/data/1199-0026 | 5 + .../network/utils/wwan/files/data/1199-0027 | 5 + .../network/utils/wwan/files/data/1199-0028 | 5 + .../network/utils/wwan/files/data/1199-0112 | 5 + .../network/utils/wwan/files/data/1199-0120 | 5 + .../network/utils/wwan/files/data/1199-0218 | 5 + .../network/utils/wwan/files/data/1199-0220 | 5 + .../network/utils/wwan/files/data/1199-0224 | 5 + .../network/utils/wwan/files/data/1199-0301 | 5 + .../network/utils/wwan/files/data/1199-6802 | 5 + .../network/utils/wwan/files/data/1199-6803 | 5 + .../network/utils/wwan/files/data/1199-6804 | 5 + .../network/utils/wwan/files/data/1199-6805 | 5 + .../network/utils/wwan/files/data/1199-6808 | 5 + .../network/utils/wwan/files/data/1199-6809 | 5 + .../network/utils/wwan/files/data/1199-6813 | 5 + .../network/utils/wwan/files/data/1199-6815 | 5 + .../network/utils/wwan/files/data/1199-6816 | 5 + .../network/utils/wwan/files/data/1199-6820 | 5 + .../network/utils/wwan/files/data/1199-6821 | 5 + .../network/utils/wwan/files/data/1199-6822 | 5 + .../network/utils/wwan/files/data/1199-6833 | 5 + .../network/utils/wwan/files/data/1199-6834 | 5 + .../network/utils/wwan/files/data/1199-6835 | 5 + .../network/utils/wwan/files/data/1199-6838 | 5 + .../network/utils/wwan/files/data/1199-6839 | 5 + .../network/utils/wwan/files/data/1199-683a | 5 + .../network/utils/wwan/files/data/1199-683b | 5 + .../network/utils/wwan/files/data/1199-6850 | 5 + .../network/utils/wwan/files/data/1199-6851 | 5 + .../network/utils/wwan/files/data/1199-6852 | 5 + .../network/utils/wwan/files/data/1199-6853 | 5 + .../network/utils/wwan/files/data/1199-6855 | 5 + .../network/utils/wwan/files/data/1199-6856 | 5 + .../network/utils/wwan/files/data/1199-6859 | 5 + .../network/utils/wwan/files/data/1199-685a | 5 + .../network/utils/wwan/files/data/1199-6880 | 5 + .../network/utils/wwan/files/data/1199-6890 | 5 + .../network/utils/wwan/files/data/1199-6891 | 5 + .../network/utils/wwan/files/data/1199-6892 | 5 + .../network/utils/wwan/files/data/1199-6893 | 5 + .../network/utils/wwan/files/data/1199-68a2 | 4 + .../network/utils/wwan/files/data/1199-68aa | 5 + .../network/utils/wwan/files/data/1199-68c0 | 4 + .../network/utils/wwan/files/data/12d1-1035 | 5 + .../network/utils/wwan/files/data/12d1-1404 | 4 + .../network/utils/wwan/files/data/12d1-1406 | 5 + .../network/utils/wwan/files/data/12d1-140b | 5 + .../network/utils/wwan/files/data/12d1-140c | 4 + .../network/utils/wwan/files/data/12d1-1412 | 5 + .../network/utils/wwan/files/data/12d1-141b | 5 + .../network/utils/wwan/files/data/12d1-1433 | 5 + .../network/utils/wwan/files/data/12d1-1436 | 5 + .../network/utils/wwan/files/data/12d1-1444 | 5 + .../network/utils/wwan/files/data/12d1-144e | 5 + .../network/utils/wwan/files/data/12d1-1464 | 5 + .../network/utils/wwan/files/data/12d1-1465 | 5 + .../network/utils/wwan/files/data/12d1-1491 | 5 + .../network/utils/wwan/files/data/12d1-14a5 | 5 + .../network/utils/wwan/files/data/12d1-14a8 | 5 + .../network/utils/wwan/files/data/12d1-14ac | 4 + .../network/utils/wwan/files/data/12d1-14ae | 5 + .../network/utils/wwan/files/data/12d1-14c6 | 4 + .../network/utils/wwan/files/data/12d1-14c8 | 4 + .../network/utils/wwan/files/data/12d1-14c9 | 4 + .../network/utils/wwan/files/data/12d1-14ca | 4 + .../network/utils/wwan/files/data/12d1-14cb | 5 + .../network/utils/wwan/files/data/12d1-14cc | 4 + .../network/utils/wwan/files/data/12d1-14cf | 5 + .../network/utils/wwan/files/data/12d1-14d2 | 4 + .../network/utils/wwan/files/data/12d1-1506 | 5 + .../network/utils/wwan/files/data/12d1-150a | 4 + .../network/utils/wwan/files/data/12d1-150c | 4 + .../network/utils/wwan/files/data/12d1-150f | 4 + .../network/utils/wwan/files/data/12d1-151b | 4 + .../network/utils/wwan/files/data/12d1-151d | 5 + .../network/utils/wwan/files/data/12d1-156c | 5 + .../network/utils/wwan/files/data/12d1-1576 | 4 + .../network/utils/wwan/files/data/12d1-1577 | 4 + .../network/utils/wwan/files/data/12d1-1578 | 4 + .../network/utils/wwan/files/data/12d1-1589 | 4 + .../network/utils/wwan/files/data/12d1-1c05 | 5 + .../network/utils/wwan/files/data/12d1-1c07 | 5 + .../network/utils/wwan/files/data/12d1-1c08 | 5 + .../network/utils/wwan/files/data/12d1-1c10 | 5 + .../network/utils/wwan/files/data/12d1-1c12 | 5 + .../network/utils/wwan/files/data/12d1-1c1e | 4 + .../network/utils/wwan/files/data/12d1-1c1f | 4 + .../network/utils/wwan/files/data/12d1-1c23 | 5 + .../network/utils/wwan/files/data/12d1-1f16 | 4 + .../network/utils/wwan/files/data/1410-1400 | 5 + .../network/utils/wwan/files/data/1410-1410 | 5 + .../network/utils/wwan/files/data/1410-1420 | 5 + .../network/utils/wwan/files/data/1410-1430 | 5 + .../network/utils/wwan/files/data/1410-1450 | 5 + .../network/utils/wwan/files/data/1410-2100 | 5 + .../network/utils/wwan/files/data/1410-2110 | 5 + .../network/utils/wwan/files/data/1410-2120 | 5 + .../network/utils/wwan/files/data/1410-2130 | 5 + .../network/utils/wwan/files/data/1410-2400 | 5 + .../network/utils/wwan/files/data/1410-2410 | 5 + .../network/utils/wwan/files/data/1410-2420 | 5 + .../network/utils/wwan/files/data/1410-4100 | 5 + .../network/utils/wwan/files/data/1410-4400 | 5 + .../network/utils/wwan/files/data/1410-6000 | 5 + .../network/utils/wwan/files/data/1410-6001 | 5 + .../network/utils/wwan/files/data/1410-6002 | 5 + .../network/utils/wwan/files/data/1410-6010 | 5 + .../network/utils/wwan/files/data/1410-7001 | 5 + .../network/utils/wwan/files/data/1410-7003 | 5 + .../network/utils/wwan/files/data/1410-7030 | 5 + .../network/utils/wwan/files/data/1410-7031 | 6 + .../network/utils/wwan/files/data/1410-7041 | 5 + .../network/utils/wwan/files/data/1410-7042 | 5 + .../network/utils/wwan/files/data/1410-9011 | 4 + .../network/utils/wwan/files/data/1410-b001 | 4 + .../network/utils/wwan/files/data/1529-3100 | 6 + .../network/utils/wwan/files/data/16d5-6202 | 5 + .../network/utils/wwan/files/data/16d5-6501 | 5 + .../network/utils/wwan/files/data/16d5-6502 | 5 + .../network/utils/wwan/files/data/16d5-6603 | 6 + .../network/utils/wwan/files/data/16d5-900d | 6 + .../network/utils/wwan/files/data/16d8-5141 | 6 + .../network/utils/wwan/files/data/16d8-5533 | 6 + .../network/utils/wwan/files/data/16d8-5543 | 6 + .../network/utils/wwan/files/data/16d8-5553 | 6 + .../network/utils/wwan/files/data/16d8-6002 | 5 + .../network/utils/wwan/files/data/16d8-6006 | 5 + .../network/utils/wwan/files/data/16d8-6007 | 4 + .../network/utils/wwan/files/data/16d8-6008 | 4 + .../network/utils/wwan/files/data/16d8-6522 | 6 + .../network/utils/wwan/files/data/16d8-6523 | 6 + .../network/utils/wwan/files/data/16d8-6532 | 6 + .../network/utils/wwan/files/data/16d8-6533 | 6 + .../network/utils/wwan/files/data/16d8-6543 | 6 + .../network/utils/wwan/files/data/16d8-680a | 6 + .../network/utils/wwan/files/data/19d2-0001 | 5 + .../network/utils/wwan/files/data/19d2-0002 | 4 + .../network/utils/wwan/files/data/19d2-0015 | 5 + .../network/utils/wwan/files/data/19d2-0016 | 5 + .../network/utils/wwan/files/data/19d2-0017 | 4 + .../network/utils/wwan/files/data/19d2-0018 | 5 + .../network/utils/wwan/files/data/19d2-0019 | 4 + .../network/utils/wwan/files/data/19d2-0022 | 5 + .../network/utils/wwan/files/data/19d2-0024 | 5 + .../network/utils/wwan/files/data/19d2-0025 | 4 + .../network/utils/wwan/files/data/19d2-0031 | 4 + .../network/utils/wwan/files/data/19d2-0033 | 5 + .../network/utils/wwan/files/data/19d2-0037 | 5 + .../network/utils/wwan/files/data/19d2-0039 | 5 + .../network/utils/wwan/files/data/19d2-0042 | 4 + .../network/utils/wwan/files/data/19d2-0052 | 4 + .../network/utils/wwan/files/data/19d2-0055 | 4 + .../network/utils/wwan/files/data/19d2-0057 | 5 + .../network/utils/wwan/files/data/19d2-0063 | 4 + .../network/utils/wwan/files/data/19d2-0064 | 5 + .../network/utils/wwan/files/data/19d2-0066 | 5 + .../network/utils/wwan/files/data/19d2-0073 | 5 + .../network/utils/wwan/files/data/19d2-0079 | 5 + .../network/utils/wwan/files/data/19d2-0082 | 5 + .../network/utils/wwan/files/data/19d2-0086 | 5 + .../network/utils/wwan/files/data/19d2-0091 | 5 + .../network/utils/wwan/files/data/19d2-0094 | 5 + .../network/utils/wwan/files/data/19d2-0104 | 4 + .../network/utils/wwan/files/data/19d2-0108 | 5 + .../network/utils/wwan/files/data/19d2-0116 | 6 + .../network/utils/wwan/files/data/19d2-0117 | 5 + .../network/utils/wwan/files/data/19d2-0121 | 4 + .../network/utils/wwan/files/data/19d2-0124 | 4 + .../network/utils/wwan/files/data/19d2-0128 | 5 + .../network/utils/wwan/files/data/19d2-0142 | 6 + .../network/utils/wwan/files/data/19d2-0143 | 6 + .../network/utils/wwan/files/data/19d2-0152 | 5 + .../network/utils/wwan/files/data/19d2-0157 | 4 + .../network/utils/wwan/files/data/19d2-0167 | 4 + .../network/utils/wwan/files/data/19d2-0170 | 6 + .../network/utils/wwan/files/data/19d2-0199 | 4 + .../network/utils/wwan/files/data/19d2-0257 | 4 + .../network/utils/wwan/files/data/19d2-0265 | 4 + .../network/utils/wwan/files/data/19d2-0284 | 4 + .../network/utils/wwan/files/data/19d2-0326 | 4 + .../network/utils/wwan/files/data/19d2-1003 | 6 + .../network/utils/wwan/files/data/19d2-1008 | 4 + .../network/utils/wwan/files/data/19d2-1010 | 4 + .../network/utils/wwan/files/data/19d2-1015 | 6 + .../network/utils/wwan/files/data/19d2-1018 | 4 + .../network/utils/wwan/files/data/19d2-1172 | 6 + .../network/utils/wwan/files/data/19d2-1173 | 6 + .../network/utils/wwan/files/data/19d2-1176 | 4 + .../network/utils/wwan/files/data/19d2-1177 | 6 + .../network/utils/wwan/files/data/19d2-1181 | 6 + .../network/utils/wwan/files/data/19d2-1203 | 6 + .../network/utils/wwan/files/data/19d2-1208 | 6 + .../network/utils/wwan/files/data/19d2-1211 | 6 + .../network/utils/wwan/files/data/19d2-1212 | 6 + .../network/utils/wwan/files/data/19d2-1217 | 6 + .../network/utils/wwan/files/data/19d2-1218 | 6 + .../network/utils/wwan/files/data/19d2-1220 | 6 + .../network/utils/wwan/files/data/19d2-1222 | 6 + .../network/utils/wwan/files/data/19d2-1245 | 4 + .../network/utils/wwan/files/data/19d2-1252 | 4 + .../network/utils/wwan/files/data/19d2-1254 | 4 + .../network/utils/wwan/files/data/19d2-1256 | 4 + .../network/utils/wwan/files/data/19d2-1270 | 4 + .../network/utils/wwan/files/data/19d2-1401 | 4 + .../network/utils/wwan/files/data/19d2-1402 | 4 + .../network/utils/wwan/files/data/19d2-1426 | 4 + .../network/utils/wwan/files/data/19d2-1512 | 6 + .../network/utils/wwan/files/data/19d2-1515 | 6 + .../network/utils/wwan/files/data/19d2-1518 | 6 + .../network/utils/wwan/files/data/19d2-1519 | 6 + .../network/utils/wwan/files/data/19d2-1522 | 6 + .../network/utils/wwan/files/data/19d2-1525 | 6 + .../network/utils/wwan/files/data/19d2-1527 | 6 + .../network/utils/wwan/files/data/19d2-1537 | 6 + .../network/utils/wwan/files/data/19d2-1538 | 6 + .../network/utils/wwan/files/data/19d2-1544 | 6 + .../network/utils/wwan/files/data/19d2-2002 | 4 + .../network/utils/wwan/files/data/19d2-2003 | 5 + .../network/utils/wwan/files/data/19d2-ffdd | 5 + .../network/utils/wwan/files/data/19d2-ffe4 | 6 + .../network/utils/wwan/files/data/19d2-ffe9 | 5 + .../network/utils/wwan/files/data/19d2-fff1 | 5 + .../network/utils/wwan/files/data/19d2-fffb | 5 + .../network/utils/wwan/files/data/19d2-fffc | 5 + .../network/utils/wwan/files/data/19d2-fffd | 5 + .../network/utils/wwan/files/data/19d2-fffe | 5 + .../network/utils/wwan/files/data/19d2-ffff | 5 + .../network/utils/wwan/files/data/1a8d-1002 | 5 + .../network/utils/wwan/files/data/1a8d-1003 | 5 + .../network/utils/wwan/files/data/1a8d-1007 | 5 + .../network/utils/wwan/files/data/1a8d-1009 | 5 + .../network/utils/wwan/files/data/1a8d-100c | 5 + .../network/utils/wwan/files/data/1a8d-100d | 5 + .../network/utils/wwan/files/data/1a8d-2006 | 6 + .../network/utils/wwan/files/data/1bbb-0000 | 5 + .../network/utils/wwan/files/data/1bbb-0012 | 6 + .../network/utils/wwan/files/data/1bbb-0017 | 5 + .../network/utils/wwan/files/data/1bbb-0052 | 5 + .../network/utils/wwan/files/data/1bbb-00b7 | 5 + .../network/utils/wwan/files/data/1bbb-00ca | 6 + .../network/utils/wwan/files/data/1bbb-011e | 4 + .../network/utils/wwan/files/data/1bbb-0203 | 4 + .../network/utils/wwan/files/data/1c9e-6060 | 6 + .../network/utils/wwan/files/data/1c9e-6061 | 6 + .../network/utils/wwan/files/data/1c9e-9000 | 6 + .../network/utils/wwan/files/data/1c9e-9603 | 5 + .../network/utils/wwan/files/data/1c9e-9605 | 5 + .../network/utils/wwan/files/data/1c9e-9607 | 5 + .../network/utils/wwan/files/data/1c9e-9801 | 6 + .../network/utils/wwan/files/data/1c9e-9900 | 6 + .../network/utils/wwan/files/data/1e0e-9000 | 5 + .../network/utils/wwan/files/data/1e0e-9100 | 5 + .../network/utils/wwan/files/data/1e0e-9200 | 5 + .../network/utils/wwan/files/data/1e0e-ce16 | 5 + .../network/utils/wwan/files/data/1e0e-cefe | 6 + .../network/utils/wwan/files/data/1e2d-0053 | 6 + .../network/utils/wwan/files/data/1e2d-005b | 5 + .../network/utils/wwan/files/data/2001-7d00 | 6 + .../network/utils/wwan/files/data/2001-7d01 | 5 + .../network/utils/wwan/files/data/2001-7d02 | 5 + .../network/utils/wwan/files/data/2001-7d03 | 5 + .../network/utils/wwan/files/data/211f-6801 | 5 + .../network/utils/wwan/files/data/2357-0201 | 4 + .../network/utils/wwan/files/data/2357-0202 | 4 + .../network/utils/wwan/files/data/2357-0203 | 4 + .../network/utils/wwan/files/data/2357-9000 | 4 + .../network/utils/wwan/files/data/2c7c-0125 | 4 + .../network/utils/wwan/files/data/413c-8114 | 5 + .../network/utils/wwan/files/data/413c-8115 | 5 + .../network/utils/wwan/files/data/413c-8116 | 5 + .../network/utils/wwan/files/data/413c-8117 | 5 + .../network/utils/wwan/files/data/413c-8118 | 5 + .../network/utils/wwan/files/data/413c-8128 | 5 + .../network/utils/wwan/files/data/413c-8129 | 5 + .../network/utils/wwan/files/data/413c-8133 | 5 + .../network/utils/wwan/files/data/413c-8134 | 5 + .../network/utils/wwan/files/data/413c-8135 | 5 + .../network/utils/wwan/files/data/413c-8136 | 5 + .../network/utils/wwan/files/data/413c-8137 | 5 + .../network/utils/wwan/files/data/413c-8138 | 5 + .../network/utils/wwan/files/data/413c-8147 | 6 + .../network/utils/wwan/files/data/413c-8180 | 5 + .../network/utils/wwan/files/data/413c-8181 | 5 + .../network/utils/wwan/files/data/413c-8182 | 5 + .../network/utils/wwan/files/data/413c-8186 | 4 + .../network/utils/wwan/files/data/413c-8194 | 4 + .../network/utils/wwan/files/data/413c-8195 | 4 + .../network/utils/wwan/files/data/413c-8196 | 4 + .../network/utils/wwan/files/data/413c-819b | 5 + package/network/utils/wwan/files/wwan.sh | 146 + package/network/utils/wwan/files/wwan.usb | 23 + package/network/utils/wwan/files/wwan.usbmisc | 28 + package/system/ca-certificates/Makefile | 71 + ...fix-python3-cryptography-woes-in-cer.patch | 53 + package/system/fstools/Makefile | 142 + package/system/fstools/files/blockd.init | 22 + package/system/fstools/files/fstab.default | 2 + package/system/fstools/files/fstab.init | 22 + .../system/fstools/files/media-change.hotplug | 8 + package/system/fstools/files/mount.hotplug | 1 + package/system/fstools/files/snapshot | 113 + package/system/fwtool/Makefile | 48 + package/system/iucode-tool/Makefile | 62 + ...atibility-header-to-build-on-non-x86.patch | 31 + package/system/librecmc-keyring/Makefile | 38 + package/system/mtd/Makefile | 52 + package/system/mtd/src/Makefile | 30 + package/system/mtd/src/crc32.c | 95 + package/system/mtd/src/crc32.h | 26 + package/system/mtd/src/fis.c | 242 + package/system/mtd/src/fis.h | 16 + package/system/mtd/src/imagetag.c | 410 + package/system/mtd/src/jffs2.c | 366 + package/system/mtd/src/jffs2.h | 216 + package/system/mtd/src/linksys_bootcount.c | 187 + package/system/mtd/src/md5.c | 307 + package/system/mtd/src/md5.h | 65 + package/system/mtd/src/mtd.c | 1109 ++ package/system/mtd/src/mtd.h | 36 + package/system/mtd/src/seama.c | 188 + package/system/mtd/src/seama.h | 108 + .../system/mtd/src/tpl_ramips_recoveryflag.c | 94 + package/system/mtd/src/trx.c | 268 + package/system/mtd/src/wrg.c | 208 + package/system/mtd/src/wrgg.c | 189 + package/system/mtd/src/wrgg.h | 20 + package/system/openwrt-keyring/Makefile | 39 + package/system/opkg/Makefile | 97 + package/system/opkg/files/20_migrate-feeds | 9 + package/system/opkg/files/customfeeds.conf | 3 + package/system/opkg/files/opkg-key | 58 + package/system/opkg/files/opkg-smime.conf | 6 + package/system/opkg/files/opkg.conf | 4 + package/system/procd/Makefile | 142 + .../system/procd/files/hotplug-preinit.json | 18 + package/system/procd/files/hotplug.json | 87 + package/system/procd/files/procd.sh | 655 + package/system/procd/files/reload_config | 15 + package/system/procd/files/service | 30 + package/system/procd/files/uxc.init | 16 + package/system/rpcd/Makefile | 105 + .../rpcd/files/50-migrate-rpcd-ubus-sock.sh | 8 + package/system/rpcd/files/rpcd.config | 10 + package/system/rpcd/files/rpcd.init | 21 + package/system/ubox/Makefile | 71 + package/system/ubox/files/log.init | 112 + package/system/ubus/Makefile | 83 + package/system/ucert/Makefile | 71 + package/system/uci/Makefile | 87 + package/system/uci/files/lib/config/uci.sh | 163 + package/system/urandom-seed/Makefile | 29 + .../files/etc/init.d/urandom_seed | 12 + .../files/lib/preinit/81_urandom_seed | 22 + .../urandom-seed/files/sbin/urandom_seed | 20 + package/system/urngd/Makefile | 46 + package/system/urngd/files/urngd.init | 17 + package/system/usign/Makefile | 47 + package/system/zram-swap/Makefile | 48 + package/system/zram-swap/files/zram.init | 190 + package/utils/adb/Makefile | 53 + .../adb/patches/001-create_Makefile.patch | 45 + .../adb/patches/003-fix-musl-build.patch | 10 + .../utils/adb/patches/010-openssl-1.1.patch | 28 + .../020-cherry-picked-superspeed-fix.patch | 39 + package/utils/attr/Makefile | 93 + .../patches/100-no-gettext_configure.patch | 19 + .../attr/patches/101-no-gettext_autogen.patch | 7 + .../patches/102-no-gettext_Makefile.patch | 11 + package/utils/bcm4908img/Makefile | 54 + package/utils/bcm4908img/src/Makefile | 7 + package/utils/bcm4908img/src/bcm4908img.c | 1022 ++ package/utils/bsdiff/Makefile | 79 + package/utils/bsdiff/patches/001-musl.patch | 84 + package/utils/busybox/Config-defaults.in | 3209 +++++ package/utils/busybox/Config.in | 21 + package/utils/busybox/Makefile | 146 + package/utils/busybox/config/Config.in | 741 ++ .../utils/busybox/config/archival/Config.in | 450 + .../busybox/config/console-tools/Config.in | 144 + .../utils/busybox/config/coreutils/Config.in | 960 ++ .../busybox/config/debianutils/Config.in | 70 + .../utils/busybox/config/e2fsprogs/Config.in | 66 + .../config/e2fsprogs/old_e2fsprogs/Config.in | 69 + .../utils/busybox/config/editors/Config.in | 245 + .../utils/busybox/config/findutils/Config.in | 318 + package/utils/busybox/config/init/Config.in | 206 + .../busybox/config/klibc-utils/Config.in | 42 + package/utils/busybox/config/libbb/Config.in | 401 + .../utils/busybox/config/loginutils/Config.in | 330 + .../utils/busybox/config/mailutils/Config.in | 51 + .../utils/busybox/config/miscutils/Config.in | 812 ++ .../utils/busybox/config/modutils/Config.in | 239 + .../utils/busybox/config/networking/Config.in | 1263 ++ .../busybox/config/networking/udhcp/Config.in | 211 + .../utils/busybox/config/printutils/Config.in | 26 + package/utils/busybox/config/procps/Config.in | 277 + package/utils/busybox/config/runit/Config.in | 98 + .../utils/busybox/config/selinux/Config.in | 99 + package/utils/busybox/config/shell/Config.in | 603 + .../utils/busybox/config/sysklogd/Config.in | 171 + .../utils/busybox/config/util-linux/Config.in | 955 ++ .../config/util-linux/volume_id/Config.in | 203 + package/utils/busybox/convert_defaults.pl | 13 + package/utils/busybox/convert_menuconfig.pl | 76 + package/utils/busybox/files/cron | 41 + package/utils/busybox/files/ntpd-hotplug | 12 + package/utils/busybox/files/ntpd.capabilities | 22 + package/utils/busybox/files/ntpd_acl.json | 8 + package/utils/busybox/files/sysntpd | 130 + ...VE-2022-30065-awk-fix-use-after-free.patch | 42 + .../busybox/patches/120-lto-jobserver.patch | 27 + .../patches/200-udhcpc_reduce_msgs.patch | 18 + .../patches/201-udhcpc_changed_ifindex.patch | 15 + .../busybox/patches/210-add_netmsg_util.patch | 79 + .../busybox/patches/220-add_lock_util.patch | 158 + .../270-libbb_make_unicode_printable.patch | 20 + .../301-ip-link-fix-netlink-msg-size.patch | 11 + .../500-move-traceroute-applets-to-bin.patch | 13 + .../510-move-passwd-applet-to-bin.patch | 11 + ...520-loginutils-handle-crypt-failures.patch | 53 + ...-transaction-IDs-for-the-DNS-queries.patch | 42 + package/utils/busybox/selinux.config | 15 + package/utils/bzip2/Makefile | 110 + .../utils/bzip2/patches/020-no-utime.patch | 27 + .../utils/bzip2/patches/021-fix-LDFLAGS.patch | 11 + package/utils/dbus/Config.in | 7 + package/utils/dbus/Makefile | 161 + package/utils/dbus/files/dbus-launch | 12 + package/utils/dbus/files/dbus.init | 32 + .../utils/dbus/patches/010-cmake-paths.patch | 16 + .../020-cmake-fix-tmp-session-search.patch | 27 + package/utils/dtc/Makefile | 93 + ...t-for-printing-raw-bytes-with-fdtget.patch | 137 + package/utils/e2fsprogs/Makefile | 332 + package/utils/e2fsprogs/files/e2fsck.conf | 3 + package/utils/e2fsprogs/files/e2fsck.sh | 38 + .../e2fsprogs/patches/000-relocatable.patch | 40 + .../patches/001-com_err_version.patch | 13 + .../patches/002-fix-subst-host-build.patch | 10 + ...-sanity-check-to-extent-manipulation.patch | 50 + package/utils/f2fs-tools/Makefile | 104 + ...esize_f2fs-fix_wrong_ovp_calculation.patch | 46 + package/utils/hwdata/Makefile | 47 + package/utils/jsonfilter/Makefile | 32 + package/utils/kmod/Makefile | 91 + package/utils/lua/Makefile | 186 + .../001-include-version-number.patch | 57 + .../010-lua-5.1.3-lnum-full-260308.patch | 3748 ++++++ .../patches-host/011-lnum-use-double.patch | 11 + ...2-lnum-fix-ltle-relational-operators.patch | 22 + .../013-lnum-strtoul-parsing-fixes.patch | 48 + .../patches-host/015-lnum-ppc-compat.patch | 11 + .../030-archindependent-bytecode.patch | 111 + .../lua/patches-host/100-no_readline.patch | 49 + .../patches/001-include-version-number.patch | 57 + .../010-lua-5.1.3-lnum-full-260308.patch | 3737 ++++++ .../lua/patches/011-lnum-use-double.patch | 11 + ...2-lnum-fix-ltle-relational-operators.patch | 22 + .../013-lnum-strtoul-parsing-fixes.patch | 48 + .../lua/patches/015-lnum-ppc-compat.patch | 11 + .../utils/lua/patches/020-shared_liblua.patch | 140 + .../030-archindependent-bytecode.patch | 111 + .../patches/040-use-symbolic-functions.patch | 11 + .../utils/lua/patches/050-honor-cflags.patch | 11 + .../utils/lua/patches/100-no_readline.patch | 49 + package/utils/lua/patches/200-lua-path.patch | 15 + .../lua/patches/300-opcode_performance.patch | 363 + package/utils/lua5.3/Makefile | 151 + .../001-include-version-number.patch | 76 + .../lua5.3/patches-host/100-no_readline.patch | 54 + .../patches/001-include-version-number.patch | 76 + .../lua5.3/patches/020-shared_liblua.patch | 322 + .../lua5.3/patches/100-no_readline.patch | 54 + package/utils/mdadm/Makefile | 70 + package/utils/mdadm/files/mdadm.config | 18 + package/utils/mdadm/files/mdadm.init | 93 + .../mdadm/patches/100-cross_compile.patch | 11 + ...h-Undefine-dprintf-before-redefining.patch | 38 + ...missing-include-file-sys-sysmacros.h.patch | 29 + .../utils/mdadm/patches/200-reduce_size.patch | 25 + package/utils/mtd-utils/Makefile | 84 + .../mtd-utils/patches/100-fix_includes.patch | 10 + .../mtd-utils/patches/130-lzma_jffs2.patch | 5038 ++++++++ package/utils/nvram/Makefile | 55 + package/utils/nvram/files/nvram-bcm47xx.init | 98 + package/utils/nvram/files/nvram-bcm53xx.init | 40 + package/utils/nvram/src/Makefile | 7 + package/utils/nvram/src/cli.c | 255 + package/utils/nvram/src/crc.c | 69 + package/utils/nvram/src/nvram.c | 547 + package/utils/nvram/src/nvram.h | 123 + package/utils/nvram/src/sdinitvals.h | 30 + package/utils/osafeloader/Makefile | 40 + package/utils/osafeloader/src/Makefile | 7 + package/utils/osafeloader/src/md5.c | 296 + package/utils/osafeloader/src/md5.h | 45 + package/utils/osafeloader/src/osafeloader.c | 263 + package/utils/otrx/Makefile | 46 + package/utils/pciutils/Makefile | 86 + .../utils/pciutils/patches/101-no-strip.patch | 13 + .../utils/pciutils/patches/104-resolv.patch | 11 + .../utils/pciutils/patches/106-hwdata.patch | 11 + ...07-avoid-addng-multiple-version-tags.patch | 42 + package/utils/px5g-mbedtls/Makefile | 69 + package/utils/px5g-mbedtls/px5g-mbedtls.c | 326 + package/utils/px5g-wolfssl/Makefile | 50 + package/utils/px5g-wolfssl/px5g-wolfssl.c | 372 + package/utils/secilc/Makefile | 66 + package/utils/spidev_test/Makefile | 60 + package/utils/ucode/Makefile | 244 + package/utils/uencrypt/Makefile | 57 + package/utils/uencrypt/src/CMakeLists.txt | 20 + package/utils/uencrypt/src/uencrypt.c | 117 + package/utils/ugps/Makefile | 45 + package/utils/ugps/files/gps.config | 4 + package/utils/ugps/files/ugps.init | 36 + package/utils/usbmode/Makefile | 74 + package/utils/usbmode/data/12d1-1f16 | 2 + package/utils/usbmode/files/usbmode.hotplug | 1 + package/utils/usbmode/files/usbmode.init | 12 + package/utils/util-linux/Makefile | 903 ++ .../util-linux/patches/100-use_urandom.patch | 14 + package/utils/xz/Makefile | 124 + .../001-relative-pkg-config-paths.patch | 13 + rules.mk | 455 + scripts/arm-magic.sh | 42 + scripts/brcmImage.pl | 162 + scripts/bundle-libraries.sh | 212 + scripts/cameo-imghdr.py | 86 + scripts/cameo-tag.py | 117 + scripts/cfe-bin-header.py | 72 + scripts/cfe-partition-tag.py | 191 + scripts/cfe-wfi-tag.py | 200 + scripts/check-toolchain-clean.sh | 14 + scripts/checkpatch.pl | 6872 ++++++++++ scripts/clean-package.sh | 25 + scripts/cleanfile | 177 + scripts/cleanpatch | 259 + scripts/combined-ext-image.sh | 78 + scripts/combined-image.sh | 34 + scripts/command_all.sh | 11 + scripts/config.guess | 1702 +++ scripts/config.rpath | 666 + scripts/config.sub | 1864 +++ scripts/config/Makefile | 154 + scripts/config/README | 26 + scripts/config/conf.c | 915 ++ scripts/config/confdata.c | 1162 ++ scripts/config/expr.c | 1303 ++ scripts/config/expr.h | 327 + scripts/config/images.c | 328 + scripts/config/images.h | 33 + scripts/config/internal.h | 9 + scripts/config/lexer.l | 521 + scripts/config/lexer.lex.c | 4201 +++++++ scripts/config/list.h | 132 + scripts/config/lkc.h | 158 + scripts/config/lkc_proto.h | 53 + scripts/config/lxdialog/checklist.c | 319 + scripts/config/lxdialog/dialog.h | 238 + scripts/config/lxdialog/inputbox.c | 289 + scripts/config/lxdialog/menubox.c | 424 + scripts/config/lxdialog/textbox.c | 395 + scripts/config/lxdialog/util.c | 700 ++ scripts/config/lxdialog/yesno.c | 101 + scripts/config/mconf-cfg.sh | 52 + scripts/config/mconf.c | 1050 ++ scripts/config/menu.c | 878 ++ scripts/config/nconf-cfg.sh | 50 + scripts/config/nconf.c | 1562 +++ scripts/config/nconf.gui.c | 614 + scripts/config/nconf.h | 83 + scripts/config/parser.tab.c | 2189 ++++ scripts/config/parser.tab.h | 133 + scripts/config/parser.y | 718 ++ scripts/config/preprocess.c | 575 + scripts/config/qconf-cfg.sh | 24 + scripts/config/qconf.cc | 1916 +++ scripts/config/qconf.h | 275 + scripts/config/symbol.c | 1298 ++ scripts/config/util.c | 129 + scripts/const_structs.checkpatch | 68 + scripts/deptest.sh | 211 + scripts/diffconfig.sh | 17 + scripts/dl_cleanup.py | 281 + scripts/dl_github_archive.py | 428 + scripts/download.pl | 314 + scripts/dump-target-info.pl | 111 + scripts/env | 226 + scripts/ext-toolchain.sh | 618 + scripts/ext-tools.sh | 98 + scripts/feeds | 936 ++ scripts/fixup-makefile.pl | 135 + scripts/flashing/adam2flash-502T.pl | 342 + scripts/flashing/adam2flash-fritzbox.pl | 209 + scripts/flashing/adam2flash.pl | 174 + scripts/flashing/adsl2mue_flash.pl | 170 + scripts/flashing/eva_ramboot.py | 44 + scripts/flashing/flash.sh | 66 + scripts/flashing/jungo-image.py | 283 + scripts/functions.sh | 48 + scripts/gen-dependencies.sh | 33 + scripts/gen_image_generic.sh | 58 + scripts/get_source_date_epoch.sh | 35 + scripts/getver.sh | 59 + scripts/ipkg-build | 200 + scripts/ipkg-make-index.sh | 31 + scripts/ipkg-remove | 20 + scripts/json_add_image_info.py | 78 + scripts/json_overview_image_info.py | 70 + scripts/kconfig.pl | 189 + scripts/linksys-image.sh | 67 + scripts/make-ipkg-dir.sh | 21 + scripts/md5sum | 2 + scripts/metadata.pm | 318 + scripts/mkhash.c | 854 ++ scripts/mkits-qsdk-ipq-image.sh | 59 + scripts/mkits-zyxel-fit.sh | 38 + scripts/mkits.sh | 244 + scripts/netgear-encrypted-factory.py | 68 + scripts/om-fwupgradecfg-gen.sh | 93 + scripts/package-metadata.pl | 655 + scripts/pad_image | 100 + scripts/patch-kernel.sh | 54 + scripts/patch-specs.sh | 90 + scripts/portable_date.sh | 11 + scripts/qemustart | 342 + scripts/redboot-script.pl | 111 + scripts/relink-lib.sh | 14 + scripts/remote-gdb | 89 + scripts/rstrip.sh | 50 + scripts/sercomm-crypto.py | 86 + scripts/sercomm-partition-tag.py | 81 + scripts/sercomm-payload.py | 56 + scripts/sign_images.sh | 27 + scripts/size_compare.sh | 151 + scripts/slugimage.pl | 1217 ++ scripts/spelling.txt | 1517 +++ scripts/srecimage.pl | 57 + scripts/strip-kmod.sh | 55 + scripts/symlink-tree.sh | 51 + scripts/sysupgrade-tar.sh | 84 + scripts/target-metadata.pl | 464 + scripts/time.pl | 65 + scripts/timestamp.pl | 69 + scripts/ubinize-image.sh | 157 + scripts/xxdi.pl | 66 + target/Config.in | 232 + target/Makefile | 28 + target/imagebuilder/Config.in | 17 + target/imagebuilder/Makefile | 124 + target/imagebuilder/files/Makefile | 266 + target/imagebuilder/files/README.md | 11 + target/imagebuilder/files/repositories.conf | 4 + target/linux/Makefile | 11 + target/linux/ath79/Makefile | 19 + .../etc/hotplug.d/ieee80211/00-wifi-migration | 58 + target/linux/ath79/config-5.10 | 205 + .../ath79/dts/ar1022_iodata_wn-ag300dgr.dts | 211 + target/linux/ath79/dts/ar7100.dtsi | 227 + .../dts/ar7100_mikrotik_routerboard-4xx.dtsi | 172 + .../ath79/dts/ar7161_adtran_bsap1800-v2.dts | 8 + .../ath79/dts/ar7161_adtran_bsap1840.dts | 8 + .../ath79/dts/ar7161_adtran_bsap1880.dtsi | 93 + .../linux/ath79/dts/ar7161_aruba_ap-105.dts | 194 + .../ath79/dts/ar7161_buffalo_wzr-600dhp.dts | 8 + .../dts/ar7161_buffalo_wzr-hp-ag300h.dts | 8 + .../dts/ar7161_buffalo_wzr-hp-ag300h.dtsi | 287 + .../ath79/dts/ar7161_dlink_dir-825-b1.dts | 244 + .../linux/ath79/dts/ar7161_jjplus_ja76pf2.dts | 171 + target/linux/ath79/dts/ar7161_meraki_mr16.dts | 182 + .../ath79/dts/ar7161_netgear_wndap360.dts | 169 + .../linux/ath79/dts/ar7161_netgear_wndr.dtsi | 221 + .../ath79/dts/ar7161_netgear_wndr3700-v2.dts | 85 + .../ath79/dts/ar7161_netgear_wndr3700.dts | 104 + .../ath79/dts/ar7161_netgear_wndr3800.dts | 86 + .../ath79/dts/ar7161_netgear_wndr3800ch.dts | 86 + .../ath79/dts/ar7161_netgear_wndrmac-v1.dts | 85 + .../ath79/dts/ar7161_netgear_wndrmac-v2.dts | 86 + .../ath79/dts/ar7161_siemens_ws-ap3610.dts | 175 + .../ath79/dts/ar7161_trendnet_tew-673gru.dts | 180 + .../dts/ar7161_ubnt_routerstation-pro.dts | 30 + .../ath79/dts/ar7161_ubnt_routerstation.dts | 26 + .../ath79/dts/ar7161_ubnt_routerstation.dtsi | 127 + target/linux/ath79/dts/ar7240.dtsi | 90 + .../ath79/dts/ar7240_buffalo_whr-g301n.dts | 196 + .../ath79/dts/ar7240_dlink_dir-615-e4.dts | 159 + .../ath79/dts/ar7240_engenius_enh202-v1.dts | 106 + .../ath79/dts/ar7240_netgear_wnr1000-v2.dts | 215 + .../ath79/dts/ar7240_netgear_wnr612-v2.dts | 8 + .../ath79/dts/ar7240_netgear_wnr612-v2.dtsi | 148 + target/linux/ath79/dts/ar7240_on_n150r.dts | 8 + .../ath79/dts/ar7240_openmesh_om2p-v1.dts | 170 + target/linux/ath79/dts/ar7240_tplink.dtsi | 128 + .../linux/ath79/dts/ar7240_tplink_tl-wa.dtsi | 23 + .../ath79/dts/ar7240_tplink_tl-wa701nd-v1.dts | 8 + .../ath79/dts/ar7240_tplink_tl-wa730re-v1.dts | 8 + .../ath79/dts/ar7240_tplink_tl-wa801nd-v1.dts | 8 + .../ath79/dts/ar7240_tplink_tl-wa830re-v1.dts | 8 + .../ath79/dts/ar7240_tplink_tl-wa901nd-v1.dts | 8 + .../linux/ath79/dts/ar7240_tplink_tl-wr.dtsi | 46 + .../ath79/dts/ar7240_tplink_tl-wr740n-v1.dts | 8 + .../ath79/dts/ar7240_tplink_tl-wr740n-v3.dts | 8 + .../ath79/dts/ar7240_tplink_tl-wr741-v1.dts | 8 + .../ath79/dts/ar7240_tplink_tl-wr743nd-v1.dts | 8 + .../ath79/dts/ar7240_tplink_tl-wr841-v5.dts | 8 + .../ath79/dts/ar7240_tplink_tl-wr941-v4.dts | 8 + .../ath79/dts/ar7240_ubnt_bullet-m-ar7240.dts | 21 + target/linux/ath79/dts/ar7241.dtsi | 98 + .../ath79/dts/ar7241_netgear_wnr2000-v3.dts | 220 + .../ath79/dts/ar7241_netgear_wnr2200-16m.dts | 69 + .../ath79/dts/ar7241_netgear_wnr2200-8m.dts | 69 + .../ath79/dts/ar7241_netgear_wnr2200.dtsi | 194 + target/linux/ath79/dts/ar7241_tplink.dtsi | 118 + .../ath79/dts/ar7241_tplink_tl-mr3220-v1.dts | 18 + .../ath79/dts/ar7241_tplink_tl-mr3420-v1.dts | 18 + .../ath79/dts/ar7241_tplink_tl-mr3x20.dtsi | 40 + .../ath79/dts/ar7241_tplink_tl-wr841-v7.dts | 18 + .../ath79/dts/ar7241_tplink_tl-wr842n-v1.dts | 165 + .../linux/ath79/dts/ar7241_ubnt_airrouter.dts | 39 + .../ath79/dts/ar7241_ubnt_bullet-m-ar7241.dts | 14 + .../ath79/dts/ar7241_ubnt_nanobridge-m.dts | 14 + .../dts/ar7241_ubnt_nanostation-loco-m.dts | 14 + .../ath79/dts/ar7241_ubnt_nanostation-m.dts | 10 + .../ath79/dts/ar7241_ubnt_picostation-m.dts | 14 + .../ath79/dts/ar7241_ubnt_powerbridge-m.dts | 14 + .../linux/ath79/dts/ar7241_ubnt_rocket-m.dts | 22 + .../dts/ar7241_ubnt_unifi-ap-outdoor-plus.dts | 122 + target/linux/ath79/dts/ar7241_ubnt_unifi.dts | 100 + target/linux/ath79/dts/ar7241_ubnt_unifi.dtsi | 45 + target/linux/ath79/dts/ar7242.dtsi | 89 + .../linux/ath79/dts/ar7242_avm_fritz300e.dts | 163 + .../ath79/dts/ar7242_buffalo_bhr-4grv.dts | 30 + .../ath79/dts/ar7242_buffalo_wzr-bhr.dtsi | 158 + .../dts/ar7242_buffalo_wzr-hp-g302h-a1a0.dts | 243 + .../ath79/dts/ar7242_buffalo_wzr-hp-g450h.dts | 93 + .../ath79/dts/ar7242_engenius_eap350-v1.dts | 98 + .../ath79/dts/ar7242_engenius_ecb350-v1.dts | 98 + target/linux/ath79/dts/ar7242_meraki_mr12.dts | 179 + .../ath79/dts/ar7242_tplink_tl-wr2543-v1.dts | 187 + .../ath79/dts/ar7242_ubnt_edgeswitch-5xp.dts | 87 + .../ath79/dts/ar7242_ubnt_edgeswitch-8xp.dts | 201 + target/linux/ath79/dts/ar7242_ubnt_sw.dtsi | 146 + target/linux/ath79/dts/ar724x.dtsi | 165 + .../ath79/dts/ar724x_senao_loader-4k.dtsi | 84 + .../ath79/dts/ar724x_senao_loader-64k.dtsi | 84 + target/linux/ath79/dts/ar724x_ubnt_xm.dtsi | 105 + .../ath79/dts/ar724x_ubnt_xm_outdoor.dtsi | 33 + target/linux/ath79/dts/ar9132.dtsi | 195 + .../dts/ar9132_buffalo_wzr-hp-g300nh-rb.dts | 26 + .../dts/ar9132_buffalo_wzr-hp-g300nh-s.dts | 26 + .../dts/ar9132_buffalo_wzr-hp-g300nh.dtsi | 282 + .../ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts | 143 + .../dts/ar9132_tplink_tl-wr1043nd-v1.dts | 165 + .../ath79/dts/ar9132_tplink_tl-wr941-v2.dts | 171 + target/linux/ath79/dts/ar9330.dtsi | 218 + .../linux/ath79/dts/ar9330_dlink_dir-505.dts | 140 + .../ath79/dts/ar9330_glinet_gl-ar150.dts | 150 + .../ath79/dts/ar9330_openmesh_om2p-lc.dts | 8 + .../ath79/dts/ar9330_openmesh_om2p-v2.dts | 8 + .../linux/ath79/dts/ar9330_openmesh_om2p.dtsi | 162 + target/linux/ath79/dts/ar9330_pqi_air-pen.dts | 152 + .../linux/ath79/dts/ar9330_ziking_cpe46b.dts | 115 + target/linux/ath79/dts/ar9331.dtsi | 12 + .../ath79/dts/ar9331_8dev_carambola2.dts | 140 + .../ath79/dts/ar9331_alfa-network_ap121f.dts | 12 + .../ath79/dts/ar9331_alfa-network_ap121f.dtsi | 143 + .../ath79/dts/ar9331_alfa-network_ap121fe.dts | 12 + target/linux/ath79/dts/ar9331_arduino_yun.dts | 208 + .../dts/ar9331_embeddedwireless_dorin.dts | 120 + .../linux/ath79/dts/ar9331_etactica_eg200.dts | 130 + target/linux/ath79/dts/ar9331_glinet_6408.dts | 73 + target/linux/ath79/dts/ar9331_glinet_6416.dts | 73 + .../linux/ath79/dts/ar9331_glinet_64xx.dtsi | 71 + .../linux/ath79/dts/ar9331_glinet_gl-mifi.dts | 156 + .../ath79/dts/ar9331_glinet_gl-usb150.dts | 130 + .../ath79/dts/ar9331_hak5_lan-turtle.dts | 26 + .../ath79/dts/ar9331_hak5_lan-turtle.dtsi | 104 + .../ath79/dts/ar9331_hak5_packet-squirrel.dts | 64 + .../dts/ar9331_hak5_wifi-pineapple-nano.dts | 132 + target/linux/ath79/dts/ar9331_onion_omega.dts | 137 + .../linux/ath79/dts/ar9331_pisen_ts-d084.dts | 118 + .../linux/ath79/dts/ar9331_pisen_wmm003n.dts | 127 + .../ath79/dts/ar9331_teltonika_rut230-v1.dts | 206 + .../ath79/dts/ar9331_tplink_tl-mr10u.dts | 12 + .../ath79/dts/ar9331_tplink_tl-mr3020-v1.dts | 181 + .../ath79/dts/ar9331_tplink_tl-mr3040-v2.dts | 170 + .../ath79/dts/ar9331_tplink_tl-wr703n.dts | 12 + .../dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi | 126 + .../ath79/dts/ar9331_tplink_tl-wr710n-8m.dtsi | 71 + .../ath79/dts/ar9331_tplink_tl-wr710n-v1.dts | 8 + .../dts/ar9331_tplink_tl-wr710n-v2.1.dts | 8 + .../ath79/dts/ar9331_tplink_tl-wr710n.dtsi | 74 + .../ath79/dts/ar9331_tplink_tl-wr740n-v4.dts | 8 + .../ath79/dts/ar9331_tplink_tl-wr740n-v5.dts | 8 + .../ath79/dts/ar9331_tplink_tl-wr741nd-v4.dts | 8 + .../dts/ar9331_tplink_tl-wr741nd-v4.dtsi | 159 + target/linux/ath79/dts/ar9341.dtsi | 22 + .../ath79/dts/ar9341_engenius_eap300-v2.dts | 67 + .../dts/ar9341_engenius_ens202ext-v1.dts | 98 + .../ath79/dts/ar9341_openmesh_om2p-hs-v1.dts | 8 + .../ath79/dts/ar9341_openmesh_om2p-hs-v2.dts | 8 + .../ath79/dts/ar9341_openmesh_om2p-hs-v3.dts | 8 + .../ath79/dts/ar9341_openmesh_om2p-hs.dtsi | 172 + target/linux/ath79/dts/ar9341_pcs_cr3000.dts | 162 + .../linux/ath79/dts/ar9341_pisen_wmb001n.dts | 226 + target/linux/ath79/dts/ar9341_tplink.dtsi | 93 + .../ath79/dts/ar9341_tplink_tl-mr3420-v2.dts | 125 + .../linux/ath79/dts/ar9341_tplink_tl-wa.dtsi | 87 + .../ath79/dts/ar9341_tplink_tl-wa850re-v1.dts | 78 + .../ath79/dts/ar9341_tplink_tl-wa860re-v1.dts | 71 + .../ath79/dts/ar9341_tplink_tl-wa901nd-v3.dts | 51 + .../ath79/dts/ar9341_tplink_tl-wr841-v8.dts | 93 + .../ath79/dts/ar9341_tplink_tl-wr842n-v2.dts | 128 + .../linux/ath79/dts/ar9342_iodata_etg3-r.dts | 134 + .../linux/ath79/dts/ar9342_ruckus_zf7321.dts | 54 + .../ath79/dts/ar9342_ubnt_aircube-ac.dts | 124 + .../linux/ath79/dts/ar9342_ubnt_bullet-ac.dts | 38 + .../ath79/dts/ar9342_ubnt_bullet-m-xw.dts | 31 + .../linux/ath79/dts/ar9342_ubnt_lap-120.dts | 12 + .../dts/ar9342_ubnt_litebeam-ac-gen2.dts | 8 + .../dts/ar9342_ubnt_nanobeam-ac-gen2.dts | 38 + .../ath79/dts/ar9342_ubnt_nanobeam-ac.dts | 38 + .../ath79/dts/ar9342_ubnt_nanobeam-m5-xw.dts | 26 + .../dts/ar9342_ubnt_nanostation-ac-loco.dts | 8 + .../ath79/dts/ar9342_ubnt_nanostation-ac.dts | 38 + .../dts/ar9342_ubnt_nanostation-loco-m-xw.dts | 26 + .../dts/ar9342_ubnt_nanostation-m-xw.dts | 32 + .../dts/ar9342_ubnt_powerbeam-5ac-gen2.dts | 38 + .../ath79/dts/ar9342_ubnt_powerbeam-m2-xw.dts | 34 + .../ath79/dts/ar9342_ubnt_powerbeam-m5-xw.dts | 34 + target/linux/ath79/dts/ar9342_ubnt_wa.dtsi | 93 + .../linux/ath79/dts/ar9342_ubnt_wa_1port.dtsi | 32 + .../linux/ath79/dts/ar9342_ubnt_wa_2port.dtsi | 40 + target/linux/ath79/dts/ar9342_ubnt_xw.dtsi | 125 + target/linux/ath79/dts/ar9344.dtsi | 67 + .../ath79/dts/ar9344_aerohive_hiveap-121.dts | 242 + .../ath79/dts/ar9344_alfa-network_n5q.dts | 174 + .../dts/ar9344_araknis_an-300-ap-i-n.dts | 120 + .../linux/ath79/dts/ar9344_atheros_db120.dts | 250 + .../ath79/dts/ar9344_comfast_cf-e120a-v3.dts | 155 + .../ath79/dts/ar9344_compex_wpj344-16m.dts | 157 + .../ath79/dts/ar9344_dlink_dir-825-c1.dts | 76 + .../ath79/dts/ar9344_dlink_dir-835-a1.dts | 44 + .../linux/ath79/dts/ar9344_dlink_dir-8x5.dtsi | 140 + .../dts/ar9344_embeddedwireless_balin.dts | 130 + .../ath79/dts/ar9344_engenius_eap600.dts | 58 + .../ath79/dts/ar9344_engenius_ecb600.dts | 53 + .../ath79/dts/ar9344_engenius_exx600.dtsi | 85 + .../ath79/dts/ar9344_enterasys_ws-ap3705i.dts | 224 + .../ath79/dts/ar9344_mercury_mw4530r-v1.dts | 8 + .../ar9344_mikrotik_routerboard-16m-nor.dtsi | 64 + .../ar9344_mikrotik_routerboard-sxt-5n.dtsi | 185 + .../linux/ath79/dts/ar9344_netgear_wndr.dtsi | 279 + .../ath79/dts/ar9344_netgear_wndr3700-v4.dts | 10 + .../ath79/dts/ar9344_netgear_wndr4300.dts | 10 + .../ath79/dts/ar9344_netgear_wndr4300sw.dts | 10 + .../ath79/dts/ar9344_netgear_wndr4300tn.dts | 8 + .../ath79/dts/ar9344_netgear_wndr_usb.dtsi | 34 + .../ath79/dts/ar9344_netgear_wndr_wan.dtsi | 13 + .../linux/ath79/dts/ar9344_ocedo_raccoon.dts | 197 + .../ath79/dts/ar9344_openmesh_mr600-v1.dts | 46 + .../ath79/dts/ar9344_openmesh_mr600-v2.dts | 71 + .../ath79/dts/ar9344_openmesh_mr600.dtsi | 146 + .../ath79/dts/ar9344_openmesh_om5p-an.dts | 230 + .../linux/ath79/dts/ar9344_openmesh_om5p.dts | 177 + target/linux/ath79/dts/ar9344_pcs_cap324.dts | 174 + target/linux/ath79/dts/ar9344_pcs_cr5000.dts | 227 + .../ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts | 61 + .../ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts | 61 + .../ath79/dts/ar9344_qxwlan_e750g-v8-16m.dts | 59 + .../ath79/dts/ar9344_qxwlan_e750g-v8-8m.dts | 59 + .../linux/ath79/dts/ar9344_qxwlan_e750x.dtsi | 107 + .../linux/ath79/dts/ar9344_ruckus_zf7372.dts | 133 + .../linux/ath79/dts/ar9344_samsung_wam250.dts | 168 + .../dts/ar9344_teltonika_rut955-h7v3c0.dts | 194 + .../ath79/dts/ar9344_teltonika_rut955.dts | 190 + .../ath79/dts/ar9344_teltonika_rut9xx.dtsi | 184 + target/linux/ath79/dts/ar9344_tplink_cpe.dtsi | 128 + .../ath79/dts/ar9344_tplink_cpe210-v1.dts | 12 + .../ath79/dts/ar9344_tplink_cpe220-v2.dts | 12 + .../ath79/dts/ar9344_tplink_cpe510-v1.dts | 12 + .../ath79/dts/ar9344_tplink_cpe510-v2.dts | 8 + .../ath79/dts/ar9344_tplink_cpe510-v3.dts | 8 + .../ath79/dts/ar9344_tplink_cpe610-v1.dts | 33 + .../ath79/dts/ar9344_tplink_cpe610-v2.dts | 33 + .../ath79/dts/ar9344_tplink_cpe_1port.dtsi | 45 + .../ath79/dts/ar9344_tplink_cpe_2port.dtsi | 56 + .../ath79/dts/ar9344_tplink_tl-wdr3500-v1.dts | 102 + .../ath79/dts/ar9344_tplink_tl-wdr3600-v1.dts | 8 + .../dts/ar9344_tplink_tl-wdr4300-v1-il.dts | 8 + .../ath79/dts/ar9344_tplink_tl-wdr4300-v1.dts | 8 + .../ath79/dts/ar9344_tplink_tl-wdr4300.dtsi | 135 + .../ath79/dts/ar9344_tplink_tl-wdr4310-v1.dts | 8 + .../ath79/dts/ar9344_tplink_tl-wdrxxxx.dtsi | 119 + .../ath79/dts/ar9344_tplink_tl-wr841hp-v2.dts | 170 + .../ath79/dts/ar9344_tplink_wbs210-v1.dts | 12 + .../ath79/dts/ar9344_tplink_wbs210-v2.dts | 12 + .../ath79/dts/ar9344_tplink_wbs510-v1.dts | 12 + .../ath79/dts/ar9344_tplink_wbs510-v2.dts | 12 + .../ath79/dts/ar9344_ubnt_unifi-ap-pro.dts | 162 + .../linux/ath79/dts/ar9344_wd_mynet-n600.dts | 108 + .../linux/ath79/dts/ar9344_wd_mynet-n750.dts | 126 + .../linux/ath79/dts/ar9344_wd_mynet-nxxx.dtsi | 88 + .../ar9344_wd_mynet-wifi-rangeextender.dts | 163 + .../ath79/dts/ar9344_winchannel_wb2000.dts | 225 + .../ath79/dts/ar9344_zbtlink_zbt-wd323.dts | 168 + target/linux/ath79/dts/ar934x.dtsi | 290 + .../linux/ath79/dts/ar934x_ruckus_zf73xx.dtsi | 198 + .../linux/ath79/dts/ar934x_senao_loader.dtsi | 88 + target/linux/ath79/dts/ath79.dtsi | 93 + target/linux/ath79/dts/qca9531_8dev_lima.dts | 124 + .../ath79/dts/qca9531_alfa-network_n2q.dts | 122 + .../dts/qca9531_alfa-network_pi-wifi4.dts | 88 + .../ath79/dts/qca9531_alfa-network_r36a.dts | 83 + .../ath79/dts/qca9531_alfa-network_r36a.dtsi | 133 + .../dts/qca9531_alfa-network_tube-2hq.dts | 65 + .../ath79/dts/qca9531_comfast_cf-e130n-v2.dts | 146 + .../ath79/dts/qca9531_comfast_cf-e314n-v2.dts | 165 + .../linux/ath79/dts/qca9531_comfast_cf-e5.dts | 157 + .../ath79/dts/qca9531_compex_wpj531-16m.dts | 152 + .../dts/qca9531_glinet_gl-ar300m-lite.dts | 35 + .../dts/qca9531_glinet_gl-ar300m-nand.dts | 16 + .../dts/qca9531_glinet_gl-ar300m-nor.dts | 11 + .../ath79/dts/qca9531_glinet_gl-ar300m.dtsi | 192 + .../ath79/dts/qca9531_glinet_gl-ar300m16.dts | 15 + .../ath79/dts/qca9531_glinet_gl-x300b.dts | 152 + .../ath79/dts/qca9531_glinet_gl-xe300.dts | 168 + .../ath79/dts/qca9531_letv_lba-047-ch.dts | 158 + .../ath79/dts/qca9531_qxwlan_e600g-v2-16m.dts | 32 + .../ath79/dts/qca9531_qxwlan_e600g-v2-8m.dts | 32 + .../linux/ath79/dts/qca9531_qxwlan_e600g.dtsi | 122 + target/linux/ath79/dts/qca9531_telco_t1.dts | 154 + .../ath79/dts/qca9531_tplink_tl-mr3420-v3.dts | 215 + .../ath79/dts/qca9531_tplink_tl-mr6400-v1.dts | 173 + .../ath79/dts/qca9531_tplink_tl-wr810n-v1.dts | 28 + .../linux/ath79/dts/qca9531_wallys_dr531.dts | 168 + .../ath79/dts/qca9533_comfast_cf-e110n-v2.dts | 174 + .../ath79/dts/qca9533_dlink_dap-13xx.dtsi | 121 + .../ath79/dts/qca9533_dlink_dap-2230-a1.dts | 55 + .../ath79/dts/qca9533_dlink_dap-3320-a1.dts | 55 + .../dts/qca9533_mikrotik_routerboard-16m.dtsi | 84 + .../dts/qca9533_mikrotik_routerboard-95x.dtsi | 98 + .../qca9533_mikrotik_routerboard-lhg-hb.dtsi | 88 + .../ath79/dts/qca9533_openmesh_om2p-hs-v4.dts | 8 + .../ath79/dts/qca9533_openmesh_om2p-v4.dts | 8 + .../ath79/dts/qca9533_openmesh_om2p-v4.dtsi | 170 + .../ath79/dts/qca9533_plasmacloud_pa300.dts | 8 + .../ath79/dts/qca9533_plasmacloud_pa300.dtsi | 149 + .../ath79/dts/qca9533_plasmacloud_pa300e.dts | 8 + .../linux/ath79/dts/qca9533_qca_ap143-16m.dts | 77 + .../linux/ath79/dts/qca9533_qca_ap143-8m.dts | 77 + target/linux/ath79/dts/qca9533_qca_ap143.dtsi | 119 + .../ath79/dts/qca9533_tplink_cpe210-v2.dts | 8 + .../ath79/dts/qca9533_tplink_cpe210-v3.dts | 8 + .../ath79/dts/qca9533_tplink_cpe210.dtsi | 14 + .../ath79/dts/qca9533_tplink_cpe220-v3.dts | 31 + .../ath79/dts/qca9533_tplink_cpexxx.dtsi | 131 + .../dts/qca9533_tplink_tl-wa801nd-v3.dts | 8 + .../dts/qca9533_tplink_tl-wa801nd-v4.dts | 8 + .../ath79/dts/qca9533_tplink_tl-wa801nd.dtsi | 129 + .../dts/qca9533_tplink_tl-wa850re-v2.dts | 177 + .../ath79/dts/qca9533_tplink_tl-wr802n-v1.dts | 8 + .../ath79/dts/qca9533_tplink_tl-wr802n-v2.dts | 8 + .../ath79/dts/qca9533_tplink_tl-wr802n.dtsi | 101 + .../ath79/dts/qca9533_tplink_tl-wr810n-v2.dts | 8 + .../ath79/dts/qca9533_tplink_tl-wr841-v10.dts | 15 + .../ath79/dts/qca9533_tplink_tl-wr841-v11.dts | 8 + .../dts/qca9533_tplink_tl-wr841-v11.dtsi | 24 + .../ath79/dts/qca9533_tplink_tl-wr841-v12.dts | 8 + .../ath79/dts/qca9533_tplink_tl-wr841-v9.dts | 15 + .../ath79/dts/qca9533_tplink_tl-wr841.dtsi | 137 + .../dts/qca9533_tplink_tl-wr841hp-v3.dts | 159 + .../ath79/dts/qca9533_tplink_tl-wr842n-v3.dts | 177 + .../ath79/dts/qca9533_ubnt_aircube-isp.dts | 109 + .../linux/ath79/dts/qca9533_yuncore_a930.dts | 118 + target/linux/ath79/dts/qca953x.dtsi | 287 + .../ath79/dts/qca953x_dlink_dap-2xxx.dtsi | 52 + .../ath79/dts/qca953x_tplink_tl-wr810n.dtsi | 119 + .../ath79/dts/qca9556_avm_fritz-repeater.dtsi | 86 + .../linux/ath79/dts/qca9556_avm_fritz450e.dts | 76 + .../linux/ath79/dts/qca9557_8dev_rambutan.dts | 141 + .../ath79/dts/qca9557_buffalo_bhr-4grv2.dts | 152 + .../ath79/dts/qca9557_iodata_wn-ac-dgr.dtsi | 189 + .../ath79/dts/qca9558_comfast_cf-wr650ac.dtsi | 112 + .../ath79/dts/qca9558_compex_wpj558-16m.dts | 143 + .../ath79/dts/qca9558_devolo_dvl1xxx.dtsi | 130 + .../ath79/dts/qca9558_jjplus_jwap230.dts | 183 + .../qca9558_librerouter_librerouter-v1.dts | 217 + .../ath79/dts/qca9558_linksys_ea4500-v3.dts | 211 + .../dts/qca9558_mikrotik_routerboard-92x.dtsi | 176 + .../dts/qca9558_mikrotik_routerboard-96x.dtsi | 197 + .../ath79/dts/qca9558_netgear_ex7300.dtsi | 228 + .../linux/ath79/dts/qca9558_ocedo_ursus.dts | 160 + .../linux/ath79/dts/qca9558_openmesh_a60.dtsi | 197 + .../linux/ath79/dts/qca9558_openmesh_mr.dtsi | 177 + .../ath79/dts/qca9558_openmesh_mr900-v1.dts | 26 + .../ath79/dts/qca9558_openmesh_mr900-v2.dts | 26 + .../ath79/dts/qca9558_qxwlan_e558-v2-16m.dts | 16 + .../ath79/dts/qca9558_qxwlan_e558-v2-8m.dts | 16 + .../linux/ath79/dts/qca9558_qxwlan_e558.dtsi | 179 + target/linux/ath79/dts/qca9558_sophos_ap.dtsi | 179 + .../ath79/dts/qca9558_tplink_archer-c.dtsi | 173 + .../ath79/dts/qca9558_tplink_archer-c5-v1.dts | 77 + .../ath79/dts/qca9558_tplink_archer-c7-v1.dts | 83 + .../ath79/dts/qca9558_tplink_archer-c7-v2.dts | 100 + .../ath79/dts/qca9558_tplink_archer-d7.dtsi | 171 + .../linux/ath79/dts/qca9558_tplink_rex5x.dtsi | 182 + .../dts/qca9558_tplink_tl-wdr4900-v2.dts | 236 + .../dts/qca9558_tplink_tl-wr1043nd-v2.dts | 8 + .../dts/qca9558_tplink_tl-wr1043nd-v3.dts | 8 + .../ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi | 183 + .../dts/qca9558_tplink_tl-wr1045nd-v2.dts | 8 + .../dts/qca9558_tplink_tl-wr941n-v7-cn.dts | 129 + .../ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dts | 111 + .../dts/qca9558_ubnt_powerbeam-5ac-500.dts | 49 + .../dts/qca9558_ubnt_rocket-5ac-lite.dts | 49 + target/linux/ath79/dts/qca955x.dtsi | 357 + .../ath79/dts/qca955x_dlink_dap-2xxx.dtsi | 52 + .../linux/ath79/dts/qca955x_senao_loader.dtsi | 91 + target/linux/ath79/dts/qca955x_ubnt_xc.dtsi | 56 + .../ath79/dts/qca955x_zyxel_nbg6x16.dtsi | 134 + .../linux/ath79/dts/qca9561_avm_fritz4020.dts | 159 + .../ath79/dts/qca9561_tplink_archer-c5x.dtsi | 142 + .../ath79/dts/qca9561_tplink_archer-c6x.dtsi | 81 + .../ath79/dts/qca9561_xiaomi_mi-router-4q.dts | 155 + .../linux/ath79/dts/qca9563_compex_wpj563.dts | 149 + .../ath79/dts/qca9563_dlink_dir-842-c.dtsi | 156 + .../dts/qca9563_elecom_wrc-300ghbk2-i.dts | 62 + .../ath79/dts/qca9563_elecom_wrc-ghbk2-i.dtsi | 114 + .../linux/ath79/dts/qca9563_netgear_wndr.dtsi | 262 + .../ath79/dts/qca9563_netgear_wndr4300-v2.dts | 17 + .../ath79/dts/qca9563_netgear_wndr4500-v3.dts | 39 + .../ath79/dts/qca9563_qxwlan_e1700ac.dtsi | 162 + .../ath79/dts/qca9563_rosinson_wr818.dts | 160 + .../dts/qca9563_tplink_archer-x6-v2.dtsi | 38 + .../dts/qca9563_tplink_archer-x7-v5.dtsi | 169 + .../dts/qca9563_tplink_eap2x5-1port.dtsi | 143 + .../linux/ath79/dts/qca9563_tplink_re450.dtsi | 135 + .../ath79/dts/qca9563_tplink_tl-wpa8630.dtsi | 131 + .../dts/qca9563_tplink_tl-wr1043n-v5.dts | 98 + .../ath79/dts/qca9563_tplink_tl-wr1043n.dtsi | 111 + .../dts/qca9563_tplink_tl-wr1043nd-v4.dts | 127 + .../ath79/dts/qca9563_ubnt_unifiac-lite.dts | 8 + .../ath79/dts/qca9563_ubnt_unifiac-lite.dtsi | 30 + .../ath79/dts/qca9563_ubnt_unifiac-lr.dts | 8 + .../dts/qca9563_ubnt_unifiac-mesh-pro.dts | 8 + .../ath79/dts/qca9563_ubnt_unifiac-mesh.dts | 8 + .../ath79/dts/qca9563_ubnt_unifiac-pro.dts | 16 + .../ath79/dts/qca9563_ubnt_unifiac-pro.dtsi | 31 + .../linux/ath79/dts/qca9563_ubnt_unifiac.dtsi | 117 + .../ath79/dts/qca9563_yuncore_xd4200.dtsi | 118 + .../linux/ath79/dts/qca9563_zte_mf286ar.dtsi | 134 + target/linux/ath79/dts/qca956x.dtsi | 326 + .../ath79/dts/tp9343_tplink_tl-wa901nd-v4.dts | 8 + .../ath79/dts/tp9343_tplink_tl-wa901nd-v5.dts | 8 + .../ath79/dts/tp9343_tplink_tl-wa901nd.dtsi | 52 + .../ath79/dts/tp9343_tplink_tl-wr940n-v3.dts | 8 + .../ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi | 69 + .../ath79/dts/tp9343_tplink_tl-wr940n-v4.dts | 71 + .../ath79/dts/tp9343_tplink_tl-wr940n-v6.dts | 35 + .../ath79/dts/tp9343_tplink_tl-wr941hp-v1.dts | 167 + .../ath79/dts/tp9343_tplink_tl-wr941nd-v6.dts | 8 + .../ath79/dts/tp9343_tplink_tl-wr94x.dtsi | 21 + .../linux/ath79/dts/tp9343_tplink_tl-wx.dtsi | 78 + .../mips/include/asm/fw/myloader/myloader.h | 34 + .../ath79/files/drivers/gpio/gpio-latch.c | 205 + .../ath79/files/drivers/gpio/gpio-rb4xx.c | 172 + .../ath79/files/drivers/gpio/gpio-rb91x-key.c | 218 + .../ath79/files/drivers/mfd/rb4xx-cpld.c | 182 + .../files/drivers/mtd/nand/raw/ar934x_nand.c | 1498 +++ .../files/drivers/mtd/nand/raw/nand_rb4xx.c | 249 + .../files/drivers/mtd/nand/raw/rb91x_nand.c | 380 + .../drivers/mtd/parsers/parser_cybertan.c | 163 + .../net/ethernet/atheros/ag71xx/Kconfig | 25 + .../net/ethernet/atheros/ag71xx/Makefile | 13 + .../net/ethernet/atheros/ag71xx/ag71xx.h | 454 + .../ethernet/atheros/ag71xx/ag71xx_debugfs.c | 285 + .../ethernet/atheros/ag71xx/ag71xx_ethtool.c | 194 + .../net/ethernet/atheros/ag71xx/ag71xx_gmac.c | 135 + .../net/ethernet/atheros/ag71xx/ag71xx_main.c | 1827 +++ .../net/ethernet/atheros/ag71xx/ag71xx_mdio.c | 254 + .../net/ethernet/atheros/ag71xx/ag71xx_phy.c | 92 + .../ath79/files/include/mfd/rb4xx-cpld.h | 25 + .../generic/base-files/etc/board.d/01_leds | 476 + .../generic/base-files/etc/board.d/02_network | 753 ++ .../base-files/etc/board.d/03_gpio_switches | 102 + .../etc/hotplug.d/firmware/10-ath9k-eeprom | 187 + .../etc/hotplug.d/ieee80211/10_fix_wifi_mac | 69 + .../generic/base-files/etc/init.d/bootcount | 16 + .../etc/uci-defaults/04_led_migration | 73 + .../etc/uci-defaults/05_fix-compat-version | 14 + .../etc/uci-defaults/09_fix-checksum | 27 + .../generic/base-files/lib/functions/k2t.sh | 54 + .../base-files/lib/preinit/10_fix_eth_mac.sh | 30 + .../lib/upgrade/dualboot_datachk.sh | 105 + .../lib/upgrade/failsafe_datachk.sh | 64 + .../base-files/lib/upgrade/openmesh.sh | 114 + .../base-files/lib/upgrade/platform.sh | 91 + .../base-files/lib/upgrade/redboot-fis.sh | 31 + target/linux/ath79/generic/config-default | 27 + target/linux/ath79/generic/target.mk | 7 + target/linux/ath79/image/Makefile | 96 + target/linux/ath79/image/common-buffalo.mk | 34 + target/linux/ath79/image/common-netgear.mk | 39 + target/linux/ath79/image/common-senao.mk | 38 + target/linux/ath79/image/common-tp-link.mk | 95 + target/linux/ath79/image/common-ubnt.mk | 142 + target/linux/ath79/image/common-yuncore.mk | 12 + target/linux/ath79/image/generic-tp-link.mk | 499 + target/linux/ath79/image/generic.mk | 1811 +++ target/linux/ath79/image/lzma-loader/Makefile | 72 + .../ath79/image/lzma-loader/src/LzmaDecode.c | 584 + .../ath79/image/lzma-loader/src/LzmaDecode.h | 113 + .../ath79/image/lzma-loader/src/LzmaTypes.h | 45 + .../ath79/image/lzma-loader/src/Makefile | 113 + .../ath79/image/lzma-loader/src/ar71xx_regs.h | 725 ++ .../linux/ath79/image/lzma-loader/src/board.c | 56 + .../linux/ath79/image/lzma-loader/src/cache.c | 43 + .../linux/ath79/image/lzma-loader/src/cache.h | 17 + .../ath79/image/lzma-loader/src/cacheops.h | 85 + .../ath79/image/lzma-loader/src/config.h | 31 + .../ath79/image/lzma-loader/src/cp0regdef.h | 39 + .../linux/ath79/image/lzma-loader/src/head.S | 134 + .../ath79/image/lzma-loader/src/loader.c | 268 + .../ath79/image/lzma-loader/src/loader.lds | 34 + .../ath79/image/lzma-loader/src/loader2.lds | 10 + .../ath79/image/lzma-loader/src/lzma-data.lds | 8 + .../ath79/image/lzma-loader/src/printf.c | 350 + .../ath79/image/lzma-loader/src/printf.h | 18 + target/linux/ath79/image/nand.mk | 232 + target/linux/ath79/modules.mk | 16 + .../ath79/nand/base-files/etc/board.d/01_leds | 35 + .../nand/base-files/etc/board.d/02_network | 108 + .../base-files/etc/board.d/03_gpio_switches | 20 + .../etc/hotplug.d/firmware/10-ath9k-eeprom | 43 + .../etc/hotplug.d/ieee80211/10-fix-wifi-mac | 24 + .../nand/base-files/etc/init.d/bootcount | 16 + .../etc/uci-defaults/04_led_migration | 13 + .../base-files/lib/preinit/10_fix_eth_mac.sh | 15 + .../nand/base-files/lib/upgrade/glinet.sh | 90 + .../nand/base-files/lib/upgrade/platform.sh | 29 + target/linux/ath79/nand/config-default | 24 + target/linux/ath79/nand/target.mk | 10 + ...ds-add-reset-controller-based-driver.patch | 186 + .../0004-phy-add-ath79-usb-phys.patch | 333 + ...005-usb-add-more-OF-quirk-properties.patch | 24 + ...9-intc-add-irq-cascade-driver-for-QC.patch | 168 + ...ip-irq-ath79-cpu-drop-OF-init-helper.patch | 23 + ...ngs-PCI-qcom-ar7100-adds-binding-doc.patch | 57 + .../0018-MIPS-pci-ar71xx-convert-to-OF.patch | 202 + ...ngs-PCI-qcom-ar7240-adds-binding-doc.patch | 61 + .../0020-MIPS-pci-ar724x-convert-to-OF.patch | 205 + .../0032-MIPS-ath79-sanitize-symbols.patch | 93 + .../0033-spi-ath79-drop-pdata-support.patch | 70 + .../0034-MIPS-ath79-ath9k-exports.patch | 27 + ...-MIPS-ath79-remove-irq-code-from-pci.patch | 139 + .../patches-5.10/0037-missing-registers.patch | 21 + ...9-add-missing-QCA955x-GMAC-registers.patch | 90 + ...S-ath79-export-UART1-reference-clock.patch | 52 + .../004-register_gpio_driver_earlier.patch | 18 + .../0040-ath79-sgmii-config.patch | 9 + ...or-use-4-bit-locking-for-MX25L12805D.patch | 33 + ...ci-ar724x-add-QCA9550-reset-sequence.patch | 130 + ...or-support-mtd-name-from-device-tree.patch | 54 + ...-ar934x-fix-transfer-and-word-delays.patch | 27 + ...3-v5.17-spi-ar934x-fix-transfer-size.patch | 62 + .../404-mtd-cybertan-trx-parser.patch | 27 + .../408-mtd-redboot_partition_scan.patch | 44 + ...th79-Implement-the-spi_mem-interface.patch | 68 + ...ath79-set-number-of-chipselect-lines.patch | 26 + .../420-net-use-downstream-ag71xx.patch | 28 + ...425-at803x-allow-sgmii-aneg-override.patch | 16 + .../430-drivers-link-spi-before-mtd.patch | 12 + .../440-mtd-ar934x-nand-driver.patch | 25 + ...ath79-swizzle-pci-address-for-ar71xx.patch | 98 + .../900-mdio_bitbang_ignore_ta_value.patch | 32 + ...-prevent-rescheduling-during-command.patch | 61 + .../910-unaligned_access_hacks.patch | 869 ++ .../patches-5.10/920-mikrotik-rb4xx.patch | 76 + .../930-ar8216-make-reg-access-atomic.patch | 59 + .../patches-5.10/939-mikrotik-rb91x.patch | 68 + ...th79-add-support-for-booting-QCN550x.patch | 48 + target/linux/generic/PATCHES | 20 + ...dcode-path-to-awk-in-scripts-ld-vers.patch | 30 + .../011-kbuild-export-SUBARCH.patch | 21 + ...station-poweroff-add-missing-put_dev.patch | 27 + ...-uasm-Enable-muhu-opcode-for-MIPS-R6.patch | 65 + ...rkaround-for-Loongson-2F-nop-CPU-err.patch | 31 + ...ips-bpf-Add-eBPF-JIT-for-32-bit-MIPS.patch | 3078 +++++ ...bpf-Add-new-eBPF-JIT-for-64-bit-MIPS.patch | 1005 ++ ...f-Add-JIT-workarounds-for-CPU-errata.patch | 120 + ...0-v5.16-05-mips-bpf-Enable-eBPF-JITs.patch | 61 + ...f-Remove-old-BPF-JIT-implementations.patch | 387 + ...a-neon-optimize-for-non-block-size-m.patch | 272 + ...a-neon-add-missing-counter-increment.patch | 38 + ...ut-frequently-used-members-above-cac.patch | 42 + ...to-define-reg_update_bits-for-no-bus.patch | 52 + ...CPU_MIPS64-for-remaining-MIPS64-CPUs.patch | 36 + ...boot-put-appended-dtb-into-a-section.patch | 36 + ...ow_offload-handle-netdevice-events-f.patch | 106 + ...convert-fixed-partitions-to-the-json.patch | 324 + ...move-partition-binding-to-its-own-fi.patch | 115 + ...d-add-binding-for-BCM4908-partitions.patch | 92 + ...art-support-BCM4908-fixed-partitions.patch | 654 + ...rt-limit-parsing-of-deprecated-DT-sy.patch | 69 + ...rt-make-symbol-bcm4908_partitions_qu.patch | 34 + ...em-cells-compatible-to-parse-mtd-as-.patch | 38 + ...ings-nvmem-drop-nodename-restriction.patch | 25 + ...Document-use-of-nvmem-cells-compatib.patch | 117 + ...add-binding-for-Linksys-Northstar-pa.patch | 98 + ...rt-support-Linksys-Northstar-partiti.patch | 156 + ...0002-Disable-buffered-writes-for-AMD.patch | 54 + ...ings-mtd-brcm-trx-Add-brcm-trx-magic.patch | 32 + ...Allow-to-specify-brcm-trx-magic-in-D.patch | 50 + ...Allow-to-use-TRX-parser-on-Mediatek-.patch | 25 + ...x-allow-to-use-on-MediaTek-MIPS-SoCs.patch | 33 + ...platform_populate-for-MTD-partitions.patch | 72 + ...ce-of-support-for-dynamic-partitions.patch | 106 + ...g-MTD-device-associated-with-a-speci.patch | 72 + ...e-check-partition-before-dereference.patch | 30 + ...sing-of_node_get-in-dynamic-partitio.patch | 101 + ...y-a-bit-code-find-partition-matching.patch | 65 + ...find-OF-node-for-every-MTD-partition.patch | 84 + ...T_DEV-for-partitions-marked-as-rootf.patch | 47 + ...TP-Link-SafeLoader-partitions-table-.patch | 229 + ...13-ubifs-default-to-zstd-compression.patch | 25 + ...pi-poll-functionality-to-__napi_poll.patch | 88 + ...threaded-able-napi-poll-loop-support.patch | 261 + ...tribute-to-control-napi-threaded-mod.patch | 177 + ...ween-napi-kthread-mode-and-busy-poll.patch | 93 + ...up-on-napi_disable-for-threaded-napi.patch | 53 + ...table-add-hash-offset-field-to-tuple.patch | 52 + ...ble-separate-replace-destroy-and-sta.patch | 98 + ...ack-Remove-unused-variable-declarati.patch | 22 + ...ble-consolidate-skb_try_make_writabl.patch | 291 + ...ble-move-skb_try_make_writable-befor.patch | 35 + ...ble-move-FLOW_OFFLOAD_DIR_MAX-away-f.patch | 82 + ...wtable-fast-NAT-functions-never-fail.patch | 394 + ...ble-call-dst_check-to-fall-back-to-c.patch | 46 + ...ble-refresh-timeout-after-dst-and-wr.patch | 49 + ...es-update-table-flags-from-the-commi.patch | 103 + ...arding-path-from-virtual-netdevice-a.patch | 170 + ...lve-forwarding-path-for-vlan-devices.patch | 80 + ...ve-forwarding-path-for-bridge-device.patch | 62 + ...ve-forwarding-path-for-VLAN-tag-acti.patch | 207 + ...forwarding-path-for-bridge-pppoe-dev.patch | 113 + ...-forwarding-path-for-dsa-slave-ports.patch | 63 + ...filter-flowtable-add-xmit-path-types.patch | 147 + ...ble-use-dev_fill_forward_path-to-obt.patch | 191 + ...ble-use-dev_fill_forward_path-to-obt.patch | 374 + ...netfilter-flowtable-add-vlan-support.patch | 410 + ...ble-add-bridge-vlan-filtering-suppor.patch | 30 + ...etfilter-flowtable-add-pppoe-support.patch | 145 + ...-netfilter-flowtable-add-dsa-support.patch | 32 + ...ter-flowtable-bridge-and-vlan-suppor.patch | 107 + ...ble-add-offload-support-for-xmit-pat.patch | 310 + ...ow_offload-use-direct-xmit-if-hardwa.patch | 114 + ...ble-bridge-vlan-hardware-offload-and.patch | 123 + ...w_offload-add-FLOW_ACTION_PPPOE_PUSH.patch | 30 + ...ble-support-for-FLOW_ACTION_PPPOE_PU.patch | 35 + ...sa-slave-add-support-for-TC_SETUP_FT.patch | 53 + ...k_eth_soc-fix-parsing-packets-in-GDM.patch | 68 + ..._eth_soc-add-support-for-initializin.patch | 1308 ++ ..._eth_soc-add-flow-offloading-support.patch | 568 + ...e-update-documentation-with-enhancem.patch | 236 + ...rnet-mediatek-ppe-fix-busy-wait-loop.patch | 72 + ...iatek-fix-a-typo-bug-in-flow-offload.patch | 29 + ..._eth_soc-unmap-RX-data-before-callin.patch | 38 + ...et-mtk_eth_soc-fix-build_skb-cleanup.patch | 38 + ...net-mtk_eth_soc-use-napi_consume_skb.patch | 77 + ..._eth_soc-reduce-MDIO-bus-access-late.patch | 30 + ..._eth_soc-remove-unnecessary-TX-queue.patch | 54 + ..._eth_soc-use-larger-burst-size-for-Q.patch | 37 + ...-mtk_eth_soc-increase-DMA-ring-sizes.patch | 26 + ..._eth_soc-implement-dynamic-interrupt.patch | 313 + ..._eth_soc-cache-HW-pointer-of-last-fr.patch | 73 + ..._eth_soc-only-read-the-full-RX-descr.patch | 49 + ..._eth_soc-reduce-unnecessary-interrup.patch | 39 + ...et-mtk_eth_soc-rework-NAPI-callbacks.patch | 110 + ..._eth_soc-set-PPE-flow-hash-as-skb-ha.patch | 47 + ..._eth_soc-use-iopoll.h-macro-for-DMA-.patch | 71 + ...t-ethernet-mtk_eth_soc-missing-mutex.patch | 63 + ...t-mtk_eth_soc-handle-VLAN-pop-action.patch | 22 + ...ble-dst_check-from-garbage-collector.patch | 159 + ...ack-Introduce-tcp-offload-timeout-co.patch | 94 + ...ack-Introduce-udp-offload-timeout-co.patch | 92 + ...ble-Set-offload-timeouts-according-t.patch | 134 + ...ble-Add-FLOW_OFFLOAD_XMIT_UNSPEC-xmi.patch | 41 + ...owtable-avoid-possible-false-sharing.patch | 27 + ...wtable-move-dst_check-to-packet-path.patch | 99 + ...thernet-mediatek-support-setting-MTU.patch | 138 + ...ack-sanitize-table-size-default-sett.patch | 100 + ...table-remove-nf_ct_l4proto_find-call.patch | 47 + ...ack-remove-offload_pickup-sysctl-aga.patch | 184 + ...lter-flowtable-fix-TCP-flow-teardown.patch | 166 + ...x-select-correct-page-on-config-init.patch | 108 + ...ix-probe-error-if-copper-page-is-sel.patch | 73 + ...10-v5.12-net-phy-Add-100-base-x-mode.patch | 56 + ...-sfp-add-support-for-100-base-x-SFPs.patch | 40 + ...phy-marvell-refactor-HWMON-OOP-style.patch | 549 + ...-marvell-add-SFP-support-for-88E1510.patch | 161 + ...cally-bring-up-DSA-master-when-openi.patch | 85 + ...y-switchdev-of-disappearance-of-old-.patch | 126 + ...r-when-a-non-legacy-FDB-operation-fa.patch | 52 + ...e-switchdev_notifier_fdb_info-in-dsa.patch | 226 + ...tchdev-event-implementation-under-th.patch | 85 + ...ly-in-dsa_slave_switchdev_event-if-w.patch | 42 + ...or-SWITCHDEV_-FDB-DEL-_ADD_TO_DEVICE.patch | 264 + ...setup-core-clock-even-in-TRGMII-mode.patch | 84 + ...-mt7530-MT7530-optional-GPIO-support.patch | 181 + ...-mt7530-Add-support-for-EEE-features.patch | 120 + ...the-dst-buffer-to-of_get_mac_address.patch | 1935 +++ ..._addr_nvmem-for-non-platform-devices.patch | 77 + ...andle-deferred-probe-error-due-to-ma.patch | 42 + ...platform-handle-mac-address-deferral.patch | 36 + ...-0001-net-bgmac-improve-handling-PHY.patch | 84 + ...t-bgmac-support-MDIO-described-in-DT.patch | 54 + ...k-change-simple-print-to-dev-variant.patch | 35 + ...use-iopoll-macro-for-qca8k_busy_wait.patch | 61 + ...prove-qca8k-read-write-rmw-bus-acces.patch | 86 + ...a-qca8k-handle-qca8k_set_page-errors.patch | 101 + ...ndle-error-with-qca8k_read-operation.patch | 207 + ...ndle-error-with-qca8k_write-operatio.patch | 263 + ...andle-error-with-qca8k_rmw-operation.patch | 226 + ...8k-handle-error-from-qca8k_busy_wait.patch | 66 + ...qca8k-add-support-for-qca8327-switch.patch | 96 + ...sa-qca8k-Document-new-compatible-qca.patch | 26 + ...add-priority-tweak-to-qca8337-switch.patch | 130 + ...a-qca8k-limit-port5-delay-to-qca8337.patch | 31 + ...d-GLOBAL_FC-settings-needed-for-qca8.patch | 48 + ...dsa-qca8k-add-support-for-switch-rev.patch | 114 + ...d-ethernet-ports-fallback-to-setup_m.patch | 28 + ...-qca8k-make-rgmii-delay-configurable.patch | 188 + ...clear-MASTER_EN-after-phy-read-write.patch | 50 + ...a-qca8k-protect-MASTER-busy_wait-wit.patch | 128 + ...qca8k-enlarge-mdio-delay-and-timeout.patch | 39 + ...d-support-for-internal-phy-and-inter.patch | 267 + ...ngs-dsa-qca8k-Document-internal-mdio.patch | 93 + ...prove-internal-mdio-read-write-bus-a.patch | 95 + ...ss-switch_revision-info-to-phy-dev_f.patch | 48 + ...ort-for-qca8k-switch-internal-PHY-in.patch | 229 + ...issing-unlock-on-error-in-qca8k-vlan.patch | 64 + ...eck-return-value-of-read-functions-c.patch | 348 + ...d-missing-check-return-value-in-qca8.patch | 47 + ...x-an-endian-bug-in-qca8k-get-ethtool.patch | 47 + ...eck-the-correct-variable-in-qca8k-se.patch | 31 + ...ernel-panic-with-legacy-mdio-mapping.patch | 80 + ...-Add-debug-prints-in-b53_vlan_enable.patch | 65 + ...sa-b53-spi-allow-device-tree-probing.patch | 41 + ...3-net-dsa-b53-relax-is63xx-condition.patch | 31 + ...tag_brcm-add-support-for-legacy-tags.patch | 180 + ...0005-net-dsa-b53-support-legacy-tags.patch | 53 + ...dsa-b53-mmap-Add-device-tree-support.patch | 92 + ...-spi-add-missing-MODULE_DEVICE_TABLE.patch | 27 + ...Do-not-force-CPU-to-be-always-tagged.patch | 86 + ...3-remove-redundant-null-check-on-dev.patch | 30 + ...Create-default-VLAN-entry-explicitly.patch | 71 + ...dd-support-for-qca-8327-internal-phy.patch | 48 + ...3-Include-all-ports-in-enabled_ports.patch | 131 + ...-BCM5301x-workaround-for-a-wrong-CPU.patch | 42 + ...prove-flow-control-setup-on-BCM5301x.patch | 32 + ...t-dsa-b53-Drop-unused-cpu_port-field.patch | 205 + ...t-skb-offload_fwd_mark-when-not-offl.patch | 138 + ...x-add-support-for-qca-8327-A-variant.patch | 65 + ...dd-resume-suspend-function-to-qca83x.patch | 45 + ...ix-spacing-and-improve-name-for-83xx.patch | 95 + ...hy-at803x-fix-resume-for-QCA8327-phy.patch | 131 + ...x-add-DAC-amplitude-fix-for-8327-phy.patch | 91 + ...nable-prefer-master-for-83xx-interna.patch | 27 + ...hy-at803x-better-describe-debug-regs.patch | 127 + ...-dsa-qca8k-add-mac-power-sel-support.patch | 80 + ...dsa-qca8k-Add-SGMII-clock-phase-prop.patch | 30 + ...k-add-support-for-sgmii-falling-edge.patch | 127 + ...dsa-qca8k-Document-support-for-CPU-p.patch | 29 + ...dsa-qca8k-add-support-for-cpu-port-6.patch | 153 + ...work-rgmii-delay-logic-and-scan-for-.patch | 295 + ...dsa-qca8k-Document-qca-sgmii-enable-.patch | 33 + ...-qca8k-add-explicit-SGMII-PLL-enable.patch | 65 + ...dsa-qca8k-Document-qca-led-open-drai.patch | 37 + ...qca8k-add-support-for-pws-config-reg.patch | 92 + ...dsa-qca8k-document-support-for-qca83.patch | 32 + ...et-dsa-qca8k-add-support-for-QCA8328.patch | 78 + ...8k-set-internal-delay-also-for-sgmii.patch | 159 + ...move-port-config-to-dedicated-struct.patch | 124 + ...ipq8064-mdio-fix-warning-with-new-qc.patch | 26 + ...net-dsa-qca8k-convert-to-YAML-schema.patch | 631 + ...elay-applied-to-wrong-cpu-in-parse-p.patch | 28 + ...for-loop-in-setup-and-add-cpu-port-c.patch | 151 + ...sure-pad0-mac06-exchange-is-disabled.patch | 47 + ...ernal-delay-applied-to-the-wrong-PAD.patch | 48 + ...16-net-dsa-qca8k-fix-MTU-calculation.patch | 46 + ...redundant-check-in-parse_port_config.patch | 29 + ...vert-to-GENMASK_FIELD_PREP_FIELD_GET.patch | 508 + ...move-extra-mutex_init-in-qca8k_setup.patch | 25 + ...move-regmap-init-in-probe-and-set-it.patch | 46 + ...k-initial-conversion-to-regmap-heper.patch | 249 + ...ca8k-add-additional-MIB-counter-and-.patch | 120 + ...ca8k-add-support-for-port-fast-aging.patch | 53 + ...sa-qca8k-add-set_ageing_time-support.patch | 78 + ...sa-qca8k-add-support-for-mdb_add-del.patch | 142 + ...1-net-dsa-mt7530-support-setting-MTU.patch | 112 + ...-dsa-mt7530-enable-MTU-normalization.patch | 36 + ...a-mt7530-support-setting-ageing-time.patch | 99 + ...et-dsa-mt7530-support-MDB-operations.patch | 171 + ...MediaTek-Gigabit-Ethernet-PHY-driver.patch | 159 + ...net-dsa-mt7530-add-interrupt-support.patch | 425 + ...N-filtering-syncing-out-of-dsa_switc.patch | 83 + ...cross-chip-syncing-of-VLAN-filtering.patch | 58 + ..._nvram-rename-finding-function-and-i.patch | 80 + ..._nvram-add-helper-checking-for-NVRAM.patch | 90 + ...7xx_nvram-extract-code-copying-NVRAM.patch | 80 + ..._nvram-look-for-NVRAM-with-for-inste.patch | 37 + ..._nvram-inline-code-checking-NVRAM-si.patch | 70 + ...-handling-U-Boot-environment-variabl.patch | 278 + ...-find-Device-Tree-nodes-for-NVMEM-ce.patch | 29 + ...em-u-boot-env-fix-crc32-casting-type.patch | 30 + ...support-passing-DT-node-in-cell-info.patch | 41 + ...-fix-crc32_data_offset-on-redundant-.patch | 56 + ...env-align-endianness-of-crc32-values.patch | 47 + ...boot-env-add-Broadcom-format-support.patch | 65 + ...rious-flag-to-disable-overcurrent-ch.patch | 88 + ...-platform-add-spurious_oc-DT-support.patch | 31 + ...-declare-its-reliance-on-msi-domains.patch | 34 + ...declar-their-reliance-on-msi-domains.patch | 44 + ...ertise-lack-of-built-in-msi-handling.patch | 59 + ...ialize-enable-GPIO-direction-to-outp.patch | 28 + ...s-add-Broadcom-s-BCM63138-controller.patch | 125 + ...-add-support-for-BCM63138-controller.patch | 371 + ...-leds-bcm63138-unify-full-stops-in-d.patch | 30 + ...help-info-about-BCM63138-module-name.patch | 25 + ...eds-leds-bcm63138-get-rid-of-LED_OFF.patch | 30 + ...mul-Add-description-for-class_revisi.patch | 44 + ...mul-Add-definitions-for-missing-capa.patch | 73 + ...-support-for-DEVCAP2-DEVCTL2-LNKCAP2.patch | 61 + ...ment-actions-in-driver-remove-method.patch | 34 + ...able-bus-mastering-when-unbinding-dr.patch | 41 + ...k-all-interrupts-when-unbinding-driv.patch | 48 + ...ark-Fix-memory-leak-in-driver-unbind.patch | 33 + ...k-Assert-PERST-when-unbinding-driver.patch | 33 + ...able-link-training-when-unbinding-dr.patch | 34 + ...able-common-PHY-when-unbinding-drive.patch | 30 + ...mvebu-a3700-comphy-Rename-HS-SGMMI-t.patch | 67 + ...mvebu-a3700-comphy-Remove-unsupporte.patch | 40 + ...PS-ath79-drop-_machine_restart-again.patch | 49 + ...ext-hwmon-lm70-Add-ti-tmp125-support.patch | 71 + ...ether-export-usbnet_cdc_zte_rx_fixup.patch | 58 + ...e-the-bogus-MAC-fixup-for-ZTE-device.patch | 118 + ...-scope-of-bogus-MAC-address-detectio.patch | 63 + target/linux/generic/config-5.10 | 7180 +++++++++++ target/linux/generic/config-filter | 14 + .../mtd/partitions/openwrt,uimage.yaml | 91 + .../Documentation/networking/adm6996.txt | 110 + .../files/arch/mips/fw/myloader/Makefile | 5 + .../files/arch/mips/fw/myloader/myloader.c | 63 + .../generic/files/block/partitions/fit.c | 293 + .../files/drivers/leds/leds-ubnt-ledbar.c | 255 + .../files/drivers/mtd/mtdsplit/Kconfig | 103 + .../files/drivers/mtd/mtdsplit/Makefile | 17 + .../files/drivers/mtd/mtdsplit/mtdsplit.c | 130 + .../files/drivers/mtd/mtdsplit/mtdsplit.h | 67 + .../drivers/mtd/mtdsplit/mtdsplit_bcm63xx.c | 186 + .../drivers/mtd/mtdsplit/mtdsplit_bcm_wfi.c | 523 + .../drivers/mtd/mtdsplit/mtdsplit_brnimage.c | 104 + .../mtd/mtdsplit/mtdsplit_cfe_bootfs.c | 90 + .../files/drivers/mtd/mtdsplit/mtdsplit_elf.c | 287 + .../files/drivers/mtd/mtdsplit/mtdsplit_eva.c | 103 + .../files/drivers/mtd/mtdsplit/mtdsplit_fit.c | 362 + .../drivers/mtd/mtdsplit/mtdsplit_jimage.c | 284 + .../drivers/mtd/mtdsplit/mtdsplit_lzma.c | 104 + .../drivers/mtd/mtdsplit/mtdsplit_minor.c | 125 + .../drivers/mtd/mtdsplit/mtdsplit_seama.c | 118 + .../drivers/mtd/mtdsplit/mtdsplit_squashfs.c | 72 + .../drivers/mtd/mtdsplit/mtdsplit_tplink.c | 176 + .../files/drivers/mtd/mtdsplit/mtdsplit_trx.c | 155 + .../drivers/mtd/mtdsplit/mtdsplit_uimage.c | 282 + .../drivers/mtd/mtdsplit/mtdsplit_wrgg.c | 142 + .../generic/files/drivers/mtd/nand/mtk_bmt.c | 465 + .../generic/files/drivers/mtd/nand/mtk_bmt.h | 131 + .../files/drivers/mtd/nand/mtk_bmt_bbt.c | 203 + .../files/drivers/mtd/nand/mtk_bmt_nmbm.c | 2348 ++++ .../files/drivers/mtd/nand/mtk_bmt_v2.c | 513 + .../drivers/mtd/parsers/routerbootpart.c | 365 + .../generic/files/drivers/net/phy/adm6996.c | 1243 ++ .../generic/files/drivers/net/phy/adm6996.h | 186 + .../generic/files/drivers/net/phy/ar8216.c | 2917 +++++ .../generic/files/drivers/net/phy/ar8216.h | 723 ++ .../generic/files/drivers/net/phy/ar8327.c | 1550 +++ .../generic/files/drivers/net/phy/ar8327.h | 333 + .../generic/files/drivers/net/phy/b53/Kconfig | 37 + .../files/drivers/net/phy/b53/Makefile | 10 + .../files/drivers/net/phy/b53/b53_common.c | 1730 +++ .../files/drivers/net/phy/b53/b53_mdio.c | 436 + .../files/drivers/net/phy/b53/b53_mmap.c | 241 + .../files/drivers/net/phy/b53/b53_phy_fixup.c | 55 + .../files/drivers/net/phy/b53/b53_priv.h | 336 + .../files/drivers/net/phy/b53/b53_regs.h | 348 + .../files/drivers/net/phy/b53/b53_spi.c | 344 + .../files/drivers/net/phy/b53/b53_srab.c | 378 + .../generic/files/drivers/net/phy/ip17xx.c | 1370 ++ .../generic/files/drivers/net/phy/psb6970.c | 442 + .../generic/files/drivers/net/phy/rtl8306.c | 1063 ++ .../files/drivers/net/phy/rtl8366_smi.c | 1624 +++ .../files/drivers/net/phy/rtl8366_smi.h | 160 + .../generic/files/drivers/net/phy/rtl8366rb.c | 1532 +++ .../generic/files/drivers/net/phy/rtl8366s.c | 1320 ++ .../generic/files/drivers/net/phy/rtl8367.c | 1846 +++ .../generic/files/drivers/net/phy/rtl8367b.c | 1673 +++ .../generic/files/drivers/net/phy/swconfig.c | 1242 ++ .../files/drivers/net/phy/swconfig_leds.c | 555 + .../files/drivers/platform/mikrotik/Kconfig | 19 + .../files/drivers/platform/mikrotik/Makefile | 4 + .../drivers/platform/mikrotik/rb_hardconfig.c | 825 ++ .../drivers/platform/mikrotik/rb_softconfig.c | 795 ++ .../drivers/platform/mikrotik/routerboot.c | 251 + .../drivers/platform/mikrotik/routerboot.h | 37 + .../dt-bindings/mtd/partitions/uimage.h | 198 + .../files/include/linux/ar8216_platform.h | 133 + .../files/include/linux/ath5k_platform.h | 30 + .../files/include/linux/ath9k_platform.h | 58 + .../generic/files/include/linux/mtd/mtk_bmt.h | 18 + .../generic/files/include/linux/myloader.h | 121 + .../linux/platform_data/adm6996-gpio.h | 29 + .../generic/files/include/linux/routerboot.h | 106 + .../files/include/linux/rt2x00_platform.h | 23 + .../generic/files/include/linux/rtl8366.h | 42 + .../generic/files/include/linux/rtl8367.h | 63 + .../generic/files/include/linux/switch.h | 179 + .../generic/files/include/uapi/linux/switch.h | 119 + .../generic/hack-5.10/204-module_strip.patch | 212 + .../generic/hack-5.10/205-kconfig-exit.patch | 11 + .../210-darwin_scripts_include.patch | 3053 +++++ .../211-darwin-uuid-typedef-clash.patch | 22 + .../hack-5.10/212-tools_portability.patch | 110 + .../hack-5.10/214-spidev_h_portability.patch | 24 + .../hack-5.10/220-arm-gc_sections.patch | 123 + .../hack-5.10/221-module_exports.patch | 102 + .../hack-5.10/230-openwrt_lzma_options.patch | 34 + .../hack-5.10/249-udp-tunnel-selection.patch | 11 + .../hack-5.10/250-netfilter_depends.patch | 27 + .../linux/generic/hack-5.10/251-kconfig.patch | 199 + .../generic/hack-5.10/252-SATA_PMP.patch | 23 + .../generic/hack-5.10/253-ksmbd-config.patch | 22 + .../hack-5.10/259-regmap_dynamic.patch | 135 + .../260-crypto_test_dependencies.patch | 52 + .../hack-5.10/261-lib-arc4-unhide.patch | 15 + .../generic/hack-5.10/280-rfkill-stubs.patch | 84 + ...cache-use-more-efficient-cache-blast.patch | 64 + .../301-mips_image_cmdline_hack.patch | 38 + .../321-powerpc_crtsavres_prereq.patch | 38 + ...don-t-reply-on-mtdblock-device-minor.patch | 85 + ...rans-call-add-disks-after-mtd-device.patch | 98 + .../410-block-fit-partition-parser.patch | 224 + ...upport-OpenWrt-s-MTD_ROOTFS_ROOT_DEV.patch | 24 + ...-root-on-targets-with-CONFIG_FIT_PAR.patch | 31 + ...ers-add-nvmem-support-to-cmdlinepart.patch | 120 + .../hack-5.10/430-mtk-bmt-support.patch | 23 + .../generic/hack-5.10/531-debloat_lzma.patch | 1040 ++ .../hack-5.10/600-bridge_offload.patch | 817 ++ ...lter-connmark-introduce-set-dscpmark.patch | 212 + ...-netfilter-add-xt_FLOWOFFLOAD-target.patch | 874 ++ .../hack-5.10/651-wireless_mesh_header.patch | 24 + .../hack-5.10/660-fq_codel_defaults.patch | 27 + ...t-size-the-hashtable-more-adequately.patch | 25 + .../700-swconfig_switch_drivers.patch | 129 + .../710-net-dsa-mv88e6xxx-default-VID-1.patch | 18 + ...-dsa-mv88e6xxx-disable-ATU-violation.patch | 12 + .../hack-5.10/720-net-phy-add-aqr-phys.patch | 142 + .../721-net-add-packet-mangeling.patch | 167 + ...hy-aquantia-enable-AQR112-and-AQR412.patch | 154 + ...aquantia-fix-system-side-protocol-mi.patch | 34 + ...y-aquantia-Add-AQR113-driver-support.patch | 43 + ...ntia-add-PHY_IDs-for-AQR112-variants.patch | 63 + ...-r8152-add-LED-configuration-from-OF.patch | 74 + ...et-add-RTL8152-binding-documentation.patch | 54 + .../hack-5.10/773-bgmac-add-srab-switch.patch | 98 + .../780-usb-net-MeigLink_modem_support.patch | 33 + .../800-GPIO-add-named-gpio-exports.patch | 162 + .../hack-5.10/800-ubnt-ledbar-driver.patch | 29 + .../hack-5.10/901-debloat_sock_diag.patch | 162 + .../generic/hack-5.10/902-debloat_proc.patch | 408 + .../hack-5.10/904-debloat_dma_buf.patch | 92 + .../hack-5.10/910-kobject_uevent.patch | 32 + .../911-kobject_add_broadcast_uevent.patch | 76 + .../hack-5.10/920-device_tree_cmdline.patch | 12 + target/linux/generic/image/Makefile | 10 + .../generic/image/initramfs-base-files.txt | 9 + .../linux/generic/image/lzma-loader/Makefile | 46 + .../image/lzma-loader/src/LzmaDecode.c | 590 + .../image/lzma-loader/src/LzmaDecode.h | 131 + .../generic/image/lzma-loader/src/Makefile | 68 + .../image/lzma-loader/src/decompress.c | 157 + .../image/lzma-loader/src/lzma-copy.lds.in | 20 + .../generic/image/lzma-loader/src/lzma.lds.in | 24 + .../generic/image/lzma-loader/src/print.c | 324 + .../generic/image/lzma-loader/src/print.h | 36 + .../generic/image/lzma-loader/src/printf.c | 35 + .../generic/image/lzma-loader/src/printf.h | 18 + .../generic/image/lzma-loader/src/start.S | 160 + .../generic/image/lzma-loader/src/uart16550.c | 86 + .../generic/image/lzma-loader/src/uart16550.h | 47 + target/linux/generic/image/relocate/Makefile | 75 + .../linux/generic/image/relocate/cacheops.h | 85 + .../linux/generic/image/relocate/cp0regdef.h | 39 + target/linux/generic/image/relocate/head.S | 159 + .../linux/generic/image/relocate/loader.lds | 16 + target/linux/generic/other-files/init | 14 + ...terrupt-provider-address-cells-check.patch | 28 + ...include-asm-rwonce.h-for-kernel-code.patch | 29 + ...-Use-stddefs.h-instead-of-compiler.h.patch | 11 + ...s-negative-stack-offsets-on-stack-tr.patch | 57 + ...e_mem_map-with-ARCH_PFN_OFFSET-calcu.patch | 82 + ...0-add-linux-spidev-compatible-si3210.patch | 18 + ...ame2-and-add-RENAME_WHITEOUT-support.patch | 78 + ...41-jffs2-add-RENAME_EXCHANGE-support.patch | 73 + .../142-jffs2-add-splice-ops.patch | 20 + ...ge_allow_receiption_on_disabled_port.patch | 45 + ...-rs5c372-support_alarms_up_to_1_week.patch | 94 + ...he_alarm_to_be_used_as_wakeup_source.patch | 70 + .../203-kallsyms_uncompressed.patch | 119 + .../205-backtrace_module_info.patch | 41 + ...e-filenames-from-deps_initramfs-list.patch | 30 + ...able_wilink_platform_without_drivers.patch | 20 + .../270-platform-mikrotik-build-bits.patch | 31 + .../300-mips_expose_boot_raw.patch | 40 + .../302-mips_no_branch_likely.patch | 22 + .../pending-5.10/305-mips_module_reloc.patch | 371 + .../307-mips_highmem_offset.patch | 19 + .../pending-5.10/308-mips32r2_tune.patch | 22 + ...CPU-option-reporting-to-proc-cpuinfo.patch | 140 + .../310-arm_module_unresolved_weak_sym.patch | 22 + ...t-command-line-parameters-from-users.patch | 281 + .../332-arc-add-OWRTDTB-section.patch | 84 + ...able-unaligned-access-in-kernel-mode.patch | 24 + ...ernel-XZ-compression-option-on-PPC_8.patch | 25 + .../400-mtd-mtdsplit-support.patch | 315 + ...support-for-minor-aligned-partitions.patch | 245 + ...ers-ofpart-fix-parsing-subpartitions.patch | 76 + ...t-add-of_match_table-with-DT-binding.patch | 22 + .../pending-5.10/420-mtd-redboot_space.patch | 41 + ...30-mtd-add-myloader-partition-parser.patch | 229 + ...check-for-bad-blocks-when-calculatin.patch | 68 + ...bcm47xxpart-detect-T_Meter-partition.patch | 37 + ...mtd-add-routerbootpart-parser-config.patch | 38 + ...mtd-cfi_cmdset_0002-no-erase_suspend.patch | 25 + ...et_0002-add-buffer-write-cmd-timeout.patch | 17 + ...25p80-mx-disable-software-protection.patch | 18 + ...ort-limiting-4K-sectors-support-base.patch | 71 + .../476-mtd-spi-nor-add-eon-en25q128.patch | 18 + .../479-mtd-spi-nor-add-xtx-xt25f128b.patch | 79 + ...r-add-support-for-Gigadevice-GD25D05.patch | 22 + .../483-mtd-spi-nor-add-gd25q512.patch | 12 + ...spinand-add-support-for-xtx-xt26g0xa.patch | 178 + .../484-mtd-spi-nor-add-esmt-f25l16pa.patch | 11 + .../485-mtd-spi-nor-add-xmc-xm25qh128c.patch | 11 + ...mtd-device-named-ubi-or-data-on-boot.patch | 97 + ...to-create-ubiblock-device-for-rootfs.patch | 69 + ...ting-ubi0-rootfs-in-init-do_mounts.c.patch | 53 + ...ROOT_DEV-to-ubiblock-rootfs-if-unset.patch | 34 + .../494-mtd-ubi-add-EOF-marker-support.patch | 60 + ...-mtd-core-add-get_mtd_device_by_node.patch | 75 + ...-add-bindings-for-mtd-concat-devices.patch | 52 + ...cat-add-dt-driver-for-concat-devices.patch | 216 + ...i-nor-locking-support-for-MX25L6405D.patch | 34 + ...i-nor-disable-16-bit-sr-for-macronix.patch | 30 + .../500-fs_cdrom_dependencies.patch | 40 + .../530-jffs2_make_lzma_available.patch | 5180 ++++++++ .../pending-5.10/532-jffs2_eofdetect.patch | 65 + .../600-netfilter_conntrack_flush.patch | 88 + ...etfilter_match_bypass_default_checks.patch | 110 + ...netfilter_match_bypass_default_table.patch | 106 + ...netfilter_match_reduce_memory_access.patch | 22 + ...-netfilter_optional_tcp_window_check.patch | 73 + ...del-do-not-defer-queue-length-update.patch | 86 + .../pending-5.10/630-packet_socket_type.patch | 138 + .../pending-5.10/655-increase_skb_pad.patch | 20 + ...Add-support-for-MAP-E-FMRs-mesh-mode.patch | 511 + ...ng-with-source-address-failed-policy.patch | 263 + ...nes-for-_POLICY_FAILED-until-all-cod.patch | 50 + ...T-skip-GRO-for-foreign-MAC-addresses.patch | 149 + ...et-add-mac-address-increment-support.patch | 89 + ...83-of_net-add-mac-address-to-of-tree.patch | 38 + ..._eth_soc-avoid-creating-duplicate-of.patch | 26 + ..._eth_soc-add-support-for-coherent-DM.patch | 327 + ...ek-mt7622-add-support-for-coherent-D.patch | 30 + ..._eth_soc-add-support-for-Wireless-Et.patch | 1679 +++ ..._eth_soc-implement-flow-offloading-t.patch | 269 + ...ek-mt7622-introduce-nodes-for-Wirele.patch | 62 + ..._eth_soc-add-ipv6-flow-offload-suppo.patch | 79 + ..._eth_soc-support-TC_SETUP_BLOCK-for-.patch | 29 + ..._eth_soc-allocate-struct-mtk_ppe-sep.patch | 159 + ..._eth_soc-rework-hardware-flow-table-.patch | 424 + ..._eth_soc-remove-bridge-flow-offload-.patch | 44 + ..._eth_soc-support-creating-mac-addres.patch | 553 + ...detach-callback-to-struct-phy_driver.patch | 38 + ...ble-fix-excessive-hw-offload-attempt.patch | 27 + ...ow_offload-skip-dst-neigh-lookup-for.patch | 64 + ..._fill_forward_path-with-pppoe-bridge.patch | 66 + ...ow_offload-fix-offload-with-pppoe-vl.patch | 24 + ...a-tag_mtk-add-padding-for-tx-packets.patch | 29 + ...d-knob-for-filtering-rx-tx-BPDU-pack.patch | 177 + ...net-phy-at803x-fix-feature-detection.patch | 66 + ...760-net-dsa-mv88e6xxx-fix-vlan-setup.patch | 27 + ...hdev-Refactor-br_switchdev_fdb_notif.patch | 77 + ...hdev-Include-local-flag-in-FDB-notif.patch | 42 + ...hdev-Send-FDB-notifications-for-host.patch | 96 + ...local-addresses-in-assisted-CPU-port.patch | 36 + ...bridge-addresses-in-assisted-CPU-por.patch | 30 + ...tic-FDB-entries-on-foreign-interface.patch | 56 + ...equest-assisted-learning-on-CPU-port.patch | 27 + ...-missing-linux-if_ether.h-for-ETH_AL.patch | 61 + ...ice-struct-copy-its-DMA-params-to-th.patch | 64 + ...pio-cascade-add-generic-GPIO-cascade.patch | 222 + .../810-pci_disable_common_quirks.patch | 62 + .../811-pci_disable_usb_common_quirks.patch | 115 + ...problem-with-platfom-data-in-w1-gpio.patch | 26 + .../pending-5.10/834-ledtrig-libata.patch | 149 + ...40-hwrng-bcm2835-set-quality-to-1000.patch | 26 + ..._wwan-add-ZTE-MF286D-modem-19d2-1485.patch | 59 + ...lace-custom-PCIE_CORE_INT_-macros-wi.patch | 40 + ...rite-IRQ-code-to-chained-IRQ-handler.patch | 125 + ...ck-return-value-of-generic_handle_do.patch | 31 + ...e-MSI-irq_chip-structures-static-dri.patch | 93 + ...e-msi_domain_info-structure-a-static.patch | 64 + ...-dev_fwnode-instead-of-of_node_to_fw.patch | 40 + ...actor-unmasking-summary-MSI-interrup.patch | 44 + ...d-support-for-masking-MSI-interrupts.patch | 117 + ...PCI-aardvark-Fix-setting-MSI-address.patch | 91 + ...12-PCI-aardvark-Enable-MSI-X-support.patch | 38 + ...-support-for-ERR-interrupt-on-emulat.patch | 100 + ...imize-writing-PCI_EXP_RTCTL_PMEIE-an.patch | 52 + ...dvark-Add-support-for-PME-interrupts.patch | 47 + ...-support-for-PME-requester-on-emulat.patch | 173 + ...-separate-INTA-interrupt-for-emulate.patch | 161 + ...ove-irq_mask_ack-callback-for-INTx-i.patch | 29 + ...aardvark-Don-t-mask-irq-when-mapping.patch | 27 + ...p-__maybe_unused-from-advk_pcie_disa.patch | 28 + ...ate-comment-about-link-going-down-af.patch | 35 + ...e-main-irq_chip-structure-a-static-d.patch | 102 + ...mvebu-a3700-comphy-Remove-port-from-.patch | 217 + ...mvebu-a3700-comphy-Add-native-kernel.patch | 1564 +++ ...l-armada-37xx-Add-xtal-clock-to-comp.patch | 31 + ...mvebu-Make-SATA-PHY-optional-for-Arm.patch | 61 + ...xhci-mvebu-make-USB-3.0-PHY-optional.patch | 163 + ...ark-Fix-initialization-with-old-Marv.patch | 36 + ...-Fix-crash-by-zero-initializing-data.patch | 30 + .../pending-5.10/920-mangle_bootargs.patch | 71 + target/linux/mvebu/Makefile | 18 + .../base-files/lib/preinit/79_move_config | 25 + target/linux/mvebu/config-5.10 | 426 + .../cortexa9/base-files/etc/board.d/01_leds | 61 + .../base-files/etc/board.d/02_network | 97 + .../base-files/etc/board.d/05_compat-version | 25 + .../ieee80211/00-wifi-config-migrate | 41 + .../cortexa9/base-files/etc/init.d/bootcount | 16 + .../base-files/etc/uci-defaults/03_wireless | 60 + .../base-files/etc/uci-defaults/04_mambafan | 22 + .../etc/uci-defaults/05_fix-compat-version | 11 + .../uci-defaults/35_turris-omnia_uboot-env | 44 + .../base-files/lib/preinit/81_linksys_syscfg | 42 + .../base-files/lib/upgrade/linksys.sh | 81 + .../base-files/lib/upgrade/platform.sh | 78 + .../cortexa9/base-files/sbin/fan_ctrl.sh | 28 + target/linux/mvebu/cortexa9/config-5.10 | 4 + target/linux/mvebu/cortexa9/target.mk | 11 + .../boot/dts/armada-370-buffalo-ls421de.dts | 448 + .../arch/arm/boot/dts/armada-370-c200-v2.dts | 426 + .../arm/boot/dts/armada-385-linksys-venom.dts | 213 + .../arch/arm/boot/dts/armada-385-nas1dual.dts | 318 + .../marvell/armada-3720-espressobin-ultra.dts | 241 + .../dts/marvell/armada-3720-gl-mv1000.dts | 230 + .../boot/dts/marvell/armada-7040-mochabin.dts | 448 + .../boot/dts/marvell/cn9131-puzzle-m901.dts | 403 + .../boot/dts/marvell/cn9132-puzzle-m902.dts | 564 + target/linux/mvebu/image/Makefile | 195 + target/linux/mvebu/image/clearfog.bootscript | 23 + target/linux/mvebu/image/cortexa9.mk | 306 + .../linux/mvebu/image/espressobin.bootscript | 34 + .../linux/mvebu/image/gen_mvebu_sdcard_img.sh | 70 + .../mvebu/image/generic-arm64.bootscript | 24 + .../linux/mvebu/image/turris-omnia.bootscript | 32 + target/linux/mvebu/image/udpu.bootscript | 38 + target/linux/mvebu/modules.mk | 33 + ...s-mcbin-singleshot-add-heartbeat-LED.patch | 65 + ...is-omnia-enable-HW-buffer-management.patch | 74 + ...rris-omnia-add-comphy-handle-to-eth2.patch | 37 + ...rris-omnia-describe-switch-interrupt.patch | 61 + ...11-ARM-dts-turris-omnia-add-SFP-node.patch | 90 + ...turris-omnia-add-LED-controller-node.patch | 160 + ...te-ethernet-phy-node-and-handle-name.patch | 52 + ...omnia-fix-hardware-buffer-management.patch | 33 + ...mnia-configure-LED-0-pin-function-to.patch | 38 + ...ris-omnia-enable-LED-controller-node.patch | 48 + ...a-support-HW-controlled-mode-via-pri.patch | 118 + ...a-initialize-multi-intensity-to-full.patch | 33 + ...a-change-max-brightness-from-255-to-.patch | 31 + ...Mangle-bootloader-s-kernel-arguments.patch | 208 + ...-mvebu-armada-38x-enable-libata-leds.patch | 10 + .../patches-5.10/302-add_powertables.patch | 770 ++ ...3-linksys_hardcode_nand_ecc_settings.patch | 17 + .../patches-5.10/304-revert_i2c_delay.patch | 15 + .../305-armada-385-rd-mtd-partitions.patch | 19 + .../306-ARM-mvebu-385-ap-Add-partitions.patch | 35 + ...-armada-xp-linksys-mamba-broken-idle.patch | 10 + .../308-armada-xp-linksys-mamba-wan.patch | 11 + .../patches-5.10/309-linksys-status-led.patch | 50 + .../310-linksys-use-eth0-as-cpu-port.patch | 25 + .../311-adjust-compatible-for-linksys.patch | 68 + ...da388-clearfog-emmc-on-clearfog-base.patch | 87 + .../313-helios4-dts-status-led-alias.patch | 28 + ...witch-PHY-operation-mode-to-2500base.patch | 34 + ...rmada-xp-linksys-mamba-resize-kernel.patch | 37 + ...316-armada-370-dts-fix-crypto-engine.patch | 29 + .../patches-5.10/400-find_active_root.patch | 60 + .../700-mvneta-tx-queue-workaround.patch | 38 + ...14-net-ethernet-marvell-mvnetaMQPrio.patch | 109 + ...ethernet-marvell-mvnetaMQPrioOffload.patch | 66 + ...xt-ethernet-marvell-mvnetaMQPrioFlag.patch | 30 + ...t-ethernet-marvell-mvnetaMQPrioQueue.patch | 97 + ...hernet-marvell-mvnetaMQPrioTCOffload.patch | 182 + ...dicate-failure-to-enter-deeper-sleep.patch | 40 + ...-pci-mvebu-time-out-reset-on-link-up.patch | 60 + ...IEI-vendor-prefix-and-IEI-WT61P803-P.patch | 218 + ...a-driver-for-IEI-WT61P803-PUZZLE-MCU.patch | 1034 ++ ...d-the-IEI-WT61P803-PUZZLE-HWMON-driv.patch | 469 + ...d-the-IEI-WT61P803-PUZZLE-LED-driver.patch | 207 + ...I-Add-iei-wt61p803-puzzle-driver-sys.patch | 82 + ...mon-Add-iei-wt61p803-puzzle-hwmon-dr.patch | 74 + ...an-entry-for-the-IEI-WT61P803-PUZZLE.patch | 41 + ...rs-leds-wt61p803-puzzle-improvements.patch | 271 + target/linux/rockchip/Makefile | 22 + .../armv8/base-files/etc/board.d/01_leds | 23 + .../armv8/base-files/etc/board.d/02_network | 79 + .../etc/hotplug.d/net/40-net-smp-affinity | 41 + .../base-files/lib/preinit/79_move_config | 16 + .../armv8/base-files/lib/upgrade/platform.sh | 86 + target/linux/rockchip/armv8/config-5.10 | 656 + target/linux/rockchip/armv8/target.mk | 8 + target/linux/rockchip/image/Makefile | 58 + target/linux/rockchip/image/armv8.mk | 43 + target/linux/rockchip/image/mmc.bootscript | 8 + .../rockchip/image/nanopi-r2s.bootscript | 8 + .../rockchip/image/nanopi-r4s.bootscript | 8 + ...Add-support-for-FriendlyARM-NanoPi-R.patch | 177 + ...kchip-add-EEPROM-node-for-NanoPi-R4S.patch | 31 + ...-rockchip-use-system-LED-for-OpenWrt.patch | 31 + ...usb3-controller-node-for-RK3328-SoCs.patch | 70 + ...ckchip-enable-LAN-port-on-NanoPi-R2S.patch | 60 + ...dd-OF-node-for-USB-eth-on-NanoPi-R2S.patch | 28 + ...-host-by-default-on-rk3399-rock-pi-4.patch | 32 + .../105-nanopi-r4s-sd-signalling.patch | 26 + .../patches-5.10/106-r4s-openwrt-leds.patch | 16 + target/linux/sunxi/Makefile | 30 + .../sunxi/base-files/etc/board.d/01_leds | 19 + .../sunxi/base-files/etc/board.d/02_network | 56 + .../base-files/etc/board.d/05_compat-version | 15 + target/linux/sunxi/base-files/etc/inittab | 5 + .../lib/firmware/brcm/brcmfmac4329-sdio.txt | 57 + .../lib/firmware/brcm/brcmfmac43362-sdio.txt | 51 + .../lib/firmware/brcm/brcmfmac43430-sdio.txt | 53 + .../firmware/brcm/brcmfmac43430a0-sdio.txt | 1 + .../base-files/lib/preinit/79_move_config | 19 + .../sunxi/base-files/lib/upgrade/platform.sh | 88 + target/linux/sunxi/config-5.10 | 512 + target/linux/sunxi/cortexa53/config-5.10 | 95 + target/linux/sunxi/cortexa53/target.mk | 10 + target/linux/sunxi/cortexa7/config-5.10 | 26 + target/linux/sunxi/cortexa7/target.mk | 9 + target/linux/sunxi/cortexa8/config-5.10 | 12 + target/linux/sunxi/cortexa8/target.mk | 9 + target/linux/sunxi/image/Config.in | 5 + target/linux/sunxi/image/Makefile | 44 + target/linux/sunxi/image/cortexa53.mk | 116 + target/linux/sunxi/image/cortexa7.mk | 233 + target/linux/sunxi/image/cortexa8.mk | 55 + .../linux/sunxi/image/gen_sunxi_sdcard_img.sh | 31 + target/linux/sunxi/modules.mk | 97 + .../062-add-sun8i-h3-zeropi-support.patch | 79 + ...0-sunxi-h3-add-support-for-nanopi-r1.patch | 186 + ...nxi-h5-add-support-for-nanopi-r1s-h5.patch | 230 + ...OF-node-for-USB-eth-on-NanoPi-R1S-H5.patch | 30 + ...angepi_pc2_usb_otg_to_host_key_power.patch | 20 + ...a64-sopine-Add-Sopine-flash-partitio.patch | 46 + ...ner-a64-olinuxino-add-status-LED-ali.patch | 32 + ...lwinner-nanopi-r1s-h5-add-status-LED.patch | 35 + ...m64-dts-orangepi-one-plus-enable-PWM.patch | 10 + ...m64-dts-enable-wifi-on-pine64-boards.patch | 72 + target/linux/sunxi/profiles/00-default.mk | 23 + target/linux/uml/Makefile | 25 + target/linux/uml/README.md | 51 + target/linux/uml/base-files/etc/inittab | 4 + target/linux/uml/config-5.10 | 135 + .../uml/files/arch/um/include/uapi/asm/Kbuild | 0 target/linux/uml/image/Makefile | 33 + .../uml/patches-5.10/101-mconsole-exec.patch | 213 + .../patches-5.10/102-pseudo-random-mac.patch | 147 + .../64/base-files/lib/preinit/45_mount_xenfs | 8 + target/linux/x86/64/config-5.10 | 493 + target/linux/x86/64/target.mk | 6 + target/linux/x86/Makefile | 28 + .../linux/x86/base-files/etc/board.d/01_leds | 27 + .../x86/base-files/etc/board.d/02_network | 51 + target/linux/x86/base-files/etc/diag.sh | 84 + target/linux/x86/base-files/etc/inittab | 5 + .../x86/base-files/lib/preinit/01_sysinfo | 65 + .../base-files/lib/preinit/02_load_x86_ucode | 9 + .../lib/preinit/15_essential_fs_x86 | 7 + .../x86/base-files/lib/preinit/20_check_iso | 5 + .../x86/base-files/lib/preinit/79_move_config | 19 + .../lib/preinit/81_upgrade_bootloader | 18 + .../x86/base-files/lib/upgrade/platform.sh | 131 + target/linux/x86/config-5.10 | 433 + .../base-files/lib/preinit/45_mount_xenfs | 8 + target/linux/x86/generic/config-5.10 | 450 + target/linux/x86/generic/target.mk | 10 + target/linux/x86/geode/config-5.10 | 139 + target/linux/x86/geode/target.mk | 6 + target/linux/x86/image/64.mk | 10 + target/linux/x86/image/Makefile | 157 + target/linux/x86/image/generic.mk | 9 + target/linux/x86/image/geode.mk | 17 + target/linux/x86/image/grub-efi.cfg | 13 + target/linux/x86/image/grub-iso.cfg | 15 + target/linux/x86/image/grub-pc.cfg | 13 + target/linux/x86/image/legacy.mk | 9 + target/linux/x86/legacy/config-5.10 | 220 + target/linux/x86/legacy/target.mk | 7 + target/linux/x86/modules.mk | 104 + ...12-pcengines-apu2-detect-apuv4-board.patch | 50 + .../100-fix_cs5535_clockevt.patch | 13 + ..._ich-Enable-GPIO-driver-for-DH89xxCC.patch | 28 + ...x86-add-meraki-mx100-platform-driver.patch | 291 + ..._atom-Add-Lex-3I380NX-industrial-PC-.patch | 52 + .../patches-5.10/300-pcengines_apu1_led.patch | 41 + target/llvm-bpf/Makefile | 30 + target/sdk/Config.in | 17 + target/sdk/Makefile | 188 + target/sdk/convert-config.pl | 65 + target/sdk/files/Config.in | 135 + target/sdk/files/Makefile | 60 + target/sdk/files/README.SDK | 11 + target/sdk/files/include/prepare.mk | 17 + target/toolchain/Config.in | 9 + target/toolchain/Makefile | 75 + target/toolchain/files/README.TOOLCHAIN | 2 + target/toolchain/files/wrapper.sh | 87 + toolchain/Config.in | 362 + toolchain/Makefile | 96 + toolchain/binutils/Config.in | 23 + toolchain/binutils/Config.version | 12 + toolchain/binutils/Makefile | 117 + .../2.37/300-001_ld_makefile_patch.patch | 22 + .../400-mips_no_dynamic_linking_sym.patch | 18 + ...e-default-emulation-for-mips64-linux.patch | 38 + .../2.37/600-Close_the_file_descriptor.patch | 184 + .../2.38/300-001_ld_makefile_patch.patch | 22 + .../400-mips_no_dynamic_linking_sym.patch | 18 + ...e-default-emulation-for-mips64-linux.patch | 38 + toolchain/build_version | 1 + toolchain/fortify-headers/Makefile | 28 + toolchain/gcc/Config.in | 66 + toolchain/gcc/Config.version | 13 + toolchain/gcc/common.mk | 217 + toolchain/gcc/exclude-testsuite | 9 + toolchain/gcc/files/alternate-arch-cc.in | 3 + toolchain/gcc/final/Makefile | 90 + toolchain/gcc/initial/Makefile | 36 + toolchain/gcc/minimal/Makefile | 29 + .../patches/10.3.0/002-case_insensitive.patch | 24 + .../patches/10.3.0/010-documentation.patch | 35 + .../10.3.0/110-Fix-MIPS-PR-84790.patch | 20 + .../gcc/patches/10.3.0/230-musl_libssp.patch | 13 + .../300-mips_Os_cpu_rtx_cost_model.patch | 21 + .../10.3.0/810-arm-softfloat-libgcc.patch | 33 + .../gcc/patches/10.3.0/820-libgcc_pic.patch | 44 + .../840-armv4_pass_fix-v4bx_to_ld.patch | 28 + .../10.3.0/850-use_shared_libgcc.patch | 54 + .../patches/10.3.0/851-libgcc_no_compat.patch | 22 + .../patches/10.3.0/870-ppc_no_crtsavres.patch | 11 + .../patches/10.3.0/881-no_tm_section.patch | 11 + .../patches/10.3.0/900-bad-mips16-crt.patch | 9 + .../gcc/patches/10.3.0/910-mbsd_multi.patch | 146 + .../10.3.0/920-specs_nonfatal_getenv.patch | 22 + .../10.3.0/930-fix-mips-noexecstack.patch | 111 + ...ibffi-fix-MIPS-softfloat-build-issue.patch | 168 + ...mpilation-when-making-cross-compiler.patch | 67 + ...ld_using_range-range_of_address-PR10.patch | 114 + .../patches/11.2.0/002-case_insensitive.patch | 24 + .../patches/11.2.0/010-documentation.patch | 35 + ...-define-TARGET_LIBC_GNUSTACK-on-musl.patch | 46 + .../11.2.0/110-Fix-MIPS-PR-84790.patch | 20 + .../gcc/patches/11.2.0/230-musl_libssp.patch | 13 + .../300-mips_Os_cpu_rtx_cost_model.patch | 21 + .../11.2.0/810-arm-softfloat-libgcc.patch | 33 + .../gcc/patches/11.2.0/820-libgcc_pic.patch | 44 + .../840-armv4_pass_fix-v4bx_to_ld.patch | 28 + .../11.2.0/850-use_shared_libgcc.patch | 54 + .../patches/11.2.0/851-libgcc_no_compat.patch | 22 + .../patches/11.2.0/870-ppc_no_crtsavres.patch | 11 + .../patches/11.2.0/881-no_tm_section.patch | 11 + .../patches/11.2.0/900-bad-mips16-crt.patch | 9 + .../gcc/patches/11.2.0/910-mbsd_multi.patch | 146 + .../11.2.0/920-specs_nonfatal_getenv.patch | 22 + ...ibffi-fix-MIPS-softfloat-build-issue.patch | 168 + ...mpilation-when-making-cross-compiler.patch | 67 + .../11.2.0/970-macos_arm64-building-fix.patch | 45 + .../patches/8.4.0/002-case_insensitive.patch | 24 + .../gcc/patches/8.4.0/010-documentation.patch | 35 + .../patches/8.4.0/110-Fix-MIPS-PR-84790.patch | 20 + .../gcc/patches/8.4.0/230-musl_libssp.patch | 13 + .../300-mips_Os_cpu_rtx_cost_model.patch | 21 + .../8.4.0/800-arm_v5te_no_ldrd_strd.patch | 11 + .../8.4.0/810-arm-softfloat-libgcc.patch | 33 + .../gcc/patches/8.4.0/820-libgcc_pic.patch | 44 + .../8.4.0/840-armv4_pass_fix-v4bx_to_ld.patch | 28 + .../patches/8.4.0/850-use_shared_libgcc.patch | 54 + .../patches/8.4.0/851-libgcc_no_compat.patch | 22 + .../patches/8.4.0/870-ppc_no_crtsavres.patch | 11 + .../gcc/patches/8.4.0/881-no_tm_section.patch | 11 + .../patches/8.4.0/900-bad-mips16-crt.patch | 9 + .../gcc/patches/8.4.0/910-mbsd_multi.patch | 146 + .../8.4.0/920-specs_nonfatal_getenv.patch | 22 + .../8.4.0/930-fix-mips-noexecstack.patch | 111 + ...ibffi-fix-MIPS-softfloat-build-issue.patch | 168 + ...mpilation-when-making-cross-compiler.patch | 67 + toolchain/gdb/Makefile | 73 + .../120-fix-compile-flag-mismatch.patch | 11 + toolchain/glibc/Makefile | 32 + toolchain/glibc/common.mk | 102 + toolchain/glibc/headers/Makefile | 28 + toolchain/glibc/include/libintl.h | 6 + ...use-of-DES-encryption-functions-in-n.patch | 677 + .../glibc/patches/100-fix_cross_rpcgen.patch | 36 + .../patches/200-add-dl-search-paths.patch | 14 + toolchain/info.mk | 6 + toolchain/kernel-headers/Makefile | 112 + toolchain/musl/Config.in | 13 + toolchain/musl/Makefile | 31 + toolchain/musl/common.mk | 55 + toolchain/musl/include/sys/queue.h | 574 + .../patches/110-read_timezone_from_fs.patch | 28 + .../patches/200-add_libssp_nonshared.patch | 53 + toolchain/musl/patches/300-relative.patch | 11 + ...00-nftw-support-common-gnu-extension.patch | 95 + .../musl/patches/900-iconv_size_hack.patch | 100 + .../musl/patches/901-crypt_size_hack.patch | 75 + toolchain/nasm/Makefile | 53 + toolchain/wrapper/Makefile | 62 + tools/Makefile | 161 + tools/autoconf-archive/Makefile | 28 + tools/autoconf/Makefile | 37 + tools/autoconf/patches/000-relocatable.patch | 229 + tools/autoconf/patches/001-no_emacs_lib.patch | 22 + .../patches/002-musl_host_fixup.patch | 24 + tools/automake/Makefile | 51 + tools/automake/files/aclocal | 2 + tools/automake/patches/000-relocatable.patch | 96 + ...clocal-skip-not-existing-directories.patch | 15 + tools/bash/Makefile | 21 + tools/bc/Makefile | 23 + tools/bc/patches/001-no_doc.patch | 23 + tools/bison/Makefile | 32 + tools/bison/scripts/yacc | 2 + tools/cbootimage-configs/Makefile | 32 + tools/cbootimage/Makefile | 31 + tools/ccache/Makefile | 41 + tools/ccache/files/ccache_cc | 2 + tools/ccache/files/ccache_cxx | 2 + tools/ccache/patches/100-honour-copts.patch | 10 + tools/cmake/Makefile | 52 + tools/cmake/patches/100-no-testing.patch | 33 + .../120-curl-fix-libressl-linking.patch | 37 + .../130-bootstrap_parallel_make_flag.patch | 14 + tools/coreutils/Makefile | 37 + tools/cpio/Makefile | 14 + .../patches/001-duplicate-program-name.patch | 18 + tools/cpio/patches/010-clang.patch | 11 + tools/dosfstools/Makefile | 27 + tools/e2fsprogs/Makefile | 54 + .../001-exit_0_on_corrected_errors.patch | 11 + .../patches/002-dont-build-e4defrag.patch | 11 + tools/e2fsprogs/patches/003-no-crond.patch | 11 + ...-sanity-check-to-extent-manipulation.patch | 50 + tools/elftosb/Makefile | 26 + tools/elftosb/patches/001-libm.patch | 11 + .../elftosb/patches/002-fix-header-path.patch | 19 + tools/elftosb/patches/003-use-ldflags.patch | 26 + tools/expat/Makefile | 33 + tools/fakeroot/Makefile | 28 + tools/fakeroot/patches/000-relocatable.patch | 29 + tools/fakeroot/patches/200-disable-doc.patch | 10 + .../patches/400-alpine-libc.musl-fix.patch | 34 + tools/fakeroot/patches/600-macOS.patch | 56 + tools/findutils/Makefile | 31 + tools/findutils/patches/010-endpwent.patch | 20 + tools/firmware-utils/Makefile | 21 + tools/flex/Makefile | 34 + .../flex/patches/100-disable-tests-docs.patch | 13 + ...SE_SYSTEM_EXTENSIONS-in-configure.ac.patch | 27 + tools/flock/Makefile | 27 + tools/flock/src/flock.c | 342 + tools/genext2fs/Makefile | 51 + tools/genext2fs/patches/100-c99_scanf.patch | 21 + tools/genext2fs/patches/200-autoconf.patch | 13 + .../patches/300-blocksize-creator.patch | 558 + .../genext2fs/patches/400-byteswap_fix.patch | 44 + tools/gengetopt/Makefile | 30 + .../gengetopt/patches/100-no-tests-docs.patch | 33 + tools/gmp/Makefile | 34 + tools/include/asm/types.h | 24 + tools/include/byteswap.h | 5 + tools/include/elf.h | 3007 +++++ tools/include/endian.h | 40 + tools/include/sys/sysmacros.h | 56 + tools/isl/Makefile | 27 + tools/kernel2minor/Makefile | 29 + tools/libressl/Makefile | 34 + tools/libtool/Makefile | 42 + tools/libtool/files/libtool-v1.5.patch | 118 + tools/libtool/files/libtool-v2.2.patch | 123 + tools/libtool/files/libtool-v2.4.patch | 160 + tools/libtool/patches/000-relocatable.patch | 141 + tools/libtool/patches/100-libdir-fixes.patch | 94 + ...10-dont-use-target-dir-for-relinking.patch | 20 + .../120-strip-unsafe-dirs-for-relinking.patch | 24 + tools/libtool/patches/150-trailingslash.patch | 49 + .../libtool/patches/160-passthrough-ssp.patch | 12 + .../patches/200-openwrt-branding.patch | 112 + tools/llvm-bpf/Makefile | 56 + tools/lzma-old/Makefile | 38 + tools/lzma-old/patches/100-lzma_zlib.patch | 404 + tools/lzma-old/patches/110-ranlib.patch | 10 + tools/lzma-old/patches/120-add-cflags.patch | 11 + tools/lzma/Makefile | 36 + tools/lzma/patches/001-large_files.patch | 13 + tools/lzma/patches/002-lzmp.patch | 1059 ++ tools/lzma/patches/003-compile_fixes.patch | 26 + tools/lzma/patches/100-static_library.patch | 70 + .../101-move-copyright-to-usage-info.patch | 20 + tools/m4/Makefile | 29 + tools/make-ext4fs/Makefile | 28 + tools/meson/Makefile | 35 + tools/meson/files/librecmc-cross.txt.in | 25 + tools/meson/files/librecmc-native.txt.in | 15 + tools/meson/patches/010-wsl2.patch | 21 + tools/missing-macros/Makefile | 28 + tools/missing-macros/src/README | 100 + tools/missing-macros/src/bin/help2man | 29 + tools/missing-macros/src/bin/makeinfo | 112 + tools/missing-macros/src/m4/as-ac-expand.m4 | 43 + .../missing-macros/src/m4/as-compiler-flag.m4 | 62 + .../src/m4/as-unaligned-access.m4 | 41 + tools/missing-macros/src/m4/as-version.m4 | 71 + tools/missing-macros/src/m4/dnet.m4 | 322 + .../src/m4/fake-gtk-doc-check.m4 | 13 + tools/missing-macros/src/m4/fake-intltool.m4 | 16 + tools/missing-macros/src/m4/glibc2.m4 | 30 + tools/missing-macros/src/m4/glibc21.m4 | 30 + tools/missing-macros/src/m4/intdiv0.m4 | 84 + tools/missing-macros/src/m4/intmax.m4 | 33 + tools/missing-macros/src/m4/inttypes-pri.m4 | 36 + tools/missing-macros/src/m4/inttypes_h.m4 | 26 + tools/missing-macros/src/m4/lib-ld.m4 | 110 + tools/missing-macros/src/m4/lib-link.m4 | 774 ++ tools/missing-macros/src/m4/lib-prefix.m4 | 224 + tools/missing-macros/src/m4/mfx_acc.m4 | 163 + tools/missing-macros/src/m4/mfx_cppflags.m4 | 41 + tools/missing-macros/src/m4/mfx_limits.m4 | 152 + tools/missing-macros/src/m4/progtest.m4 | 92 + tools/missing-macros/src/m4/stdint_h.m4 | 26 + tools/missing-macros/src/m4/uintmax_t.m4 | 30 + tools/missing-macros/src/m4/va_copy.m4 | 111 + tools/missing-macros/src/m4/wint_t.m4 | 28 + tools/mkimage/Makefile | 43 + .../030-allow-to-use-different-magic.patch | 71 + ...d-compatibility-with-non-Linux-hosts.patch | 65 + .../patches/090-macos-arm64-builing-fix.patch | 21 + ...5-tools-disable-TOOLS_FIT_FULL_CHECK.patch | 25 + ...0-increase-tmpfile-name-length-limit.patch | 11 + tools/mklibs/Makefile | 35 + tools/mklibs/include/elf.h | 2559 ++++ tools/mklibs/patches/001-compile.patch | 8 + .../patches/002-disable_symbol_checks.patch | 20 + tools/mklibs/patches/003-no_copy.patch | 50 + .../mklibs/patches/004-libpthread_link.patch | 28 + tools/mklibs/patches/005-duplicate_syms.patch | 35 + tools/mklibs/patches/007-gc_sections.patch | 11 + .../patches/008-uclibc_libgcc_link.patch | 37 + .../patches/010-remove_STT_GNU_IFUNC.patch | 20 + .../mklibs/patches/011-remove_multiarch.patch | 10 + tools/mklibs/patches/100-apply-2to3.patch | 154 + tools/mpc/Makefile | 28 + tools/mpfr/Makefile | 28 + tools/mpfr/patches/001-only_src.patch | 22 + tools/mpfr/patches/100-freebsd-compat.patch | 10 + tools/mtd-utils/Makefile | 56 + tools/mtd-utils/include/fls.h | 2 + tools/mtd-utils/include/linux/types.h | 18 + tools/mtd-utils/patches/100-sscanf_fix.patch | 11 + tools/mtd-utils/patches/110-portability.patch | 175 + tools/mtd-utils/patches/130-lzma_jffs2.patch | 5033 ++++++++ .../patches/134-freebsd_loff_t.patch | 14 + ...add-ubigen_write_terminator-function.patch | 89 + .../201-ubinize-add-terminator-support.patch | 68 + .../320-mkfs.jffs2-SOURCE_DATE_EPOCH.patch | 60 + tools/mtools/Makefile | 39 + tools/ninja/Makefile | 39 + .../patches/100-make_jobserver_support.patch | 2279 ++++ tools/padjffs2/Makefile | 36 + tools/padjffs2/src/Makefile | 15 + tools/padjffs2/src/padjffs2.c | 210 + tools/patch-image/Makefile | 29 + tools/patch-image/src/patch-cmdline.c | 85 + tools/patch-image/src/patch-dtb.c | 103 + tools/patch/Makefile | 25 + tools/patch/patches/010-CVE-2018-6951.patch | 24 + .../patch/patches/020-CVE-2018-1000156.patch | 142 + tools/patch/patches/030-CVE-2018-6952.patch | 25 + ...rror-handling-with-git-style-patches.patch | 53 + tools/patch/patches/050-CVE-2019-13636.patch | 108 + tools/patch/patches/060-CVE-2019-13638.patch | 38 + ...l-hard-on-EACCES-when-copying-xattrs.patch | 33 + tools/patchelf/Makefile | 27 + tools/pkgconf/Makefile | 38 + tools/pkgconf/files/pkg-config | 9 + tools/quilt/Makefile | 36 + tools/quilt/patches/000-relocatable.patch | 170 + tools/quilt/patches/001-fix_compile.patch | 18 + tools/sdimage/Makefile | 34 + .../sdimage/patches/100-deactivate-ufb.patch | 13 + tools/sed/Makefile | 48 + tools/sparse/Makefile | 24 + tools/squashfs/Makefile | 41 + tools/squashfs/patches/100-lzma.patch | 22 + .../patches/110-no_nonstatic_inline.patch | 11 + .../120-add-fixed-timestamp-support.patch | 79 + .../patches/130-include_sysmacros.patch | 20 + tools/squashfs/patches/140-gcc-10-fix.patch | 25 + tools/squashfskit4/Makefile | 41 + .../patches/0001-fix-version.sh.patch | 21 + ...002-fix-build-failure-against-gcc-10.patch | 41 + .../patches/0010-portability.patch | 37 + .../patches/0020-big-endian.patch | 14 + tools/sstrip/Makefile | 29 + .../001-disable-elftoc-compilation.patch | 28 + tools/tar/Makefile | 31 + .../patches/100-symlink-force-root-name.patch | 27 + .../110-symlink-force-permissions.patch | 10 + tools/xz/Makefile | 36 + tools/zip/Makefile | 36 + ...e-borrow-the-LFS-test-from-autotools.patch | 89 + .../004-do-not-set-unwanted-cflags.patch | 15 + ...k-markings-to-avoid-executable-stack.patch | 21 + .../007-fclose-in-file-not-fclose-x.patch | 16 + .../patches/008-hardening-build-fix-1.patch | 25 + .../patches/009-hardening-build-fix-2.patch | 16 + tools/zip/patches/010-remove-build-date.patch | 15 + .../zip/patches/011-reproducible-mtime.patch | 41 + ...make-encrypted-archives-reproducible.patch | 75 + tools/zlib/Makefile | 41 + ...x-compressor-crash-on-certain-inputs.patch | 343 + .../900-overridable-pc-exec-prefix.patch | 14 + tools/zstd/Makefile | 35 + 4573 files changed, 1128070 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 BSDmakefile create mode 100644 COPYING create mode 100644 Config.in create mode 100644 LICENSES/BSD-2-Clause create mode 100644 LICENSES/BSD-3-Clause create mode 100644 LICENSES/GPL-1.0 create mode 100644 LICENSES/GPL-2.0 create mode 100644 LICENSES/ISC create mode 100644 LICENSES/Linux-syscall-note create mode 100644 LICENSES/MIT create mode 100644 Makefile create mode 100644 config/Config-build.in create mode 100644 config/Config-devel.in create mode 100644 config/Config-images.in create mode 100644 config/Config-kernel.in create mode 100755 config/check-uname.sh create mode 100644 feeds.conf.default create mode 100644 include/autotools.mk create mode 100644 include/bpf.mk create mode 100644 include/cmake.mk create mode 100644 include/debug.mk create mode 100644 include/depends.mk create mode 100644 include/device_table.txt create mode 100644 include/download.mk create mode 100644 include/feeds.mk create mode 100644 include/hardened-ld-pie.specs create mode 100644 include/hardening.mk create mode 100644 include/host-build.mk create mode 100644 include/image-commands.mk create mode 100644 include/image.mk create mode 100644 include/kernel-5.10 create mode 100644 include/kernel-build.mk create mode 100644 include/kernel-defaults.mk create mode 100644 include/kernel-version.mk create mode 100644 include/kernel.mk create mode 100644 include/meson.mk create mode 100644 include/netfilter.mk create mode 100644 include/nls.mk create mode 100644 include/package-bin.mk create mode 100644 include/package-defaults.mk create mode 100644 include/package-dumpinfo.mk create mode 100644 include/package-ipkg.mk create mode 100644 include/package-seccomp.mk create mode 100644 include/package.mk create mode 100644 include/prereq-build.mk create mode 100644 include/prereq.mk create mode 100644 include/quilt.mk create mode 100644 include/rootfs.mk create mode 100644 include/scan.awk create mode 100644 include/scan.mk create mode 100644 include/shell.sh create mode 100644 include/site/aarch64 create mode 100644 include/site/aarch64_be create mode 100644 include/site/arc create mode 100644 include/site/arm create mode 100644 include/site/armeb create mode 100644 include/site/darwin create mode 100644 include/site/i386 create mode 100644 include/site/i486 create mode 100644 include/site/i686 create mode 100644 include/site/linux create mode 100644 include/site/m68k create mode 100644 include/site/mips create mode 100644 include/site/mips64 create mode 100644 include/site/mips64el create mode 100644 include/site/mipsel create mode 100644 include/site/powerpc create mode 100644 include/site/powerpc64 create mode 100644 include/site/sparc create mode 100644 include/site/x86_64 create mode 100644 include/subdir.mk create mode 100644 include/target.mk create mode 100644 include/toolchain-build.mk create mode 100644 include/toplevel.mk create mode 100644 include/trusted-firmware-a.mk create mode 100644 include/u-boot.mk create mode 100644 include/uclibc++.mk create mode 100644 include/unpack.mk create mode 100644 include/verbose.mk create mode 100644 include/version.mk create mode 100644 package/Makefile create mode 100644 package/base-files/Makefile create mode 100755 package/base-files/files/bin/board_detect create mode 100755 package/base-files/files/bin/config_generate create mode 100755 package/base-files/files/bin/ipcalc.sh create mode 100644 package/base-files/files/etc/banner create mode 100644 package/base-files/files/etc/banner.failsafe create mode 100644 package/base-files/files/etc/board.d/99-default_network create mode 100644 package/base-files/files/etc/device_info create mode 100644 package/base-files/files/etc/diag.sh create mode 100644 package/base-files/files/etc/ethers create mode 100644 package/base-files/files/etc/fstab create mode 100644 package/base-files/files/etc/group create mode 100644 package/base-files/files/etc/hosts create mode 100644 package/base-files/files/etc/hotplug.d/net/00-sysctl create mode 100755 package/base-files/files/etc/init.d/boot create mode 100755 package/base-files/files/etc/init.d/done create mode 100755 package/base-files/files/etc/init.d/gpio_switch create mode 100755 package/base-files/files/etc/init.d/led create mode 100755 package/base-files/files/etc/init.d/sysctl create mode 100755 package/base-files/files/etc/init.d/sysfixtime create mode 100755 package/base-files/files/etc/init.d/system create mode 100755 package/base-files/files/etc/init.d/umount create mode 100644 package/base-files/files/etc/inittab create mode 100644 package/base-files/files/etc/iproute2/ematch_map create mode 100644 package/base-files/files/etc/iproute2/rt_protos create mode 100644 package/base-files/files/etc/iproute2/rt_tables create mode 100644 package/base-files/files/etc/openwrt_release create mode 100644 package/base-files/files/etc/openwrt_version create mode 120000 package/base-files/files/etc/os-release create mode 100644 package/base-files/files/etc/passwd create mode 100755 package/base-files/files/etc/preinit create mode 100644 package/base-files/files/etc/profile create mode 100644 package/base-files/files/etc/protocols create mode 100755 package/base-files/files/etc/rc.button/failsafe create mode 100755 package/base-files/files/etc/rc.button/power create mode 100755 package/base-files/files/etc/rc.button/reboot create mode 100755 package/base-files/files/etc/rc.button/reset create mode 100755 package/base-files/files/etc/rc.button/rfkill create mode 100755 package/base-files/files/etc/rc.common create mode 100644 package/base-files/files/etc/rc.local create mode 100644 package/base-files/files/etc/services create mode 100644 package/base-files/files/etc/shadow create mode 100644 package/base-files/files/etc/shells create mode 100644 package/base-files/files/etc/shinit create mode 100644 package/base-files/files/etc/sysctl.conf create mode 100644 package/base-files/files/etc/sysctl.d/10-default.conf create mode 100644 package/base-files/files/etc/sysupgrade.conf create mode 100644 package/base-files/files/etc/uci-defaults/10_migrate-shadow create mode 100644 package/base-files/files/etc/uci-defaults/12_network-generate-ula create mode 100644 package/base-files/files/etc/uci-defaults/13_fix-group-user create mode 100644 package/base-files/files/lib/functions.sh create mode 100644 package/base-files/files/lib/functions/caldata.sh create mode 100644 package/base-files/files/lib/functions/leds.sh create mode 100644 package/base-files/files/lib/functions/migrations.sh create mode 100644 package/base-files/files/lib/functions/network.sh create mode 100644 package/base-files/files/lib/functions/preinit.sh create mode 100644 package/base-files/files/lib/functions/service.sh create mode 100644 package/base-files/files/lib/functions/system.sh create mode 100644 package/base-files/files/lib/functions/uci-defaults.sh create mode 100644 package/base-files/files/lib/preinit/02_default_set_state create mode 100644 package/base-files/files/lib/preinit/02_sysinfo create mode 100644 package/base-files/files/lib/preinit/10_indicate_failsafe create mode 100644 package/base-files/files/lib/preinit/10_indicate_preinit create mode 100644 package/base-files/files/lib/preinit/30_failsafe_wait create mode 100644 package/base-files/files/lib/preinit/40_run_failsafe_hook create mode 100644 package/base-files/files/lib/preinit/50_indicate_regular_preinit create mode 100644 package/base-files/files/lib/preinit/70_initramfs_test create mode 100644 package/base-files/files/lib/preinit/80_mount_root create mode 100644 package/base-files/files/lib/preinit/99_10_failsafe_login create mode 100644 package/base-files/files/lib/preinit/99_10_run_init create mode 100644 package/base-files/files/lib/upgrade/common.sh create mode 100755 package/base-files/files/lib/upgrade/do_stage2 create mode 100644 package/base-files/files/lib/upgrade/emmc.sh create mode 100644 package/base-files/files/lib/upgrade/fwtool.sh create mode 100644 package/base-files/files/lib/upgrade/keep.d/base-files-essential create mode 100644 package/base-files/files/lib/upgrade/legacy-sdcard.sh create mode 100644 package/base-files/files/lib/upgrade/nand.sh create mode 100755 package/base-files/files/lib/upgrade/stage2 create mode 100644 package/base-files/files/rom/note create mode 100755 package/base-files/files/sbin/firstboot create mode 100755 package/base-files/files/sbin/hotplug-call create mode 100755 package/base-files/files/sbin/led.sh create mode 100755 package/base-files/files/sbin/pkg_check create mode 100755 package/base-files/files/sbin/sysupgrade create mode 100755 package/base-files/files/sbin/wifi create mode 100644 package/base-files/files/usr/lib/os-release create mode 100755 package/base-files/files/usr/libexec/login.sh create mode 100755 package/base-files/files/usr/libexec/validate_firmware_image create mode 100644 package/base-files/image-config.in create mode 100755 package/boot/arm-trusted-firmware-rockchip/Makefile create mode 100644 package/boot/arm-trusted-firmware-sunxi/Makefile create mode 100644 package/boot/grub2/Makefile create mode 100644 package/boot/grub2/files/grub-early.cfg create mode 100644 package/boot/grub2/patches/100-grub_setup_root.patch create mode 100644 package/boot/kexec-tools/Config.in create mode 100644 package/boot/kexec-tools/Makefile create mode 100644 package/boot/kexec-tools/files/kdump.config create mode 100644 package/boot/kexec-tools/files/kdump.defaults create mode 100755 package/boot/kexec-tools/files/kdump.init create mode 100644 package/boot/kexec-tools/patches/001-arm-do-not-copy-magic-4-bytes-of-appended-DTB-in-zIm.patch create mode 100644 package/boot/uboot-envtools/Makefile create mode 100644 package/boot/uboot-envtools/files/apm821xx create mode 100644 package/boot/uboot-envtools/files/ath79 create mode 100644 package/boot/uboot-envtools/files/cns3xxx create mode 100644 package/boot/uboot-envtools/files/fw_printsys create mode 100644 package/boot/uboot-envtools/files/fw_setsys create mode 100644 package/boot/uboot-envtools/files/imx_cortexa9 create mode 100644 package/boot/uboot-envtools/files/ipq40xx create mode 100644 package/boot/uboot-envtools/files/ipq806x create mode 100644 package/boot/uboot-envtools/files/kirkwood create mode 100644 package/boot/uboot-envtools/files/lantiq create mode 100644 package/boot/uboot-envtools/files/layerscape create mode 100644 package/boot/uboot-envtools/files/mediatek_mt7622 create mode 100644 package/boot/uboot-envtools/files/mediatek_mt7623 create mode 100644 package/boot/uboot-envtools/files/mpc85xx create mode 100644 package/boot/uboot-envtools/files/mvebu create mode 100644 package/boot/uboot-envtools/files/mxs create mode 100644 package/boot/uboot-envtools/files/oxnas create mode 100644 package/boot/uboot-envtools/files/pistachio create mode 100644 package/boot/uboot-envtools/files/qoriq create mode 100644 package/boot/uboot-envtools/files/ramips create mode 100644 package/boot/uboot-envtools/files/realtek create mode 100644 package/boot/uboot-envtools/files/uboot-envtools.sh create mode 100644 package/boot/uboot-envtools/patches/001-compile.patch create mode 100644 package/boot/uboot-rockchip/Makefile create mode 100644 package/boot/uboot-rockchip/patches/001-scripts-remove-dependency-on-swig.patch create mode 100644 package/boot/uboot-rockchip/patches/002-spl-remove-dtoc-of-pdata-generation.patch create mode 100644 package/boot/uboot-rockchip/patches/101-rock64pro-disable-CONFIG_USE_PREBOOT.patch create mode 100644 package/boot/uboot-rockchip/src/of-platdata/nanopi-r2s-rk3328/dt-decl.h create mode 100644 package/boot/uboot-rockchip/src/of-platdata/nanopi-r2s-rk3328/dt-plat.c create mode 100644 package/boot/uboot-rockchip/src/of-platdata/nanopi-r2s-rk3328/dt-structs-gen.h create mode 100644 package/boot/uboot-sunxi/Makefile create mode 100644 package/boot/uboot-sunxi/patches/002-add-olimex-a13-som.patch create mode 100644 package/boot/uboot-sunxi/patches/003-add-theobroma-a31-pangolin.patch create mode 100644 package/boot/uboot-sunxi/patches/062-A20-improve-gmac-upload.patch create mode 100644 package/boot/uboot-sunxi/patches/063-fix-lime2-revK-add-micrel-PHY.patch create mode 100644 package/boot/uboot-sunxi/patches/091-sun6i-sync-PLL1-multdiv-with-Boot1.patch create mode 100644 package/boot/uboot-sunxi/patches/093-sun6i-fix-PLL-LDO-voltselect.patch create mode 100644 package/boot/uboot-sunxi/patches/100-sun6i-alternate-on-UART2.patch create mode 100644 package/boot/uboot-sunxi/patches/101-sun6i-support-console-on-UART2.patch create mode 100644 package/boot/uboot-sunxi/patches/102-sunxi-make_CONS_INDEX-configurable.patch create mode 100644 package/boot/uboot-sunxi/patches/200-mkimage-check-environment-for-dtc-binary-location.patch create mode 100644 package/boot/uboot-sunxi/patches/210-sunxi-deactivate-binman.patch create mode 100644 package/boot/uboot-sunxi/patches/230-disable-axp209-on-a13-olinuxino.diff create mode 100644 package/boot/uboot-sunxi/patches/250-sun8i-h3-zeropi-add-device-tree.patch create mode 100644 package/boot/uboot-sunxi/patches/251-sun8i-h3-zeropi-add-defconfig.patch create mode 100644 package/boot/uboot-sunxi/patches/252-sunxi-h3-add-support-for-nanopi-r1.patch create mode 100644 package/boot/uboot-sunxi/patches/253-sunxi-h5-add-support-for-nanopi-r1s-h5.patch create mode 100644 package/boot/uboot-sunxi/patches/260-add-missing-type-u64.patch create mode 100644 package/boot/uboot-sunxi/uEnv-a64.txt create mode 100644 package/boot/uboot-sunxi/uEnv-default.txt create mode 100644 package/boot/uboot-sunxi/uEnv-h6.txt create mode 100644 package/boot/uboot-sunxi/uEnv-pangolin.txt create mode 100644 package/devel/binutils/Makefile create mode 100644 package/devel/gdb/Makefile create mode 100644 package/devel/gdb/patches/001-gdb-pr14523-mips-signal-number.patch create mode 100644 package/devel/gdb/patches/110-shared_libgcc.patch create mode 100644 package/devel/gdb/patches/120-sigprocmask-invalid-call.patch create mode 100644 package/devel/gdb/patches/130-gdb-ctrl-c.patch create mode 100644 package/devel/gdb/patches/140-sgidefs.patch create mode 100644 package/devel/gdb/patches/150-mips64.patch create mode 100644 package/devel/perf/Makefile create mode 100644 package/devel/strace/Makefile create mode 100644 package/devel/strace/patches/010-m4.patch create mode 100644 package/devel/trace-cmd/Makefile create mode 100644 package/devel/trace-cmd/patches/100-musl.patch create mode 100644 package/devel/trace-cmd/patches/110-mac80211_tracepoint.patch create mode 100644 package/devel/valgrind/Makefile create mode 100644 package/devel/valgrind/files/default.supp create mode 100644 package/devel/valgrind/patches/010-mips-Fix-new-syscall-numbers.patch create mode 100644 package/devel/valgrind/patches/100-fix_configure_check.patch create mode 100644 package/devel/valgrind/patches/130-fix_arm_arch_detection.patch create mode 100644 package/devel/valgrind/patches/130-mips_fix_soft_float.patch create mode 100755 package/firmware/linux-libre-firmware/Makefile create mode 100755 package/firmware/linux-libre-firmware/qca.mk create mode 100644 package/firmware/wireless-regdb/Makefile create mode 100644 package/firmware/wireless-regdb/patches/500-world-regd-5GHz.patch create mode 100644 package/kernel/bpf-headers/Makefile create mode 100644 package/kernel/bpf-headers/files/stdarg.h create mode 100644 package/kernel/bpf-headers/src/include/generated/bounds.h create mode 100644 package/kernel/button-hotplug/Makefile create mode 100644 package/kernel/button-hotplug/src/Kconfig create mode 100644 package/kernel/button-hotplug/src/Makefile create mode 100644 package/kernel/button-hotplug/src/button-hotplug.c create mode 100644 package/kernel/cryptodev-linux/Makefile create mode 100644 package/kernel/dtc/patches/0001-scripts-dtc-Update-to-version-with-overlays.patch create mode 100644 package/kernel/gpio-button-hotplug/Makefile create mode 100644 package/kernel/gpio-button-hotplug/src/Makefile create mode 100644 package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c create mode 100644 package/kernel/ksmbd/Makefile create mode 100644 package/kernel/ksmbd/patches/01-keep_kmod_metadata.patch create mode 100644 package/kernel/linux/Makefile create mode 100644 package/kernel/linux/files/hotplug-sched-teql.sh create mode 100644 package/kernel/linux/files/sysctl-br-netfilter.conf create mode 100644 package/kernel/linux/files/sysctl-nf-conntrack.conf create mode 100644 package/kernel/linux/files/sysctl-tcp-bbr.conf create mode 100644 package/kernel/linux/modules/001-depends.mk create mode 100644 package/kernel/linux/modules/block.mk create mode 100644 package/kernel/linux/modules/can.mk create mode 100644 package/kernel/linux/modules/crypto.mk create mode 100644 package/kernel/linux/modules/firewire.mk create mode 100644 package/kernel/linux/modules/fs.mk create mode 100644 package/kernel/linux/modules/gpio-cascade.mk create mode 100644 package/kernel/linux/modules/hwmon.mk create mode 100644 package/kernel/linux/modules/i2c.mk create mode 100644 package/kernel/linux/modules/iio.mk create mode 100644 package/kernel/linux/modules/input.mk create mode 100644 package/kernel/linux/modules/leds.mk create mode 100644 package/kernel/linux/modules/lib.mk create mode 100644 package/kernel/linux/modules/multiplexer.mk create mode 100644 package/kernel/linux/modules/netdevices.mk create mode 100644 package/kernel/linux/modules/netfilter.mk create mode 100644 package/kernel/linux/modules/netsupport.mk create mode 100644 package/kernel/linux/modules/nls.mk create mode 100644 package/kernel/linux/modules/other.mk create mode 100644 package/kernel/linux/modules/pcmcia.mk create mode 100644 package/kernel/linux/modules/sound.mk create mode 100644 package/kernel/linux/modules/spi.mk create mode 100644 package/kernel/linux/modules/usb.mk create mode 100644 package/kernel/linux/modules/video.mk create mode 100644 package/kernel/linux/modules/virt.mk create mode 100644 package/kernel/linux/modules/w1.mk create mode 100644 package/kernel/linux/modules/wpan.mk create mode 100644 package/kernel/mac80211/Makefile create mode 100644 package/kernel/mac80211/ath.mk create mode 100644 package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh create mode 100644 package/kernel/mac80211/files/lib/wifi/mac80211.sh create mode 100644 package/kernel/mac80211/files/mac80211.hotplug create mode 100644 package/kernel/mac80211/patches/ath/070-ath_common_config.patch create mode 100644 package/kernel/mac80211/patches/ath/400-ath_move_debug_code.patch create mode 100644 package/kernel/mac80211/patches/ath/402-ath_regd_optional.patch create mode 100644 package/kernel/mac80211/patches/ath/403-world_regd_fixup.patch create mode 100644 package/kernel/mac80211/patches/ath/404-regd_no_assoc_hints.patch create mode 100644 package/kernel/mac80211/patches/ath/405-ath_regd_us.patch create mode 100644 package/kernel/mac80211/patches/ath/406-ath_relax_default_regd.patch create mode 100644 package/kernel/mac80211/patches/ath/431-add_platform_eeprom_support_to_ath5k.patch create mode 100644 package/kernel/mac80211/patches/ath5k/201-ath5k-WAR-for-AR71xx-PCI-bug.patch create mode 100644 package/kernel/mac80211/patches/ath5k/411-ath5k_allow_adhoc_and_ap.patch create mode 100644 package/kernel/mac80211/patches/ath5k/420-ath5k_disable_fast_cc.patch create mode 100644 package/kernel/mac80211/patches/ath5k/430-add_ath5k_platform.patch create mode 100644 package/kernel/mac80211/patches/ath5k/432-ath5k_add_pciids.patch create mode 100644 package/kernel/mac80211/patches/ath5k/440-ath5k_channel_bw_debugfs.patch create mode 100644 package/kernel/mac80211/patches/ath9k/040-ath9k-support-DT-ieee80211-freq-limit-property-to-li.patch create mode 100644 package/kernel/mac80211/patches/ath9k/350-ath9k_hw-reset-AHB-WMAC-interface-on-AR91xx.patch create mode 100644 package/kernel/mac80211/patches/ath9k/351-ath9k_hw-issue-external-reset-for-QCA955x.patch create mode 100644 package/kernel/mac80211/patches/ath9k/354-ath9k-force-rx_clear-when-disabling-rx.patch create mode 100644 package/kernel/mac80211/patches/ath9k/356-Revert-ath9k-interpret-requested-txpower-in-EIRP-dom.patch create mode 100644 package/kernel/mac80211/patches/ath9k/365-ath9k-adjust-tx-power-reduction-for-US-regulatory-do.patch create mode 100644 package/kernel/mac80211/patches/ath9k/401-ath9k_blink_default.patch create mode 100644 package/kernel/mac80211/patches/ath9k/410-ath9k_allow_adhoc_and_ap.patch create mode 100644 package/kernel/mac80211/patches/ath9k/450-ath9k-enabled-MFP-capability-unconditionally.patch create mode 100644 package/kernel/mac80211/patches/ath9k/500-ath9k_eeprom_debugfs.patch create mode 100644 package/kernel/mac80211/patches/ath9k/501-ath9k_ahb_init.patch create mode 100644 package/kernel/mac80211/patches/ath9k/510-ath9k_intr_mitigation_tweak.patch create mode 100644 package/kernel/mac80211/patches/ath9k/511-ath9k_reduce_rxbuf.patch create mode 100644 package/kernel/mac80211/patches/ath9k/512-ath9k_channelbw_debugfs.patch create mode 100644 package/kernel/mac80211/patches/ath9k/513-ath9k_add_pci_ids.patch create mode 100644 package/kernel/mac80211/patches/ath9k/530-ath9k_extra_leds.patch create mode 100644 package/kernel/mac80211/patches/ath9k/531-ath9k_extra_platform_leds.patch create mode 100644 package/kernel/mac80211/patches/ath9k/540-ath9k_reduce_ani_interval.patch create mode 100644 package/kernel/mac80211/patches/ath9k/542-ath9k_debugfs_diag.patch create mode 100644 package/kernel/mac80211/patches/ath9k/543-ath9k_entropy_from_adc.patch create mode 100644 package/kernel/mac80211/patches/ath9k/544-ath9k-ar933x-usb-hang-workaround.patch create mode 100644 package/kernel/mac80211/patches/ath9k/545-ath9k_ani_ws_detect.patch create mode 100644 package/kernel/mac80211/patches/ath9k/547-ath9k_led_defstate_fix.patch create mode 100644 package/kernel/mac80211/patches/ath9k/548-ath9k_enable_gpio_chip.patch create mode 100644 package/kernel/mac80211/patches/ath9k/549-ath9k_enable_gpio_buttons.patch create mode 100644 package/kernel/mac80211/patches/ath9k/551-ath9k_ubnt_uap_plus_hsr.patch create mode 100644 package/kernel/mac80211/patches/ath9k/552-ath9k-ahb_of.patch create mode 100644 package/kernel/mac80211/patches/ath9k/553-ath9k_of_gpio_mask.patch create mode 100644 package/kernel/mac80211/patches/ath9k/600-v5.16-ath9k-fetch-calibration-data-via-nvmem-subsystem.patch create mode 100644 package/kernel/mac80211/patches/ath9k/601-v5.16-ath9k-owl-loader-fetch-pci-init-values-through-nvmem.patch create mode 100644 package/kernel/mac80211/patches/build/000-fix_kconfig.patch create mode 100644 package/kernel/mac80211/patches/build/001-fix_build.patch create mode 100644 package/kernel/mac80211/patches/build/002-change_allconfig.patch create mode 100644 package/kernel/mac80211/patches/build/003-remove_bogus_modparams.patch create mode 100644 package/kernel/mac80211/patches/build/012-kernel_build_check.patch create mode 100644 package/kernel/mac80211/patches/build/015-ipw200-mtu.patch create mode 100644 package/kernel/mac80211/patches/build/050-lib80211_option.patch create mode 100644 package/kernel/mac80211/patches/build/060-no_local_ssb_bcma.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/001-rt2x00-define-RF5592-in-init_eeprom-routine.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/002-rt2x00-add-throughput-LED-trigger.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/003-rt2x00-add-support-for-external-PA-on-MT7620.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/004-rt2x00-move-up-and-reuse-busy-wait-functions.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/005-rt2x00-add-RF-self-TXDC-calibration-for-MT7620.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/006-rt2x00-add-r-calibration-for-MT7620.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/007-rt2x00-add-RXDCOC-calibration-for-MT7620.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/008-rt2x00-add-RXIQ-calibration-for-MT7620.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/010-rt2x00-add-TX-LOFT-calibration-for-MT7620.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/011-rt2x00-move-helper-functions-up-in-file.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/012-rt2x00-fix-HT20-HT40-bandwidth-switch-on-MT7620.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/100-rt2x00_options.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/501-rt2x00-allow-to-build-rt2800soc-module-for-RT3883.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/601-rt2x00-introduce-rt2x00_platform_h.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/602-rt2x00-introduce-rt2x00eeprom.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/603-rt2x00-of_load_eeprom_filename.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/604-rt2x00-load-eeprom-on-SoC-from-a-mtd-device-defines-.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/606-rt2x00-allow_disabling_bands_through_platform_data.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/607-rt2x00-add_platform_data_mac_addr.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/608-rt2x00-allow_disabling_bands_through_dts.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/609-rt2x00-make-wmac-loadable-via-OF-on-rt288x-305x-SoC.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/610-rt2x00-change-led-polarity-from-OF.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/611-rt2x00-add-AP+STA-support.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/994-rt2x00-import-support-for-external-LNA-on-MT7620.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/995-rt2x00-mt7620-introduce-accessors-for-CHIP_VER-register.patch create mode 100644 package/kernel/mac80211/patches/rt2x00/996-rt2x00-mt7620-differentiate-based-on-SoC-CHIP_VER.patch create mode 100644 package/kernel/mac80211/patches/subsys/110-mac80211_keep_keys_on_stop_ap.patch create mode 100644 package/kernel/mac80211/patches/subsys/120-cfg80211_allow_perm_addr_change.patch create mode 100644 package/kernel/mac80211/patches/subsys/150-disable_addr_notifier.patch create mode 100644 package/kernel/mac80211/patches/subsys/210-ap_scan.patch create mode 100644 package/kernel/mac80211/patches/subsys/301-mac80211-sta-randomize-BA-session-dialog-token-alloc.patch create mode 100644 package/kernel/mac80211/patches/subsys/303-mac80211-set-up-the-fwd_skb-dev-for-mesh-forwarding.patch create mode 100644 package/kernel/mac80211/patches/subsys/306-mac80211-use-coarse-boottime-for-airtime-fairness-co.patch create mode 100644 package/kernel/mac80211/patches/subsys/307-mac80211_hwsim-make-6-GHz-channels-usable.patch create mode 100644 package/kernel/mac80211/patches/subsys/308-mac80211-add-support-for-.ndo_fill_forward_path.patch create mode 100644 package/kernel/mac80211/patches/subsys/309-mac80211-minstrel_ht-fix-MINSTREL_FRAC-macro.patch create mode 100644 package/kernel/mac80211/patches/subsys/310-mac80211-minstrel_ht-reduce-fluctuations-in-rate-pro.patch create mode 100644 package/kernel/mac80211/patches/subsys/311-mac80211-minstrel_ht-rework-rate-downgrade-code-and-.patch create mode 100644 package/kernel/mac80211/patches/subsys/312-mac80211-split-beacon-retrieval-functions.patch create mode 100644 package/kernel/mac80211/patches/subsys/313-nl80211-MBSSID-and-EMA-support-in-AP-mode.patch create mode 100644 package/kernel/mac80211/patches/subsys/314-cfg80211-implement-APIs-for-dedicated-radar-detectio.patch create mode 100644 package/kernel/mac80211/patches/subsys/315-cfg80211-move-offchan_cac_event-to-a-dedicated-work.patch create mode 100644 package/kernel/mac80211/patches/subsys/316-cfg80211-fix-possible-NULL-pointer-dereference-in-cf.patch create mode 100644 package/kernel/mac80211/patches/subsys/317-cfg80211-schedule-offchan_cac_abort_wk-in-cfg80211_r.patch create mode 100644 package/kernel/mac80211/patches/subsys/318-cfg80211-allow-continuous-radar-monitoring-on-offcha.patch create mode 100644 package/kernel/mac80211/patches/subsys/319-mac80211-introduce-set_radar_offchan-callback.patch create mode 100644 package/kernel/mac80211/patches/subsys/320-cfg80211-rename-offchannel_chain-structs-to-backgrou.patch create mode 100644 package/kernel/mac80211/patches/subsys/323-mac80211-MBSSID-support-in-interface-handling.patch create mode 100644 package/kernel/mac80211/patches/subsys/324-mac80211-MBSSID-beacon-handling-in-AP-mode.patch create mode 100644 package/kernel/mac80211/patches/subsys/325-mac80211-MBSSID-channel-switch.patch create mode 100644 package/kernel/mac80211/patches/subsys/326-mac80211-update-bssid_indicator-in-ieee80211_assign_.patch create mode 100644 package/kernel/mac80211/patches/subsys/328-mac80211-do-not-wake-queues-on-a-vif-that-is-being-s.patch create mode 100644 package/kernel/mac80211/patches/subsys/330-mac80211-switch-airtime-fairness-back-to-deficit-rou.patch create mode 100644 package/kernel/mac80211/patches/subsys/331-mac80211-make-sta-airtime-deficit-field-s32-instead-.patch create mode 100644 package/kernel/mac80211/patches/subsys/332-mac80211-consider-aql_tx_pending-when-checking-airti.patch create mode 100644 package/kernel/mac80211/patches/subsys/333-mac80211-keep-recently-active-tx-queues-in-schedulin.patch create mode 100644 package/kernel/mac80211/patches/subsys/334-mac80211-add-a-per-PHY-AQL-limit-to-improve-fairness.patch create mode 100644 package/kernel/mac80211/patches/subsys/335-mac80211-add-debugfs-file-to-display-per-phy-AQL-pen.patch create mode 100644 package/kernel/mac80211/patches/subsys/336-mac80211-only-accumulate-airtime-deficit-for-active-.patch create mode 100644 package/kernel/mac80211/patches/subsys/337-mac80211-increase-quantum-for-airtime-scheduler.patch create mode 100644 package/kernel/mac80211/patches/subsys/339-mac80211-exclude-multicast-packets-from-AQL-pending-.patch create mode 100644 package/kernel/mac80211/patches/subsys/340-wifi-mac80211-do-not-abuse-fq.lock-in-ieee80211_do_s.patch create mode 100644 package/kernel/mac80211/patches/subsys/341-mac80211-Fix-deadlock-Don-t-start-TX-while-holding-f.patch create mode 100644 package/kernel/mac80211/patches/subsys/342-mac80211-Ensure-vif-queues-are-operational-after-sta.patch create mode 100644 package/kernel/mac80211/patches/subsys/343-wifi-mac80211-fix-decap-offload-for-stations-on-AP_V.patch create mode 100644 package/kernel/mac80211/patches/subsys/344-wifi-cfg80211-fix-ieee80211_data_to_8023_exthdr-hand.patch create mode 100644 package/kernel/mac80211/patches/subsys/345-wifi-mac80211-do-not-drop-packets-smaller-than-the-L.patch create mode 100644 package/kernel/mac80211/patches/subsys/346-v6.0-wifi-mac80211-fix-mesh-airtime-link-metric-estimatin.patch create mode 100644 package/kernel/mac80211/patches/subsys/500-mac80211_configure_antenna_gain.patch create mode 100644 package/kernel/mac80211/patches/subsys/782-net-next-1-of-net-pass-the-dst-buffer-to-of_get_mac_address.patch create mode 100755 package/kernel/mac80211/scripts/import-backports.sh create mode 100644 package/kernel/nat46/Makefile create mode 100644 package/kernel/trelay/Makefile create mode 100644 package/kernel/trelay/files/trelay.config create mode 100644 package/kernel/trelay/files/trelay.hotplug create mode 100644 package/kernel/trelay/files/trelay.init create mode 100644 package/kernel/trelay/src/Makefile create mode 100644 package/kernel/trelay/src/trelay.c create mode 100644 package/lang/luasrcdiet/Makefile create mode 100644 package/libs/argp-standalone/Makefile create mode 100644 package/libs/argp-standalone/patches/001-throw-in-funcdef.patch create mode 100644 package/libs/argp-standalone/patches/002-no_optimize.patch create mode 100644 package/libs/argp-standalone/patches/900-fix-segfault-in_canon_doc_option.patch create mode 100644 package/libs/elfutils/Makefile create mode 100644 package/libs/elfutils/patches/003-libintl-compatibility.patch create mode 100644 package/libs/elfutils/patches/005-build_only_libs.patch create mode 100644 package/libs/elfutils/patches/006-Fix-build-on-aarch64-musl.patch create mode 100644 package/libs/elfutils/patches/100-musl-compat.patch create mode 100644 package/libs/elfutils/patches/101-no-fts.patch create mode 100644 package/libs/expat/Makefile create mode 100644 package/libs/gettext-full/Makefile create mode 100644 package/libs/gettext-full/patches/000-relocatable.patch create mode 100644 package/libs/gettext-full/patches/001-autotools.patch create mode 100644 package/libs/gettext-full/patches/001-no_examples_and_tests.patch create mode 100644 package/libs/gettext-full/patches/010-m4.patch create mode 100644 package/libs/gettext-full/patches/150-disable_libxml_iconv.patch create mode 100644 package/libs/glib2/Makefile create mode 100644 package/libs/glib2/patches/003-valgrind.h-mips16-fix.patch create mode 100644 package/libs/glib2/patches/006-c99.patch create mode 100644 package/libs/glib2/patches/010-libintl.patch create mode 100644 package/libs/gmp/Makefile create mode 100644 package/libs/jansson/Makefile create mode 100644 package/libs/libaudit/Makefile create mode 100644 package/libs/libaudit/patches/0001-Add-substitue-functions-for-strndupa-rawmemchr.patch create mode 100644 package/libs/libaudit/patches/0002-fix-gcc-10.patch create mode 100644 package/libs/libbsd/Makefile create mode 100644 package/libs/libcap/Makefile create mode 100644 package/libs/libcap/patches/300-disable-tests.patch create mode 100644 package/libs/libevent2/Makefile create mode 100644 package/libs/libffi/Makefile create mode 100644 package/libs/libiconv-full/Makefile create mode 100644 package/libs/libiconv/COPYING create mode 100644 package/libs/libiconv/COPYRIGHT create mode 100644 package/libs/libiconv/Makefile create mode 100644 package/libs/libiconv/src/LICENSE create mode 100644 package/libs/libiconv/src/iconv.c create mode 100644 package/libs/libiconv/src/include/charmaps.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-10.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-13.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-14.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-16.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-2.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-3.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-4.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-5.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-6.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-7.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-8.h create mode 100644 package/libs/libiconv/src/include/charmaps/iso-8859-9.h create mode 100644 package/libs/libiconv/src/include/charmaps/koi8-r.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-1250.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-1251.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-1252.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-1253.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-1254.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-1255.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-1256.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-1257.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-1258.h create mode 100644 package/libs/libiconv/src/include/charmaps/windows-874.h create mode 100644 package/libs/libiconv/src/include/iconv.h create mode 100644 package/libs/libiconv/src/m4/iconv.m4 create mode 100644 package/libs/libjson-c/Makefile create mode 100644 package/libs/libjson-c/patches/001-dont-build-docs.patch create mode 100644 package/libs/libjson-c/patches/010-clang.patch create mode 100644 package/libs/libmbim/Makefile create mode 100644 package/libs/libmnl/Makefile create mode 100644 package/libs/libmnl/patches/001-fix_build.patch create mode 100644 package/libs/libnetfilter-conntrack/Makefile create mode 100644 package/libs/libnetfilter-conntrack/patches/0001-conntrack-fix-build-with-kernel-5_15-and-musl.patch create mode 100644 package/libs/libnfnetlink/Makefile create mode 100644 package/libs/libnftnl/Makefile create mode 100644 package/libs/libnl-tiny/Makefile create mode 100644 package/libs/libnl/Makefile create mode 100644 package/libs/libnl/patches/100-build-add-Libs.private-field-in-libnl-pkg-config-file.patch create mode 100644 package/libs/libpam/Makefile create mode 100644 package/libs/libpam/files/pam.conf create mode 100644 package/libs/libpam/files/pam.d/common-account create mode 100644 package/libs/libpam/files/pam.d/common-auth create mode 100644 package/libs/libpam/files/pam.d/common-password create mode 100644 package/libs/libpam/files/pam.d/common-session create mode 100644 package/libs/libpam/files/pam.d/common-session-noninteractive create mode 100644 package/libs/libpam/files/pam.d/other create mode 100644 package/libs/libpam/patches/0001-build-always-use-lib-instead-of-lib64.patch create mode 100644 package/libs/libpcap/Config.in create mode 100644 package/libs/libpcap/Makefile create mode 100644 package/libs/libpcap/patches/100-no-openssl.patch create mode 100644 package/libs/libpcap/patches/102-skip-manpages.patch create mode 100644 package/libs/libpcap/patches/201-space_optimization.patch create mode 100644 package/libs/libqmi/Config.in create mode 100644 package/libs/libqmi/Makefile create mode 100644 package/libs/libqrtr-glib/Makefile create mode 100644 package/libs/libsepol/Makefile create mode 100644 package/libs/libtool/Makefile create mode 100644 package/libs/libubox/Makefile create mode 100644 package/libs/libunwind/Makefile create mode 100644 package/libs/libunwind/patches/001-Don-t-force-exec_prefix-lib64-libdir-on-ppc64.patch create mode 100644 package/libs/libunwind/patches/002-fix-building-getcontext_S.patch create mode 100644 package/libs/libunwind/patches/003-fix-missing-ef_reg-defs-with-musl.patch create mode 100644 package/libs/libunwind/patches/004-ppc-musl.patch create mode 100644 package/libs/libusb/Makefile create mode 100644 package/libs/libusb/patches/001-Correct-a-typo-in-the-Changelog-and-clean-up-a-stray.patch create mode 100644 package/libs/libusb/patches/002-linux_usbfs-Fix-parsing-of-descriptors-for-multi-con.patch create mode 100644 package/libs/libxml2/Makefile create mode 100644 package/libs/libxslt/Makefile create mode 100644 package/libs/libxslt/patches/010-fix-xml2-config-check.patch create mode 100644 package/libs/mbedtls/Makefile create mode 100644 package/libs/mbedtls/patches/100-fix-compile.patch create mode 100644 package/libs/mbedtls/patches/101-bn_mul.h-workaround-for-gcc-11.2.0-issues.patch create mode 100644 package/libs/mbedtls/patches/200-config.patch create mode 100644 package/libs/musl-fts/Makefile create mode 100644 package/libs/ncurses/Makefile create mode 100644 package/libs/ncurses/patches/100-ncurses-5.6-20080112-urxvt.patch create mode 100644 package/libs/ncurses/patches/101-ncurses-5.6-20080628-kbs.patch create mode 100644 package/libs/ncurses/patches/102-ncurses-5.9-gcc-5.patch create mode 100644 package/libs/ncurses/patches/103-ncurses-ar-determinism.patch create mode 100644 package/libs/ncurses/patches/200-fix_missing_include.patch create mode 100644 package/libs/ncurses/patches/900-terminfo.patch create mode 100644 package/libs/nettle/Config.in create mode 100644 package/libs/nettle/Makefile create mode 100644 package/libs/nettle/patches/100-portability.patch create mode 100644 package/libs/openssl/Config.in create mode 100644 package/libs/openssl/Makefile create mode 100644 package/libs/openssl/engine.mk create mode 100644 package/libs/openssl/files/afalg.cnf create mode 100644 package/libs/openssl/files/devcrypto.cnf create mode 100755 package/libs/openssl/files/openssl.init create mode 100644 package/libs/openssl/files/padlock.cnf create mode 100644 package/libs/openssl/patches/001-crypto-perlasm-ppc-xlate.pl-add-linux64v2-flavour.patch create mode 100644 package/libs/openssl/patches/100-Configure-afalg-support.patch create mode 100644 package/libs/openssl/patches/110-openwrt_targets.patch create mode 100644 package/libs/openssl/patches/120-strip-cflags-from-binary.patch create mode 100644 package/libs/openssl/patches/130-dont-build-tests-fuzz.patch create mode 100644 package/libs/openssl/patches/140-allow-prefer-chacha20.patch create mode 100644 package/libs/openssl/patches/150-openssl.cnf-add-engines-conf.patch create mode 100644 package/libs/openssl/patches/400-eng_devcrypto-save-ioctl-if-EVP_MD_.FLAG_ONESHOT.patch create mode 100644 package/libs/openssl/patches/410-eng_devcrypto-add-configuration-options.patch create mode 100644 package/libs/openssl/patches/420-eng_devcrypto-add-command-to-dump-driver-info.patch create mode 100644 package/libs/openssl/patches/430-e_devcrypto-make-the-dev-crypto-engine-dynamic.patch create mode 100644 package/libs/openssl/patches/500-e_devcrypto-default-to-not-use-digests-in-engine.patch create mode 100644 package/libs/openssl/patches/510-e_devcrypto-ignore-error-when-closing-session.patch create mode 100644 package/libs/pcre/Config.in create mode 100644 package/libs/pcre/Makefile create mode 100644 package/libs/popt/Makefile create mode 100644 package/libs/readline/Makefile create mode 100644 package/libs/readline/patches/001-curses-link.patch create mode 100644 package/libs/sysfsutils/Makefile create mode 100644 package/libs/sysfsutils/files/local.conf create mode 100644 package/libs/sysfsutils/files/sysfs.conf create mode 100644 package/libs/sysfsutils/files/sysfsutils create mode 100644 package/libs/sysfsutils/patches/200-mnt_path_check.patch create mode 100644 package/libs/toolchain/Makefile create mode 100644 package/libs/toolchain/glibc-files/etc/nsswitch.conf create mode 100644 package/libs/uclient/Makefile create mode 100644 package/libs/ustream-ssl/Makefile create mode 100644 package/libs/wolfssl/Config.in create mode 100644 package/libs/wolfssl/Makefile create mode 100644 package/libs/wolfssl/patches/100-disable-hardening-check.patch create mode 100644 package/libs/zlib/Config.in create mode 100644 package/libs/zlib/Makefile create mode 100644 package/libs/zlib/patches/001-neon-implementation-of-adler32.patch create mode 100644 package/libs/zlib/patches/002-arm-specific-optimisations-for-inflate.patch create mode 100644 package/libs/zlib/patches/003-arm-specific-optimisations-for-inflate.patch create mode 100644 package/libs/zlib/patches/004-attach-sourcefiles-in-patch-002-to-buildsystem.patch create mode 100644 package/libs/zlib/patches/005-relative-pkg-config-paths.patch create mode 100644 package/libs/zlib/patches/006-fix-CVE-2022-37434.patch create mode 100644 package/libs/zlib/patches/006-fix-compressor-crash-on-certain-inputs.patch create mode 100644 package/libs/zlib/patches/007-fix-null-dereference-in-fix-CVE-2022-37434.patch create mode 100644 package/luci/.github/issue_template create mode 100644 package/luci/.github/workflows/build.yml create mode 100644 package/luci/.github/workflows/ci_helpers.sh create mode 100644 package/luci/.github/workflows/formal.yml create mode 100644 package/luci/.github/workflows/jsdoc.yml create mode 100644 package/luci/.gitignore create mode 100644 package/luci/LICENSE create mode 100644 package/luci/NOTICE create mode 100644 package/luci/applications/luci-app-commands/Makefile create mode 100644 package/luci/applications/luci-app-commands/luasrc/controller/commands.lua create mode 100644 package/luci/applications/luci-app-commands/luasrc/model/cbi/commands.lua create mode 100644 package/luci/applications/luci-app-commands/luasrc/view/commands.htm create mode 100644 package/luci/applications/luci-app-commands/luasrc/view/commands_public.htm create mode 100644 package/luci/applications/luci-app-commands/po/ar/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/bg/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/bn_BD/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/ca/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/cs/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/da/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/de/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/el/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/en/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/es/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/fi/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/fr/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/he/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/hi/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/hu/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/it/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/ja/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/ko/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/mr/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/ms/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/nb_NO/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/pl/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/pt/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/pt_BR/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/ro/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/ru/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/sk/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/sv/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/templates/commands.pot create mode 100644 package/luci/applications/luci-app-commands/po/tr/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/uk/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/vi/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/zh_Hans/commands.po create mode 100644 package/luci/applications/luci-app-commands/po/zh_Hant/commands.po create mode 100644 package/luci/applications/luci-app-commands/root/usr/share/rpcd/acl.d/luci-app-commands.json create mode 100644 package/luci/applications/luci-app-firewall/Makefile create mode 100644 package/luci/applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js create mode 100644 package/luci/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/custom.js create mode 100644 package/luci/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js create mode 100644 package/luci/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/rules.js create mode 100644 package/luci/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js create mode 100644 package/luci/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js create mode 100644 package/luci/applications/luci-app-firewall/po/ar/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/bg/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/bn_BD/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/ca/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/cs/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/da/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/de/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/el/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/en/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/es/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/fa/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/fi/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/fr/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/he/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/hi/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/hu/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/id/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/it/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/ja/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/ko/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/mr/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/ms/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/nb_NO/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/nl/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/pl/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/pt/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/pt_BR/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/ro/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/ru/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/si/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/sk/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/sv/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/templates/firewall.pot create mode 100644 package/luci/applications/luci-app-firewall/po/tr/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/uk/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/vi/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/zh_Hans/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/po/zh_Hant/firewall.po create mode 100644 package/luci/applications/luci-app-firewall/root/usr/share/luci/menu.d/luci-app-firewall.json create mode 100644 package/luci/applications/luci-app-firewall/root/usr/share/rpcd/acl.d/luci-app-firewall.json create mode 100644 package/luci/applications/luci-app-openvpn/Makefile create mode 100644 package/luci/applications/luci-app-openvpn/luasrc/controller/openvpn.lua create mode 100644 package/luci/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua create mode 100644 package/luci/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-basic.lua create mode 100644 package/luci/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-file.lua create mode 100644 package/luci/applications/luci-app-openvpn/luasrc/model/cbi/openvpn.lua create mode 100644 package/luci/applications/luci-app-openvpn/luasrc/view/openvpn/cbi-select-input-add.htm create mode 100644 package/luci/applications/luci-app-openvpn/luasrc/view/openvpn/ovpn_css.htm create mode 100644 package/luci/applications/luci-app-openvpn/luasrc/view/openvpn/pageswitch.htm create mode 100644 package/luci/applications/luci-app-openvpn/po/ar/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/bg/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/bn_BD/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/ca/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/cs/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/da/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/de/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/el/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/en/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/es/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/fa/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/fi/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/fr/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/he/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/hi/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/hu/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/it/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/ja/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/ko/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/mr/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/ms/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/nb_NO/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/pl/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/pt/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/pt_BR/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/ro/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/ru/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/sk/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/sv/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/templates/openvpn.pot create mode 100644 package/luci/applications/luci-app-openvpn/po/tr/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/uk/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/vi/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/zh_Hans/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/po/zh_Hant/openvpn.po create mode 100644 package/luci/applications/luci-app-openvpn/root/etc/config/openvpn_recipes create mode 100644 package/luci/applications/luci-app-openvpn/root/usr/share/rpcd/acl.d/luci-app-openvpn.json create mode 100644 package/luci/applications/luci-app-opkg/Makefile create mode 100644 package/luci/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js create mode 100644 package/luci/applications/luci-app-opkg/po/ar/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/bg/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/bn_BD/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/ca/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/cs/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/da/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/de/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/el/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/en/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/es/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/fi/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/fr/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/he/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/hi/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/hu/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/it/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/ja/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/ko/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/mr/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/ms/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/nb_NO/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/pl/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/pt/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/pt_BR/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/ro/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/ru/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/sk/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/sv/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/templates/opkg.pot create mode 100644 package/luci/applications/luci-app-opkg/po/tr/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/uk/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/vi/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/zh_Hans/opkg.po create mode 100644 package/luci/applications/luci-app-opkg/po/zh_Hant/opkg.po create mode 100755 package/luci/applications/luci-app-opkg/root/usr/libexec/opkg-call create mode 100644 package/luci/applications/luci-app-opkg/root/usr/share/luci/menu.d/luci-app-opkg.json create mode 100644 package/luci/applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json create mode 100644 package/luci/applications/luci-app-p910nd/Makefile create mode 100644 package/luci/applications/luci-app-p910nd/luasrc/model/cbi/p910nd.lua create mode 100644 package/luci/applications/luci-app-p910nd/po/ar/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/bg/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/bn_BD/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/ca/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/cs/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/da/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/de/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/el/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/en/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/es/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/fi/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/fr/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/he/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/hi/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/hu/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/it/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/ja/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/ko/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/mr/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/ms/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/nb_NO/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/pl/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/pt/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/pt_BR/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/ro/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/ru/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/sk/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/sv/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/templates/p910nd.pot create mode 100644 package/luci/applications/luci-app-p910nd/po/tr/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/uk/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/vi/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/zh_Hans/p910nd.po create mode 100644 package/luci/applications/luci-app-p910nd/po/zh_Hant/p910nd.po create mode 100755 package/luci/applications/luci-app-p910nd/root/etc/uci-defaults/40_luci-p910nd create mode 100644 package/luci/applications/luci-app-p910nd/root/usr/share/luci/menu.d/luci-app-p910nd.json create mode 100644 package/luci/applications/luci-app-p910nd/root/usr/share/rpcd/acl.d/luci-app-p910nd.json create mode 100644 package/luci/applications/luci-app-uhttpd/Makefile create mode 100644 package/luci/applications/luci-app-uhttpd/luasrc/model/cbi/uhttpd/uhttpd.lua create mode 100644 package/luci/applications/luci-app-uhttpd/po/ar/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/bg/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/bn_BD/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/ca/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/cs/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/da/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/de/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/el/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/en/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/es/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/fi/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/fr/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/he/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/hi/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/hu/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/id/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/it/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/ja/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/ko/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/mr/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/ms/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/nb_NO/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/pl/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/pt/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/pt_BR/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/ro/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/ru/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/sk/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/sv/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/templates/uhttpd.pot create mode 100644 package/luci/applications/luci-app-uhttpd/po/tr/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/uk/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/vi/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/zh_Hans/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/po/zh_Hant/uhttpd.po create mode 100644 package/luci/applications/luci-app-uhttpd/root/usr/share/luci/menu.d/luci-app-uhttpd.json create mode 100644 package/luci/applications/luci-app-uhttpd/root/usr/share/rpcd/acl.d/luci-app-uhttpd.json create mode 100644 package/luci/applications/luci-app-wireguard/Makefile create mode 100644 package/luci/applications/luci-app-wireguard/htdocs/luci-static/resources/view/wireguard/status.js create mode 100644 package/luci/applications/luci-app-wireguard/po/ar/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/bg/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/bn_BD/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/ca/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/cs/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/da/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/de/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/el/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/en/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/es/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/fi/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/fr/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/he/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/hi/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/hu/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/id/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/it/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/ja/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/ko/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/mr/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/ms/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/nb_NO/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/pl/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/pt/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/pt_BR/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/ro/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/ru/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/sk/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/sv/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/templates/wireguard.pot create mode 100644 package/luci/applications/luci-app-wireguard/po/tr/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/uk/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/vi/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/zh_Hans/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/po/zh_Hant/wireguard.po create mode 100644 package/luci/applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json create mode 100644 package/luci/applications/luci-app-wireguard/root/usr/share/rpcd/acl.d/luci-app-wireguard.json create mode 100755 package/luci/build/check-controllers.sh create mode 100755 package/luci/build/find-cherry-pick-candidates.pl create mode 100755 package/luci/build/i18n-add-language.sh create mode 100755 package/luci/build/i18n-init.sh create mode 100755 package/luci/build/i18n-merge-master.pl create mode 100755 package/luci/build/i18n-po2lua.pl create mode 100755 package/luci/build/i18n-scan.pl create mode 100755 package/luci/build/i18n-sync.sh create mode 100755 package/luci/build/i18n-update.pl create mode 100755 package/luci/build/luadoc/doc.lua create mode 100644 package/luci/build/luadoc/luadoc/config.lua create mode 100644 package/luci/build/luadoc/luadoc/doclet/debug.lua create mode 100644 package/luci/build/luadoc/luadoc/doclet/formatter.lua create mode 100644 package/luci/build/luadoc/luadoc/doclet/html.lua create mode 100644 package/luci/build/luadoc/luadoc/doclet/html/constant.lp create mode 100644 package/luci/build/luadoc/luadoc/doclet/html/file.lp create mode 100644 package/luci/build/luadoc/luadoc/doclet/html/function.lp create mode 100644 package/luci/build/luadoc/luadoc/doclet/html/index.lp create mode 100644 package/luci/build/luadoc/luadoc/doclet/html/luadoc.css create mode 100644 package/luci/build/luadoc/luadoc/doclet/html/menu.lp create mode 100644 package/luci/build/luadoc/luadoc/doclet/html/module.lp create mode 100644 package/luci/build/luadoc/luadoc/doclet/html/table.lp create mode 100644 package/luci/build/luadoc/luadoc/doclet/raw.lua create mode 100644 package/luci/build/luadoc/luadoc/init.lua create mode 100644 package/luci/build/luadoc/luadoc/lp.lua create mode 100644 package/luci/build/luadoc/luadoc/taglet/standard.lua create mode 100644 package/luci/build/luadoc/luadoc/taglet/standard/tags.lua create mode 100644 package/luci/build/luadoc/luadoc/util.lua create mode 100755 package/luci/build/makedocs.sh create mode 100755 package/luci/build/mkbasepot.sh create mode 100755 package/luci/build/mkrevision.sh create mode 100755 package/luci/build/zoneinfo2lua.pl create mode 100644 package/luci/collections/luci-light/Makefile create mode 100644 package/luci/collections/luci-ssl-openssl/Makefile create mode 100644 package/luci/collections/luci-ssl/Makefile create mode 100644 package/luci/collections/luci/Makefile create mode 100644 package/luci/contrib/package/Makefile create mode 100644 package/luci/contrib/package/csstidy/Makefile create mode 100644 package/luci/contrib/package/lucihttp/Makefile create mode 100644 package/luci/docs/CBI.md create mode 100644 package/luci/docs/JsonRpcHowTo.md create mode 100644 package/luci/docs/LAR.md create mode 100644 package/luci/docs/LMO.md create mode 100644 package/luci/docs/LuCI-0.10.md create mode 100644 package/luci/docs/Modules.md create mode 100644 package/luci/docs/ModulesHowTo.md create mode 100644 package/luci/docs/README.md create mode 100644 package/luci/docs/Templates.md create mode 100644 package/luci/docs/ThemesHowTo.md create mode 100644 package/luci/docs/api/index.html create mode 100644 package/luci/docs/api/luadoc.css create mode 100644 package/luci/docs/api/modules/luci.dispatcher.html create mode 100644 package/luci/docs/api/modules/luci.http.conditionals.html create mode 100644 package/luci/docs/api/modules/luci.http.date.html create mode 100644 package/luci/docs/api/modules/luci.http.html create mode 100644 package/luci/docs/api/modules/luci.http.mime.html create mode 100644 package/luci/docs/api/modules/luci.i18n.html create mode 100644 package/luci/docs/api/modules/luci.ip.cidr.html create mode 100644 package/luci/docs/api/modules/luci.ip.html create mode 100644 package/luci/docs/api/modules/luci.json.html create mode 100644 package/luci/docs/api/modules/luci.jsonc.html create mode 100644 package/luci/docs/api/modules/luci.jsonc.parser.html create mode 100644 package/luci/docs/api/modules/luci.model.ipkg.html create mode 100644 package/luci/docs/api/modules/luci.model.uci.html create mode 100644 package/luci/docs/api/modules/luci.rpcc.html create mode 100644 package/luci/docs/api/modules/luci.rpcc.ruci.html create mode 100644 package/luci/docs/api/modules/luci.sys.html create mode 100644 package/luci/docs/api/modules/luci.sys.init.html create mode 100644 package/luci/docs/api/modules/luci.sys.iptparser.html create mode 100644 package/luci/docs/api/modules/luci.sys.net.html create mode 100644 package/luci/docs/api/modules/luci.sys.process.html create mode 100644 package/luci/docs/api/modules/luci.sys.user.html create mode 100644 package/luci/docs/api/modules/luci.sys.wifi.html create mode 100644 package/luci/docs/api/modules/luci.util.html create mode 100644 package/luci/docs/api/modules/luci.xml.html create mode 100644 package/luci/docs/api/modules/nixio.CHANGELOG.html create mode 100644 package/luci/docs/api/modules/nixio.CryptoHash.html create mode 100644 package/luci/docs/api/modules/nixio.File.html create mode 100644 package/luci/docs/api/modules/nixio.README.html create mode 100644 package/luci/docs/api/modules/nixio.Socket.html create mode 100644 package/luci/docs/api/modules/nixio.TLSContext.html create mode 100644 package/luci/docs/api/modules/nixio.TLSSocket.html create mode 100644 package/luci/docs/api/modules/nixio.UnifiedIO.html create mode 100644 package/luci/docs/api/modules/nixio.bin.html create mode 100644 package/luci/docs/api/modules/nixio.bit.html create mode 100644 package/luci/docs/api/modules/nixio.crypto.html create mode 100644 package/luci/docs/api/modules/nixio.fs.html create mode 100644 package/luci/docs/api/modules/nixio.html create mode 100644 package/luci/docs/i18n.md create mode 100644 package/luci/docs/jsapi/README.md create mode 100644 package/luci/jsdoc.conf.json create mode 100644 package/luci/libs/luci-lib-base/Makefile create mode 100644 package/luci/libs/luci-lib-base/luasrc/debug.lua create mode 100644 package/luci/libs/luci-lib-base/luasrc/http.lua create mode 100644 package/luci/libs/luci-lib-base/luasrc/http.luadoc create mode 100644 package/luci/libs/luci-lib-base/luasrc/ltn12.lua create mode 100644 package/luci/libs/luci-lib-base/luasrc/util.lua create mode 100644 package/luci/libs/luci-lib-base/luasrc/util.luadoc create mode 100644 package/luci/libs/luci-lib-httpclient/Makefile create mode 100644 package/luci/libs/luci-lib-httpclient/luasrc/httpclient.lua create mode 100644 package/luci/libs/luci-lib-httpclient/luasrc/httpclient/receiver.lua create mode 100644 package/luci/libs/luci-lib-httpprotoutils/Makefile create mode 100644 package/luci/libs/luci-lib-httpprotoutils/luasrc/http/conditionals.lua create mode 100644 package/luci/libs/luci-lib-httpprotoutils/luasrc/http/conditionals.luadoc create mode 100644 package/luci/libs/luci-lib-httpprotoutils/luasrc/http/date.lua create mode 100644 package/luci/libs/luci-lib-httpprotoutils/luasrc/http/date.luadoc create mode 100644 package/luci/libs/luci-lib-httpprotoutils/luasrc/http/mime.lua create mode 100644 package/luci/libs/luci-lib-httpprotoutils/luasrc/http/mime.luadoc create mode 100644 package/luci/libs/luci-lib-ip/Makefile create mode 100644 package/luci/libs/luci-lib-ip/src/Makefile create mode 100644 package/luci/libs/luci-lib-ip/src/ip.c create mode 100644 package/luci/libs/luci-lib-ip/src/ip.luadoc create mode 100644 package/luci/libs/luci-lib-ipkg/Makefile create mode 100644 package/luci/libs/luci-lib-ipkg/luasrc/model/ipkg.lua create mode 100644 package/luci/libs/luci-lib-ipkg/luasrc/model/ipkg.luadoc create mode 100644 package/luci/libs/luci-lib-iptparser/Makefile create mode 100644 package/luci/libs/luci-lib-iptparser/luasrc/sys/iptparser.lua create mode 100644 package/luci/libs/luci-lib-iptparser/luasrc/sys/iptparser.luadoc create mode 100644 package/luci/libs/luci-lib-json/Makefile create mode 100644 package/luci/libs/luci-lib-json/luasrc/json.lua create mode 100644 package/luci/libs/luci-lib-json/luasrc/json.luadoc create mode 100644 package/luci/libs/luci-lib-jsonc/Makefile create mode 100644 package/luci/libs/luci-lib-jsonc/src/Makefile create mode 100644 package/luci/libs/luci-lib-jsonc/src/jsonc.c create mode 100644 package/luci/libs/luci-lib-jsonc/src/jsonc.luadoc create mode 100644 package/luci/libs/luci-lib-nixio/.gitignore create mode 100644 package/luci/libs/luci-lib-nixio/LICENSE create mode 100644 package/luci/libs/luci-lib-nixio/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/NOTICE create mode 100644 package/luci/libs/luci-lib-nixio/README create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/README create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/Config.in create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/README create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/csharp/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/csharp/axTLS.cs create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/bindings/generate_SWIG_interface.pl create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/bindings/generate_interface.pl create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/java/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/java/SSL.java create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/java/SSLCTX.java create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/java/SSLClient.java create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/java/SSLReadHolder.java create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/java/SSLServer.java create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/java/SSLUtil.java create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/lua/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/perl/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/vbnet/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/bindings/vbnet/axTLSvb.vb create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/.config create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/Config.in create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/config/JMeter.jmx create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/Rules.mak create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/config/axhttpd.aip create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/axtls.RES create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/axtls.rc create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/config.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/linuxconfig create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/makefile.conf create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/makefile.dotnet.conf create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/makefile.java.conf create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/makefile.post create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/Kconfig-language.txt create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/conf.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/confdata.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/expr.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/expr.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lex.zconf.c_shipped create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lkc.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lkc_proto.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/BIG.FAT.WARNING create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/checklist.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/colors.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/dialog.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/inputbox.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/menubox.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/msgbox.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/textbox.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/util.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/lxdialog/yesno.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/mconf.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/menu.c create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/mkconfigs create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/symbol.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/util.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/zconf.l create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/zconf.tab.c_shipped create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/zconf.tab.h_shipped create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/scripts/config/zconf.y create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/config/win32config create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/aes.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/bigint.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/bigint.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/bigint_impl.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/crypto.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/crypto_misc.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/hmac.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/md2.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/md5.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/rc4.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/rsa.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/crypto/sha1.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/docsrc/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/docsrc/axTLS.dox create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/docsrc/doco_footer.html create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/docsrc/images/axolotl.jpg create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/docsrc/images/tsbasbw.gif create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/httpd/Config.in create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/httpd/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/httpd/axhttp.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/httpd/axhttpd.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/httpd/htpasswd.c create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/httpd/kepler-1.1-snapshot-20070521-1825.tar.gz create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/httpd/kepler.patch create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/httpd/proc.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/httpd/tdate_parse.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/Config.in create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/c/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/c/axssl.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/csharp/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/csharp/axssl.cs create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/java/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/java/axssl.java create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/java/manifest.mf create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/lua/Makefile create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/samples/lua/axssl.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/perl/Makefile create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/samples/perl/axssl.pl create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/vbnet/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/samples/vbnet/axssl.vb create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/BigIntConfig.in create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/Config.in create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/asn1.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/cert.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/crypto_misc.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/gen_cert.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/loader.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/openssl.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/os_port.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/os_port.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/p12.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/private_key.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/ssl.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.ca_key.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.ca_x509.cer create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.ca_x509.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.device_key create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.device_key.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.encrypted.p8 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.encrypted_pem.p8 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_1024 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_1024.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_2048 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_2048.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_4096 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_4096.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_512 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_512.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_aes128.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.key_aes256.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.noname.p12 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.unencrypted.p8 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.unencrypted_pem.p8 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.withCA.p12 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.withoutCA.p12 create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_1024.cer create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_1024.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_2048.cer create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_2048.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_4096.cer create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_4096.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_512.cer create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_512.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_aes128.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_aes256.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_bad_after.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_bad_before.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_device.cer create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/axTLS.x509_device.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/datatest.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/datatest.c.old create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/deutsche_telecom.x509_ca create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/equifax.x509_ca create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/gnutls.cer create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/header_issue.dat create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/killopenssl.sh create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/make_certs.sh create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/microsoft.x509_ca create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/microsoft.x509_ca.pem create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/ms_iis.cer create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/perf_bigint.c create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/socgen.cer create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/ssltest.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/ssltest.c.bak create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/test_axssl.sh create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/thawte.x509_ca create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/verisign.x509_ca create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/verisign.x509_ca.pem create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/verisign.x509_my_cert create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/test/verisign.x509_my_cert.pem create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/ssl/tls1.c create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/ssl/tls1.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/tls1_clnt.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/tls1_svr.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/version.h create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/ssl/x509.c create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/bin/.htaccess create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/favicon.ico create mode 100755 package/luci/libs/luci-lib-nixio/axTLS/www/index.html create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/download.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/env.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/overview.lp create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/prepara_sql2.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_conc.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_cookies.lp create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_cookies.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_err.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_fs.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_htk.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_lib.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_main.html create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_main.lp create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_main.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_session.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_sql.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_sql2.lua create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/lua/test_variables.lp create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/test_dir/bin/.htaccess create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/test_dir/no_http/.htaccess create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/test_dir/no_http/.htpasswd create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/test_dir/no_http/index.html create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/test_dir/no_ssl/.htaccess create mode 100644 package/luci/libs/luci-lib-nixio/axTLS/www/test_dir/no_ssl/index.html create mode 100644 package/luci/libs/luci-lib-nixio/axtls-config/.config create mode 100644 package/luci/libs/luci-lib-nixio/axtls-config/config.h create mode 100644 package/luci/libs/luci-lib-nixio/axtls-root/etc/nixio/rsa_main.der create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/CHANGELOG.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/README.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.CryptoHash.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.File.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.Socket.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.TLSContext.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.TLSSocket.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.UnifiedIO.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.bin.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.bit.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.crypto.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.fs.lua create mode 100644 package/luci/libs/luci-lib-nixio/docsrc/nixio.lua create mode 100644 package/luci/libs/luci-lib-nixio/nixio-0.3-1.rockspec create mode 100644 package/luci/libs/luci-lib-nixio/root/lib/upgrade/luci-add-conffiles.sh create mode 100644 package/luci/libs/luci-lib-nixio/root/usr/lib/lua/nixio/fs.lua create mode 100644 package/luci/libs/luci-lib-nixio/root/usr/lib/lua/nixio/util.lua create mode 100644 package/luci/libs/luci-lib-nixio/src/Makefile create mode 100644 package/luci/libs/luci-lib-nixio/src/address.c create mode 100644 package/luci/libs/luci-lib-nixio/src/axtls-compat.c create mode 100644 package/luci/libs/luci-lib-nixio/src/axtls-compat.h create mode 100644 package/luci/libs/luci-lib-nixio/src/binary.c create mode 100644 package/luci/libs/luci-lib-nixio/src/bind.c create mode 100644 package/luci/libs/luci-lib-nixio/src/bit.c create mode 100644 package/luci/libs/luci-lib-nixio/src/cyassl-compat.c create mode 100644 package/luci/libs/luci-lib-nixio/src/cyassl-compat.h create mode 100644 package/luci/libs/luci-lib-nixio/src/file.c create mode 100644 package/luci/libs/luci-lib-nixio/src/fs.c create mode 100644 package/luci/libs/luci-lib-nixio/src/io.c create mode 100644 package/luci/libs/luci-lib-nixio/src/mingw-compat.c create mode 100644 package/luci/libs/luci-lib-nixio/src/mingw-compat.h create mode 100644 package/luci/libs/luci-lib-nixio/src/nixio-tls.h create mode 100644 package/luci/libs/luci-lib-nixio/src/nixio.c create mode 100644 package/luci/libs/luci-lib-nixio/src/nixio.h create mode 100644 package/luci/libs/luci-lib-nixio/src/poll.c create mode 100644 package/luci/libs/luci-lib-nixio/src/process.c create mode 100644 package/luci/libs/luci-lib-nixio/src/protoent.c create mode 100644 package/luci/libs/luci-lib-nixio/src/socket.c create mode 100644 package/luci/libs/luci-lib-nixio/src/sockopt.c create mode 100644 package/luci/libs/luci-lib-nixio/src/splice.c create mode 100644 package/luci/libs/luci-lib-nixio/src/syslog.c create mode 100644 package/luci/libs/luci-lib-nixio/src/tls-context.c create mode 100644 package/luci/libs/luci-lib-nixio/src/tls-crypto.c create mode 100644 package/luci/libs/luci-lib-nixio/src/tls-socket.c create mode 100644 package/luci/libs/luci-lib-nixio/src/user.c create mode 100644 package/luci/libs/luci-lib-px5g/Makefile create mode 100644 package/luci/libs/luci-lib-px5g/lua/px5g/util.lua create mode 100755 package/luci/libs/luci-lib-px5g/root/usr/sbin/px5g-genkeys create mode 100644 package/luci/libs/luci-lib-px5g/src/Makefile create mode 100644 package/luci/libs/luci-lib-px5g/src/library/bignum.c create mode 100644 package/luci/libs/luci-lib-px5g/src/library/havege.c create mode 100644 package/luci/libs/luci-lib-px5g/src/library/rsa.c create mode 100644 package/luci/libs/luci-lib-px5g/src/library/sha1.c create mode 100644 package/luci/libs/luci-lib-px5g/src/library/timing.c create mode 100644 package/luci/libs/luci-lib-px5g/src/library/x509write.c create mode 100644 package/luci/libs/luci-lib-px5g/src/polarssl/bignum.h create mode 100644 package/luci/libs/luci-lib-px5g/src/polarssl/bn_mul.h create mode 100644 package/luci/libs/luci-lib-px5g/src/polarssl/config.h create mode 100644 package/luci/libs/luci-lib-px5g/src/polarssl/havege.h create mode 100644 package/luci/libs/luci-lib-px5g/src/polarssl/rsa.h create mode 100644 package/luci/libs/luci-lib-px5g/src/polarssl/sha1.h create mode 100644 package/luci/libs/luci-lib-px5g/src/polarssl/timing.h create mode 100644 package/luci/libs/luci-lib-px5g/src/polarssl/x509.h create mode 100644 package/luci/libs/luci-lib-px5g/src/px5g.c create mode 100644 package/luci/libs/luci-lib-px5g/src/px5g.h create mode 100644 package/luci/libs/luci-lib-rpcc/Makefile create mode 100644 package/luci/libs/luci-lib-rpcc/luasrc/rpcc.lua create mode 100644 package/luci/libs/luci-lib-rpcc/luasrc/rpcc.luadoc create mode 100644 package/luci/libs/luci-lib-rpcc/luasrc/rpcc/ruci.lua create mode 100644 package/luci/libs/luci-lib-rpcc/luasrc/rpcc/ruci.luadoc create mode 100644 package/luci/libs/rpcd-mod-luci/Makefile create mode 100644 package/luci/libs/rpcd-mod-luci/src/CMakeLists.txt create mode 100644 package/luci/libs/rpcd-mod-luci/src/luci.c create mode 100644 package/luci/libs/rpcd-mod-rrdns/Makefile create mode 100644 package/luci/libs/rpcd-mod-rrdns/src/CMakeLists.txt create mode 100644 package/luci/libs/rpcd-mod-rrdns/src/rrdns.c create mode 100644 package/luci/libs/rpcd-mod-rrdns/src/rrdns.h create mode 100644 package/luci/luci.mk create mode 100644 package/luci/modules/luci-base/Makefile create mode 100755 package/luci/modules/luci-base/htdocs/cgi-bin/luci create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/cbi.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/cbi/file.svg create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/cbi/folder.svg create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/cbi/link.svg create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/firewall.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/form.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/fs.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/alias.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/alias_disabled.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/bridge.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/bridge_disabled.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/ethernet.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/ethernet_disabled.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/loading.gif create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/port_down.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/port_up.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/signal-0-25.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/signal-0.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/signal-25-50.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/signal-50-75.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/signal-75-100.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/signal-none.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/switch.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/switch_disabled.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/tunnel.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/tunnel_disabled.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/vlan.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/vlan_disabled.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/wifi.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/icons/wifi_disabled.png create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/luci.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/network.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/promis.min.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/protocol/none.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/protocol/static.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/rpc.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/tools/prng.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/uci.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/ui.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/validation.js create mode 100644 package/luci/modules/luci-base/htdocs/luci-static/resources/xhr.js create mode 100644 package/luci/modules/luci-base/luasrc/cacheloader.lua create mode 100644 package/luci/modules/luci-base/luasrc/ccache.lua create mode 100644 package/luci/modules/luci-base/luasrc/config.lua create mode 100644 package/luci/modules/luci-base/luasrc/controller/admin/index.lua create mode 100644 package/luci/modules/luci-base/luasrc/controller/admin/uci.lua create mode 100644 package/luci/modules/luci-base/luasrc/dispatcher.lua create mode 100644 package/luci/modules/luci-base/luasrc/dispatcher.luadoc create mode 100644 package/luci/modules/luci-base/luasrc/i18n.lua create mode 100644 package/luci/modules/luci-base/luasrc/i18n.luadoc create mode 100644 package/luci/modules/luci-base/luasrc/model/uci.lua create mode 100644 package/luci/modules/luci-base/luasrc/model/uci.luadoc create mode 100644 package/luci/modules/luci-base/luasrc/sgi/cgi.lua create mode 100644 package/luci/modules/luci-base/luasrc/sgi/uhttpd.lua create mode 100644 package/luci/modules/luci-base/luasrc/store.lua create mode 100644 package/luci/modules/luci-base/luasrc/sys.lua create mode 100644 package/luci/modules/luci-base/luasrc/sys.luadoc create mode 100644 package/luci/modules/luci-base/luasrc/sys/zoneinfo.lua create mode 100644 package/luci/modules/luci-base/luasrc/sys/zoneinfo/tzdata.lua create mode 100644 package/luci/modules/luci-base/luasrc/sys/zoneinfo/tzoffset.lua create mode 100644 package/luci/modules/luci-base/luasrc/template.lua create mode 100644 package/luci/modules/luci-base/luasrc/version.lua create mode 100644 package/luci/modules/luci-base/luasrc/view/csrftoken.htm create mode 100644 package/luci/modules/luci-base/luasrc/view/empty_node_placeholder.htm create mode 100644 package/luci/modules/luci-base/luasrc/view/error404.htm create mode 100644 package/luci/modules/luci-base/luasrc/view/error500.htm create mode 100644 package/luci/modules/luci-base/luasrc/view/footer.htm create mode 100644 package/luci/modules/luci-base/luasrc/view/header.htm create mode 100644 package/luci/modules/luci-base/luasrc/view/indexer.htm create mode 100644 package/luci/modules/luci-base/luasrc/view/sysauth.htm create mode 100644 package/luci/modules/luci-base/luasrc/view/view.htm create mode 100644 package/luci/modules/luci-base/luasrc/xml.lua create mode 100644 package/luci/modules/luci-base/luasrc/xml.luadoc create mode 100644 package/luci/modules/luci-base/po/ar/base.po create mode 100644 package/luci/modules/luci-base/po/bg/base.po create mode 100644 package/luci/modules/luci-base/po/bn_BD/base.po create mode 100644 package/luci/modules/luci-base/po/ca/base.po create mode 100644 package/luci/modules/luci-base/po/cs/base.po create mode 100644 package/luci/modules/luci-base/po/da/base.po create mode 100644 package/luci/modules/luci-base/po/de/base.po create mode 100644 package/luci/modules/luci-base/po/el/base.po create mode 100644 package/luci/modules/luci-base/po/en/base.po create mode 100644 package/luci/modules/luci-base/po/es/base.po create mode 100644 package/luci/modules/luci-base/po/fi/base.po create mode 100644 package/luci/modules/luci-base/po/fr/base.po create mode 100644 package/luci/modules/luci-base/po/he/base.po create mode 100644 package/luci/modules/luci-base/po/hi/base.po create mode 100644 package/luci/modules/luci-base/po/hu/base.po create mode 100644 package/luci/modules/luci-base/po/it/base.po create mode 100644 package/luci/modules/luci-base/po/ja/base.po create mode 100644 package/luci/modules/luci-base/po/ko/base.po create mode 100644 package/luci/modules/luci-base/po/mr/base.po create mode 100644 package/luci/modules/luci-base/po/ms/base.po create mode 100644 package/luci/modules/luci-base/po/nb_NO/base.po create mode 100644 package/luci/modules/luci-base/po/nl/base.po create mode 100644 package/luci/modules/luci-base/po/pl/base.po create mode 100644 package/luci/modules/luci-base/po/pt/base.po create mode 100644 package/luci/modules/luci-base/po/pt_BR/base.po create mode 100644 package/luci/modules/luci-base/po/ro/base.po create mode 100644 package/luci/modules/luci-base/po/ru/base.po create mode 100644 package/luci/modules/luci-base/po/sk/base.po create mode 100644 package/luci/modules/luci-base/po/sv/base.po create mode 100644 package/luci/modules/luci-base/po/templates/base.pot create mode 100644 package/luci/modules/luci-base/po/tr/base.po create mode 100644 package/luci/modules/luci-base/po/uk/base.po create mode 100644 package/luci/modules/luci-base/po/vi/base.po create mode 100644 package/luci/modules/luci-base/po/zh_Hans/base.po create mode 100644 package/luci/modules/luci-base/po/zh_Hant/base.po create mode 100644 package/luci/modules/luci-base/root/etc/config/luci create mode 100644 package/luci/modules/luci-base/root/etc/config/ucitrack create mode 100755 package/luci/modules/luci-base/root/etc/init.d/ucitrack create mode 100644 package/luci/modules/luci-base/root/etc/luci-uploads/.placeholder create mode 100755 package/luci/modules/luci-base/root/sbin/luci-reload create mode 100755 package/luci/modules/luci-base/root/usr/libexec/rpcd/luci create mode 100644 package/luci/modules/luci-base/root/usr/share/acl.d/luci-base.json create mode 100644 package/luci/modules/luci-base/root/usr/share/luci/menu.d/luci-base.json create mode 100644 package/luci/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json create mode 100644 package/luci/modules/luci-base/root/www/index.html create mode 100644 package/luci/modules/luci-base/src/Makefile create mode 100644 package/luci/modules/luci-base/src/contrib/lemon.c create mode 100644 package/luci/modules/luci-base/src/contrib/lempar.c create mode 100755 package/luci/modules/luci-base/src/mkversion.sh create mode 100644 package/luci/modules/luci-base/src/plural_formula.y create mode 100644 package/luci/modules/luci-base/src/po2lmo.c create mode 100644 package/luci/modules/luci-base/src/template_lmo.c create mode 100644 package/luci/modules/luci-base/src/template_lmo.h create mode 100644 package/luci/modules/luci-base/src/template_lualib.c create mode 100644 package/luci/modules/luci-base/src/template_lualib.h create mode 100644 package/luci/modules/luci-base/src/template_parser.c create mode 100644 package/luci/modules/luci-base/src/template_parser.h create mode 100644 package/luci/modules/luci-base/src/template_utils.c create mode 100644 package/luci/modules/luci-base/src/template_utils.h create mode 100644 package/luci/modules/luci-compat/Makefile create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/add.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/apply.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/arrow.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/down.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/download.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/edit.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/fieldadd.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/file.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/find.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/folder.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/help.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/key.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/link.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/reload.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/remove.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/reset.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/save.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/up.gif create mode 100644 package/luci/modules/luci-compat/htdocs/luci-static/resources/cbi/user.gif create mode 100644 package/luci/modules/luci-compat/luasrc/cbi.lua create mode 100644 package/luci/modules/luci-compat/luasrc/cbi/datatypes.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/firewall.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_3g.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_4x6.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_6x4.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_dhcpv6.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_hnet.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_ipip.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_modemmanager.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_ncm.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_openconnect.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_ppp.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_pppossh.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_qmi.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_relay.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_vpnc.lua create mode 100644 package/luci/modules/luci-compat/luasrc/model/network/proto_wireguard.lua create mode 100644 package/luci/modules/luci-compat/luasrc/tools/webadmin.lua create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/browser.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/button.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/cell_valuefooter.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/cell_valueheader.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/compound.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/delegator.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/dropdown.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/dvalue.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/dynlist.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/error.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/firewall_zonelist.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/footer.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/full_valuefooter.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/full_valueheader.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/fvalue.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/header.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/ipaddr.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/lvalue.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/map.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/mvalue.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/network_ifacelist.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/network_netinfo.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/network_netlist.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/nsection.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/nullsection.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/simpleform.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/tabcontainer.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/tblsection.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/tsection.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/tvalue.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/ucisection.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/upload.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/value.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/valuefooter.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/valueheader.htm create mode 100644 package/luci/modules/luci-compat/luasrc/view/cbi/wireless_modefreq.htm create mode 100644 package/luci/modules/luci-compat/root/usr/share/rpcd/acl.d/luci-compat.json create mode 100644 package/luci/modules/luci-mod-admin-full/Makefile create mode 100644 package/luci/modules/luci-mod-admin-mini/Makefile create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/controller/mini/index.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/controller/mini/network.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/controller/mini/system.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/dhcp.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/index.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/luci.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/network.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/passwd.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/system.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/view/mini/applyreboot.htm create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/view/mini/backup.htm create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/view/mini/index.htm create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/view/mini/reboot.htm create mode 100644 package/luci/modules/luci-mod-admin-mini/luasrc/view/mini/upgrade.htm create mode 100644 package/luci/modules/luci-mod-dashboard/Makefile create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/css/custom.css create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/icons/devices.svg create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/icons/internet.svg create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/icons/not-internet.svg create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/icons/router.svg create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/icons/wireless.svg create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/10_router.js create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/20_lan.js create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/include/30_wifi.js create mode 100644 package/luci/modules/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/index.js create mode 100644 package/luci/modules/luci-mod-dashboard/po/ar/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/bg/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/bn_BD/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/ca/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/cs/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/da/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/de/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/el/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/en/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/es/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/fi/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/fr/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/he/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/hi/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/hu/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/it/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/ja/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/ko/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/mr/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/ms/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/nb_NO/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/nl/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/pl/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/pt/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/pt_BR/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/ro/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/ru/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/sk/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/sv/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/templates/dashboard.pot create mode 100644 package/luci/modules/luci-mod-dashboard/po/tr/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/uk/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/vi/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/zh_Hans/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/po/zh_Hant/dashboard.po create mode 100644 package/luci/modules/luci-mod-dashboard/root/usr/share/luci/menu.d/luci-mod-dashboard.json create mode 100644 package/luci/modules/luci-mod-dashboard/root/usr/share/rpcd/acl.d/luci-mod-dashboard.json create mode 100644 package/luci/modules/luci-mod-network/Makefile create mode 100644 package/luci/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js create mode 100644 package/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js create mode 100644 package/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js create mode 100644 package/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js create mode 100644 package/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js create mode 100644 package/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/switch.js create mode 100644 package/luci/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js create mode 100755 package/luci/modules/luci-mod-network/root/etc/uci-defaults/50_luci-mod-admin-full create mode 100755 package/luci/modules/luci-mod-network/root/usr/libexec/luci-peeraddr create mode 100644 package/luci/modules/luci-mod-network/root/usr/share/luci/menu.d/luci-mod-network.json create mode 100644 package/luci/modules/luci-mod-network/root/usr/share/rpcd/acl.d/luci-mod-network.json create mode 100644 package/luci/modules/luci-mod-rpc/Makefile create mode 100644 package/luci/modules/luci-mod-rpc/luasrc/controller/rpc.lua create mode 100644 package/luci/modules/luci-mod-rpc/luasrc/jsonrpc.lua create mode 100644 package/luci/modules/luci-mod-rpc/luasrc/jsonrpcbind/uci.lua create mode 100644 package/luci/modules/luci-mod-status/Makefile create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/svg/bandwidth.svg create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/svg/channel_analysis.svg create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/svg/connections.svg create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/svg/load.svg create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/svg/wifirate.svg create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/svg/wireless.svg create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/bandwidth.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/channel_analysis.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/connections.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/10_system.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/20_memory.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/25_storage.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/30_network.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/50_dsl.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/index.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/iptables.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/load.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/routes.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/syslog.js create mode 100644 package/luci/modules/luci-mod-status/htdocs/luci-static/resources/view/status/wireless.js create mode 100644 package/luci/modules/luci-mod-status/luasrc/view/admin_status/index.htm create mode 100644 package/luci/modules/luci-mod-status/root/usr/share/luci/menu.d/luci-mod-status.json create mode 100644 package/luci/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json create mode 100644 package/luci/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json create mode 100644 package/luci/modules/luci-mod-status/src/Makefile create mode 100644 package/luci/modules/luci-mod-status/src/luci-bwc.c create mode 100644 package/luci/modules/luci-mod-system/Makefile create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/crontab.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/dropbear.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/heartbeat.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/password.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/reboot.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/system.js create mode 100644 package/luci/modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js create mode 100644 package/luci/modules/luci-mod-system/luasrc/model/cbi/admin_system/backupfiles.lua create mode 100644 package/luci/modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json create mode 100644 package/luci/modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json create mode 100644 package/luci/package.json create mode 100644 package/luci/protocols/luci-proto-3g/Makefile create mode 100644 package/luci/protocols/luci-proto-3g/htdocs/luci-static/resources/protocol/3g.js create mode 100644 package/luci/protocols/luci-proto-bonding/Makefile create mode 100644 package/luci/protocols/luci-proto-bonding/htdocs/luci-static/resources/protocol/bonding.js create mode 100644 package/luci/protocols/luci-proto-gre/Makefile create mode 100644 package/luci/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js create mode 100644 package/luci/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js create mode 100644 package/luci/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js create mode 100644 package/luci/protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js create mode 100644 package/luci/protocols/luci-proto-hnet/Makefile create mode 100644 package/luci/protocols/luci-proto-hnet/htdocs/luci-static/resources/protocol/hnet.js create mode 100644 package/luci/protocols/luci-proto-ipip/Makefile create mode 100644 package/luci/protocols/luci-proto-ipip/htdocs/luci-static/resources/protocol/ipip.js create mode 100644 package/luci/protocols/luci-proto-ipv6/Makefile create mode 100644 package/luci/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/464xlat.js create mode 100644 package/luci/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/6in4.js create mode 100644 package/luci/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/6rd.js create mode 100644 package/luci/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/6to4.js create mode 100644 package/luci/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js create mode 100644 package/luci/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dslite.js create mode 100644 package/luci/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js create mode 100644 package/luci/protocols/luci-proto-modemmanager/Makefile create mode 100644 package/luci/protocols/luci-proto-modemmanager/htdocs/luci-static/resources/protocol/modemmanager.js create mode 100644 package/luci/protocols/luci-proto-modemmanager/root/usr/share/rpcd/acl.d/luci-proto-modemmanager.json create mode 100644 package/luci/protocols/luci-proto-ncm/Makefile create mode 100644 package/luci/protocols/luci-proto-ncm/htdocs/luci-static/resources/protocol/ncm.js create mode 100644 package/luci/protocols/luci-proto-ppp/Makefile create mode 100644 package/luci/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js create mode 100644 package/luci/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/ppp.js create mode 100644 package/luci/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pppoa.js create mode 100644 package/luci/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pppoe.js create mode 100644 package/luci/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pptp.js create mode 100644 package/luci/protocols/luci-proto-pppossh/Makefile create mode 100644 package/luci/protocols/luci-proto-pppossh/htdocs/luci-static/resources/protocol/pppossh.js create mode 100644 package/luci/protocols/luci-proto-qmi/Makefile create mode 100644 package/luci/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js create mode 100644 package/luci/protocols/luci-proto-relay/Makefile create mode 100644 package/luci/protocols/luci-proto-relay/htdocs/luci-static/resources/protocol/relay.js create mode 100644 package/luci/protocols/luci-proto-sstp/Makefile create mode 100644 package/luci/protocols/luci-proto-sstp/htdocs/luci-static/resources/protocol/sstp.js create mode 100644 package/luci/protocols/luci-proto-vxlan/Makefile create mode 100644 package/luci/protocols/luci-proto-vxlan/htdocs/luci-static/resources/protocol/vxlan.js create mode 100644 package/luci/protocols/luci-proto-vxlan/htdocs/luci-static/resources/protocol/vxlan6.js create mode 100644 package/luci/protocols/luci-proto-wireguard/Makefile create mode 100644 package/luci/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js create mode 100755 package/luci/protocols/luci-proto-wireguard/root/usr/libexec/rpcd/luci.wireguard create mode 100644 package/luci/protocols/luci-proto-wireguard/root/usr/share/rpcd/acl.d/luci-wireguard.json create mode 100644 package/luci/protocols/luci-proto-xfrm/Makefile create mode 100644 package/luci/protocols/luci-proto-xfrm/htdocs/luci-static/resources/protocol/xfrm.js create mode 100644 package/luci/themes/luci-theme-bootstrap/Makefile create mode 120000 package/luci/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap-dark create mode 120000 package/luci/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap-light create mode 100644 package/luci/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/cascade.css create mode 100644 package/luci/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/favicon.png create mode 100644 package/luci/themes/luci-theme-bootstrap/htdocs/luci-static/bootstrap/mobile.css create mode 100644 package/luci/themes/luci-theme-bootstrap/htdocs/luci-static/resources/menu-bootstrap.js create mode 100644 package/luci/themes/luci-theme-bootstrap/htdocs/luci-static/resources/view/bootstrap/sysauth.js create mode 120000 package/luci/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap-dark create mode 120000 package/luci/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap-light create mode 100644 package/luci/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/footer.htm create mode 100644 package/luci/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/header.htm create mode 100644 package/luci/themes/luci-theme-bootstrap/luasrc/view/themes/bootstrap/sysauth.htm create mode 100755 package/luci/themes/luci-theme-bootstrap/root/etc/uci-defaults/30_luci-theme-bootstrap create mode 100644 package/luci/themes/luci-theme-material/Makefile create mode 100644 package/luci/themes/luci-theme-material/htdocs/luci-static/material/brand.png create mode 100644 package/luci/themes/luci-theme-material/htdocs/luci-static/material/cascade.css create mode 100644 package/luci/themes/luci-theme-material/htdocs/luci-static/material/custom.css create mode 100644 package/luci/themes/luci-theme-material/htdocs/luci-static/material/favicon.ico create mode 100644 package/luci/themes/luci-theme-material/htdocs/luci-static/material/icons/arrow.svg create mode 100644 package/luci/themes/luci-theme-material/htdocs/luci-static/material/icons/logout.svg create mode 100644 package/luci/themes/luci-theme-material/htdocs/luci-static/material/icons/menu.svg create mode 100644 package/luci/themes/luci-theme-material/htdocs/luci-static/material/icons/spinner.svg create mode 100644 package/luci/themes/luci-theme-material/htdocs/luci-static/resources/menu-material.js create mode 100644 package/luci/themes/luci-theme-material/luasrc/view/themes/material/footer.htm create mode 100644 package/luci/themes/luci-theme-material/luasrc/view/themes/material/header.htm create mode 100755 package/luci/themes/luci-theme-material/root/etc/uci-defaults/30_luci-theme-material create mode 100644 package/luci/themes/luci-theme-openwrt-2020/Makefile create mode 100644 package/luci/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/GalanoGrotesqueW00-Regular.woff2 create mode 100644 package/luci/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css create mode 100644 package/luci/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.png create mode 100644 package/luci/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/logo.svg create mode 100644 package/luci/themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/spinner.svg create mode 100644 package/luci/themes/luci-theme-openwrt-2020/htdocs/luci-static/resources/menu-openwrt2020.js create mode 100644 package/luci/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/footer.htm create mode 100644 package/luci/themes/luci-theme-openwrt-2020/luasrc/view/themes/openwrt2020/header.htm create mode 100755 package/luci/themes/luci-theme-openwrt-2020/root/etc/uci-defaults/30_luci-theme-openwrt-2020 create mode 100644 package/luci/themes/luci-theme-openwrt/Makefile create mode 100644 package/luci/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css create mode 100644 package/luci/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/tabbg.png create mode 100644 package/luci/themes/luci-theme-openwrt/htdocs/luci-static/resources/menu-openwrt.js create mode 100644 package/luci/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/footer.htm create mode 100644 package/luci/themes/luci-theme-openwrt/luasrc/view/themes/openwrt.org/header.htm create mode 100755 package/luci/themes/luci-theme-openwrt/root/etc/uci-defaults/30_luci-theme-openwrt create mode 100644 package/network/config/firewall/Makefile create mode 100644 package/network/config/firewall/files/firewall.config create mode 100644 package/network/config/firewall/files/firewall.hotplug create mode 100755 package/network/config/firewall/files/firewall.init create mode 100644 package/network/config/firewall/files/firewall.user create mode 100644 package/network/config/firewall4/Makefile create mode 100644 package/network/config/gre/Makefile create mode 100755 package/network/config/gre/files/gre.sh create mode 100644 package/network/config/ipip/Makefile create mode 100755 package/network/config/ipip/files/ipip.sh create mode 100644 package/network/config/netifd/Makefile create mode 100644 package/network/config/netifd/files/etc/hotplug.d/iface/00-netstate create mode 100644 package/network/config/netifd/files/etc/hotplug.d/net/20-smp-packet-steering create mode 100755 package/network/config/netifd/files/etc/init.d/network create mode 100644 package/network/config/netifd/files/etc/uci-defaults/14_migrate-dhcp-release create mode 100644 package/network/config/netifd/files/etc/udhcpc.user create mode 100755 package/network/config/netifd/files/lib/netifd/dhcp.script create mode 100755 package/network/config/netifd/files/lib/netifd/proto/dhcp.sh create mode 100755 package/network/config/netifd/files/lib/network/config.sh create mode 100755 package/network/config/netifd/files/sbin/devstatus create mode 120000 package/network/config/netifd/files/sbin/ifdown create mode 100755 package/network/config/netifd/files/sbin/ifstatus create mode 100755 package/network/config/netifd/files/sbin/ifup create mode 100755 package/network/config/netifd/files/usr/share/udhcpc/default.script create mode 100644 package/network/config/qos-scripts/Makefile create mode 100644 package/network/config/qos-scripts/files/etc/config/qos create mode 100755 package/network/config/qos-scripts/files/etc/hotplug.d/iface/10-qos create mode 100755 package/network/config/qos-scripts/files/etc/init.d/qos create mode 100755 package/network/config/qos-scripts/files/usr/bin/qos-start create mode 100755 package/network/config/qos-scripts/files/usr/bin/qos-stat create mode 100755 package/network/config/qos-scripts/files/usr/bin/qos-stop create mode 100755 package/network/config/qos-scripts/files/usr/lib/qos/generate.sh create mode 100644 package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk create mode 100644 package/network/config/soloscli/Makefile create mode 100644 package/network/config/soloscli/files/etc/hotplug.d/atm/15-solos-init create mode 100644 package/network/config/soloscli/files/etc/uci-defaults/solos create mode 100644 package/network/config/soloscli/files/solos-log-stats create mode 100644 package/network/config/soloscli/patches/001-no-driver.patch create mode 100644 package/network/config/soloscli/patches/002-cflags.patch create mode 100644 package/network/config/swconfig/Makefile create mode 100644 package/network/config/swconfig/files/switch.sh create mode 100644 package/network/config/swconfig/src/Makefile create mode 100644 package/network/config/swconfig/src/cli.c create mode 100644 package/network/config/swconfig/src/swlib.c create mode 100644 package/network/config/swconfig/src/swlib.h create mode 100644 package/network/config/swconfig/src/uci.c create mode 100644 package/network/config/vti/Makefile create mode 100755 package/network/config/vti/files/vti.sh create mode 100644 package/network/config/vxlan/Makefile create mode 100755 package/network/config/vxlan/files/vxlan.sh create mode 100644 package/network/config/xfrm/Makefile create mode 100755 package/network/config/xfrm/files/xfrm.sh create mode 100644 package/network/ipv6/464xlat/Makefile create mode 100755 package/network/ipv6/464xlat/files/464xlat.sh create mode 100644 package/network/ipv6/464xlat/src/464xlatcfg.c create mode 100644 package/network/ipv6/464xlat/src/Makefile create mode 100644 package/network/ipv6/6in4/Makefile create mode 100755 package/network/ipv6/6in4/files/6in4.sh create mode 100644 package/network/ipv6/6rd/Makefile create mode 100644 package/network/ipv6/6rd/files/6rd.sh create mode 100644 package/network/ipv6/6rd/src/6rdcalc.c create mode 100644 package/network/ipv6/6rd/src/Makefile create mode 100644 package/network/ipv6/6to4/Makefile create mode 100755 package/network/ipv6/6to4/files/6to4.sh create mode 100644 package/network/ipv6/ds-lite/Makefile create mode 100644 package/network/ipv6/ds-lite/files/dslite.sh create mode 100644 package/network/ipv6/map/Makefile create mode 100755 package/network/ipv6/map/files/map.sh create mode 100644 package/network/ipv6/map/src/CMakeLists.txt create mode 100644 package/network/ipv6/map/src/mapcalc.c create mode 100644 package/network/ipv6/odhcp6c/Makefile create mode 100755 package/network/ipv6/odhcp6c/files/dhcpv6.script create mode 100755 package/network/ipv6/odhcp6c/files/dhcpv6.sh create mode 100644 package/network/ipv6/odhcp6c/files/odhcp6c.user create mode 100644 package/network/ipv6/thc-ipv6/Makefile create mode 100644 package/network/ipv6/thc-ipv6/patches/000-cflags_override.patch create mode 100644 package/network/ipv6/thc-ipv6/patches/100-no-ssl.patch create mode 100644 package/network/services/cgi-io/Makefile create mode 100644 package/network/services/dnsmasq/Makefile create mode 100755 package/network/services/dnsmasq/files/50-dnsmasq-migrate-resolv-conf-auto.sh create mode 100755 package/network/services/dnsmasq/files/dhcp-script.sh create mode 100644 package/network/services/dnsmasq/files/dhcp.conf create mode 100644 package/network/services/dnsmasq/files/dhcpbogushostname.conf create mode 100644 package/network/services/dnsmasq/files/dnsmasq.conf create mode 100755 package/network/services/dnsmasq/files/dnsmasq.init create mode 100644 package/network/services/dnsmasq/files/dnsmasq_acl.json create mode 100644 package/network/services/dnsmasq/files/dnsmasqsec.hotplug create mode 100644 package/network/services/dnsmasq/files/rfc6761.conf create mode 100644 package/network/services/dnsmasq/patches/001-CVE-2022-0934-Fix-write-after-free-error-in-DHCPv6-code.patch create mode 100644 package/network/services/dnsmasq/patches/100-remove-old-runtime-kernel-support.patch create mode 100644 package/network/services/dnsmasq/patches/200-ubus_dns.patch create mode 100644 package/network/services/dropbear/Config.in create mode 100644 package/network/services/dropbear/Makefile create mode 100644 package/network/services/dropbear/files/dropbear.config create mode 100755 package/network/services/dropbear/files/dropbear.failsafe create mode 100755 package/network/services/dropbear/files/dropbear.init create mode 100644 package/network/services/dropbear/patches/001-fix-MAX_UNAUTH_CLIENTS-regression.patch create mode 100644 package/network/services/dropbear/patches/100-pubkey_path.patch create mode 100644 package/network/services/dropbear/patches/110-change_user.patch create mode 100644 package/network/services/dropbear/patches/130-ssh_ignore_x_args.patch create mode 100644 package/network/services/dropbear/patches/140-disable_assert.patch create mode 100644 package/network/services/dropbear/patches/160-lto-jobserver.patch create mode 100644 package/network/services/dropbear/patches/600-allow-blank-root-password.patch create mode 100644 package/network/services/dropbear/patches/900-configure-hardening.patch create mode 100644 package/network/services/dropbear/patches/901-bundled-libs-cflags.patch create mode 100644 package/network/services/dropbear/patches/910-signkey-fix-use-of-rsa-sha2-256-pubkeys.patch create mode 100644 package/network/services/ead/Makefile create mode 100644 package/network/services/ead/src/Makefile create mode 100644 package/network/services/ead/src/aes.c create mode 100644 package/network/services/ead/src/ead-client.c create mode 100644 package/network/services/ead/src/ead-crypt.c create mode 100644 package/network/services/ead/src/ead-crypt.h create mode 100644 package/network/services/ead/src/ead-pcap.h create mode 100644 package/network/services/ead/src/ead.c create mode 100644 package/network/services/ead/src/ead.h create mode 100644 package/network/services/ead/src/filter.c create mode 100644 package/network/services/ead/src/libbridge.h create mode 100644 package/network/services/ead/src/libbridge_init.c create mode 100644 package/network/services/ead/src/libbridge_private.h create mode 100644 package/network/services/ead/src/list.h create mode 100644 package/network/services/ead/src/passwd create mode 100644 package/network/services/ead/src/pfc.c create mode 100644 package/network/services/ead/src/pw_encrypt_md5.c create mode 100644 package/network/services/ead/src/sha1.c create mode 100644 package/network/services/ead/src/tinysrp/Makefile.am create mode 100644 package/network/services/ead/src/tinysrp/Makefile.in create mode 100644 package/network/services/ead/src/tinysrp/Notes create mode 100644 package/network/services/ead/src/tinysrp/acconfig.h create mode 100644 package/network/services/ead/src/tinysrp/acinclude.m4 create mode 100644 package/network/services/ead/src/tinysrp/aclocal.m4 create mode 100644 package/network/services/ead/src/tinysrp/bn.h create mode 100644 package/network/services/ead/src/tinysrp/bn_add.c create mode 100644 package/network/services/ead/src/tinysrp/bn_asm.c create mode 100644 package/network/services/ead/src/tinysrp/bn_ctx.c create mode 100644 package/network/services/ead/src/tinysrp/bn_div.c create mode 100644 package/network/services/ead/src/tinysrp/bn_exp.c create mode 100644 package/network/services/ead/src/tinysrp/bn_lcl.h create mode 100644 package/network/services/ead/src/tinysrp/bn_lib.c create mode 100644 package/network/services/ead/src/tinysrp/bn_mul.c create mode 100644 package/network/services/ead/src/tinysrp/bn_prime.h create mode 100644 package/network/services/ead/src/tinysrp/bn_shift.c create mode 100644 package/network/services/ead/src/tinysrp/bn_sqr.c create mode 100644 package/network/services/ead/src/tinysrp/bn_word.c create mode 100644 package/network/services/ead/src/tinysrp/clitest.c create mode 100644 package/network/services/ead/src/tinysrp/config.h.in create mode 100755 package/network/services/ead/src/tinysrp/configure create mode 100644 package/network/services/ead/src/tinysrp/configure.in create mode 100755 package/network/services/ead/src/tinysrp/install-sh create mode 100755 package/network/services/ead/src/tinysrp/missing create mode 100755 package/network/services/ead/src/tinysrp/mkinstalldirs create mode 100644 package/network/services/ead/src/tinysrp/srvtest.c create mode 100644 package/network/services/ead/src/tinysrp/stamp-h.in create mode 100644 package/network/services/ead/src/tinysrp/t_client.c create mode 100644 package/network/services/ead/src/tinysrp/t_client.h create mode 100644 package/network/services/ead/src/tinysrp/t_conf.c create mode 100644 package/network/services/ead/src/tinysrp/t_conv.c create mode 100644 package/network/services/ead/src/tinysrp/t_defines.h create mode 100644 package/network/services/ead/src/tinysrp/t_getconf.c create mode 100644 package/network/services/ead/src/tinysrp/t_getpass.c create mode 100644 package/network/services/ead/src/tinysrp/t_math.c create mode 100644 package/network/services/ead/src/tinysrp/t_misc.c create mode 100644 package/network/services/ead/src/tinysrp/t_pw.c create mode 100644 package/network/services/ead/src/tinysrp/t_pwd.h create mode 100644 package/network/services/ead/src/tinysrp/t_read.c create mode 100644 package/network/services/ead/src/tinysrp/t_read.h create mode 100644 package/network/services/ead/src/tinysrp/t_server.c create mode 100644 package/network/services/ead/src/tinysrp/t_server.h create mode 100644 package/network/services/ead/src/tinysrp/t_sha.c create mode 100644 package/network/services/ead/src/tinysrp/t_sha.h create mode 100644 package/network/services/ead/src/tinysrp/t_truerand.c create mode 100644 package/network/services/ead/src/tinysrp/tconf.c create mode 100644 package/network/services/ead/src/tinysrp/tinysrp.c create mode 100644 package/network/services/ead/src/tinysrp/tinysrp.h create mode 100644 package/network/services/ead/src/tinysrp/tpasswd create mode 100644 package/network/services/ead/src/tinysrp/tphrase.c create mode 100644 package/network/services/hostapd/Config.in create mode 100644 package/network/services/hostapd/Makefile create mode 100644 package/network/services/hostapd/files/dhcp-get-server.sh create mode 100644 package/network/services/hostapd/files/hostapd-basic.config create mode 100644 package/network/services/hostapd/files/hostapd-full.config create mode 100644 package/network/services/hostapd/files/hostapd-mini.config create mode 100644 package/network/services/hostapd/files/hostapd.sh create mode 100644 package/network/services/hostapd/files/multicall.c create mode 100644 package/network/services/hostapd/files/wpa_supplicant-basic.config create mode 100644 package/network/services/hostapd/files/wpa_supplicant-full.config create mode 100644 package/network/services/hostapd/files/wpa_supplicant-mini.config create mode 100644 package/network/services/hostapd/files/wpa_supplicant-p2p.config create mode 100644 package/network/services/hostapd/files/wpad.init create mode 100644 package/network/services/hostapd/files/wpad.json create mode 100644 package/network/services/hostapd/files/wpad_acl.json create mode 100644 package/network/services/hostapd/files/wps-hotplug.sh create mode 100644 package/network/services/hostapd/patches/001-wolfssl-init-RNG-with-ECC-key.patch create mode 100644 package/network/services/hostapd/patches/010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch create mode 100644 package/network/services/hostapd/patches/011-mesh-use-deterministic-channel-on-channel-switch.patch create mode 100644 package/network/services/hostapd/patches/021-fix-sta-add-after-previous-connection.patch create mode 100644 package/network/services/hostapd/patches/022-hostapd-fix-use-of-uninitialized-stack-variables.patch create mode 100644 package/network/services/hostapd/patches/023-ndisc_snoop-call-dl_list_del-before-freeing-ipv6-add.patch create mode 100644 package/network/services/hostapd/patches/030-driver_nl80211-rewrite-neigh-code-to-not-depend-on-l.patch create mode 100644 package/network/services/hostapd/patches/040-mesh-allow-processing-authentication-frames-in-block.patch create mode 100644 package/network/services/hostapd/patches/050-build_fix.patch create mode 100644 package/network/services/hostapd/patches/100-daemonize_fix.patch create mode 100644 package/network/services/hostapd/patches/200-multicall.patch create mode 100644 package/network/services/hostapd/patches/300-noscan.patch create mode 100644 package/network/services/hostapd/patches/301-mesh-noscan.patch create mode 100644 package/network/services/hostapd/patches/310-rescan_immediately.patch create mode 100644 package/network/services/hostapd/patches/320-optional_rfkill.patch create mode 100644 package/network/services/hostapd/patches/330-nl80211_fix_set_freq.patch create mode 100644 package/network/services/hostapd/patches/340-reload_freq_change.patch create mode 100644 package/network/services/hostapd/patches/341-mesh-ctrl-iface-channel-switch.patch create mode 100644 package/network/services/hostapd/patches/350-nl80211_del_beacon_bss.patch create mode 100644 package/network/services/hostapd/patches/360-ctrl_iface_reload.patch create mode 100644 package/network/services/hostapd/patches/370-ap_sta_support.patch create mode 100644 package/network/services/hostapd/patches/380-disable_ctrl_iface_mib.patch create mode 100644 package/network/services/hostapd/patches/381-hostapd_cli_UNKNOWN-COMMAND.patch create mode 100644 package/network/services/hostapd/patches/390-wpa_ie_cap_workaround.patch create mode 100644 package/network/services/hostapd/patches/400-wps_single_auth_enc_type.patch create mode 100644 package/network/services/hostapd/patches/410-limit_debug_messages.patch create mode 100644 package/network/services/hostapd/patches/420-indicate-features.patch create mode 100644 package/network/services/hostapd/patches/430-hostapd_cli_ifdef.patch create mode 100644 package/network/services/hostapd/patches/431-wpa_cli_ifdef.patch create mode 100644 package/network/services/hostapd/patches/432-missing-typedef.patch create mode 100644 package/network/services/hostapd/patches/450-scan_wait.patch create mode 100644 package/network/services/hostapd/patches/460-wpa_supplicant-add-new-config-params-to-be-used-with.patch create mode 100644 package/network/services/hostapd/patches/461-driver_nl80211-use-new-parameters-during-ibss-join.patch create mode 100644 package/network/services/hostapd/patches/463-add-mcast_rate-to-11s.patch create mode 100644 package/network/services/hostapd/patches/464-fix-mesh-obss-check.patch create mode 100644 package/network/services/hostapd/patches/470-survey_data_fallback.patch create mode 100644 package/network/services/hostapd/patches/500-lto-jobserver-support.patch create mode 100644 package/network/services/hostapd/patches/590-rrm-wnm-statistics.patch create mode 100644 package/network/services/hostapd/patches/599-wpa_supplicant-fix-warnings.patch create mode 100644 package/network/services/hostapd/patches/600-ubus_support.patch create mode 100644 package/network/services/hostapd/patches/610-hostapd_cli_ujail_permission.patch create mode 100644 package/network/services/hostapd/patches/700-wifi-reload.patch create mode 100644 package/network/services/hostapd/patches/710-vlan_no_bridge.patch create mode 100644 package/network/services/hostapd/patches/711-wds_bridge_force.patch create mode 100644 package/network/services/hostapd/patches/720-iface_max_num_sta.patch create mode 100644 package/network/services/hostapd/patches/730-ft_iface.patch create mode 100644 package/network/services/hostapd/patches/740-snoop_iface.patch create mode 100644 package/network/services/hostapd/patches/750-qos_map_set_without_interworking.patch create mode 100644 package/network/services/hostapd/patches/751-qos_map_ignore_when_unsupported.patch create mode 100644 package/network/services/hostapd/src/src/ap/ubus.c create mode 100644 package/network/services/hostapd/src/src/ap/ubus.h create mode 100644 package/network/services/hostapd/src/src/utils/build_features.h create mode 100644 package/network/services/hostapd/src/wpa_supplicant/ubus.c create mode 100644 package/network/services/hostapd/src/wpa_supplicant/ubus.h create mode 100644 package/network/services/ipset-dns/Makefile create mode 100644 package/network/services/ipset-dns/files/ipset-dns.config create mode 100755 package/network/services/ipset-dns/files/ipset-dns.init create mode 100644 package/network/services/lldpd/Config.in create mode 100644 package/network/services/lldpd/Makefile create mode 100644 package/network/services/lldpd/files/lldpd.config create mode 100644 package/network/services/lldpd/files/lldpd.init create mode 100644 package/network/services/odhcpd/Makefile create mode 100755 package/network/services/odhcpd/files/odhcpd-update create mode 100644 package/network/services/odhcpd/files/odhcpd.defaults create mode 100644 package/network/services/odhcpd/files/odhcpd.init create mode 100644 package/network/services/omcproxy/Makefile create mode 100644 package/network/services/omcproxy/files/omcproxy.config create mode 100644 package/network/services/omcproxy/files/omcproxy.init create mode 100644 package/network/services/p910nd/Makefile create mode 100644 package/network/services/p910nd/files/p910nd.config create mode 100644 package/network/services/p910nd/files/p910nd.hotplug create mode 100644 package/network/services/p910nd/files/p910nd.init create mode 100644 package/network/services/ppp/Makefile create mode 100644 package/network/services/ppp/files/etc/ppp/chap-secrets create mode 100644 package/network/services/ppp/files/etc/ppp/filter create mode 100644 package/network/services/ppp/files/etc/ppp/options create mode 100644 package/network/services/ppp/files/etc/ppp/options.pptp create mode 100644 package/network/services/ppp/files/etc/ppp/radius.conf create mode 100644 package/network/services/ppp/files/etc/ppp/radius/dictionary create mode 100644 package/network/services/ppp/files/etc/ppp/radius/dictionary.asnet create mode 100644 package/network/services/ppp/files/etc/ppp/radius/dictionary.microsoft create mode 100644 package/network/services/ppp/files/etc/ppp/radius/servers create mode 100755 package/network/services/ppp/files/lib/netifd/ppp-down create mode 100755 package/network/services/ppp/files/lib/netifd/ppp-up create mode 100755 package/network/services/ppp/files/lib/netifd/ppp6-up create mode 100755 package/network/services/ppp/files/ppp.sh create mode 100644 package/network/services/ppp/patches/010-use_target_for_configure.patch create mode 100644 package/network/services/ppp/patches/105-debian_demand.patch create mode 100644 package/network/services/ppp/patches/120-debian_ipv6_updown_option.patch create mode 100644 package/network/services/ppp/patches/133-fix_sha1_include.patch create mode 100644 package/network/services/ppp/patches/200-makefile.patch create mode 100644 package/network/services/ppp/patches/201-mppe_mppc_1.1.patch create mode 100644 package/network/services/ppp/patches/203-opt_flags.patch create mode 100644 package/network/services/ppp/patches/204-radius_config.patch create mode 100644 package/network/services/ppp/patches/205-no_exponential_timeout.patch create mode 100644 package/network/services/ppp/patches/207-lcp_mtu_max.patch create mode 100644 package/network/services/ppp/patches/208-fix_status_code.patch create mode 100644 package/network/services/ppp/patches/300-filter-pcap-includes-lib.patch create mode 100644 package/network/services/ppp/patches/310-precompile_filter.patch create mode 100644 package/network/services/ppp/patches/321-multilink_support_custom_iface_names.patch create mode 100644 package/network/services/ppp/patches/330-retain_foreign_default_routes.patch create mode 100644 package/network/services/ppp/patches/340-populate_default_gateway.patch create mode 100644 package/network/services/ppp/patches/400-simplify_kernel_checks.patch create mode 100644 package/network/services/ppp/patches/401-no_record_file.patch create mode 100644 package/network/services/ppp/patches/403-no_wtmp.patch create mode 100644 package/network/services/ppp/patches/404-remove_obsolete_protocol_names.patch create mode 100644 package/network/services/ppp/patches/405-no_multilink_option.patch create mode 100644 package/network/services/ppp/patches/500-add-pptp-plugin.patch create mode 100644 package/network/services/ppp/patches/510-pptp_compile_fix.patch create mode 100644 package/network/services/ppp/patches/511-pptp_cflags.patch create mode 100644 package/network/services/ppp/patches/600-Revert-pppd-Use-openssl-for-the-DES-instead-of-the-l.patch create mode 100644 package/network/services/ppp/patches/610-pppd_compile_fix.patch create mode 100644 package/network/services/ppp/utils/pfc.c create mode 100644 package/network/services/relayd/Makefile create mode 100644 package/network/services/relayd/files/relay.init create mode 100644 package/network/services/sstp-client/Makefile create mode 100644 package/network/services/sstp-client/files/etc/ppp/chap-secrets create mode 100644 package/network/services/sstp-client/files/etc/ppp/peers/peer-sstp-example-nopty.txt create mode 100644 package/network/services/sstp-client/files/etc/ppp/peers/peer-sstp-example.txt create mode 100755 package/network/services/sstp-client/files/lib/netifd/proto/sstp.sh create mode 100644 package/network/services/sstp-client/patches/100-musl-compat.patch create mode 100644 package/network/services/sstp-client/patches/200-openssl-deprecated.patch create mode 100644 package/network/services/uhttpd/Makefile create mode 100644 package/network/services/uhttpd/files/ubus.default create mode 100644 package/network/services/uhttpd/files/uhttpd.config create mode 100755 package/network/services/uhttpd/files/uhttpd.init create mode 100644 package/network/services/umdns/Makefile create mode 100644 package/network/services/umdns/files/umdns.config create mode 100644 package/network/services/umdns/files/umdns.init create mode 100644 package/network/services/umdns/files/umdns.json create mode 100644 package/network/services/ustp/Makefile create mode 100644 package/network/services/ustp/files/ustpd.init create mode 100644 package/network/utils/adb-enablemodem/Makefile create mode 100644 package/network/utils/adb-enablemodem/files/adb-enablemodem create mode 100644 package/network/utils/arptables/Makefile create mode 100644 package/network/utils/bonding/Makefile create mode 100755 package/network/utils/bonding/files/lib/netifd/proto/bonding.sh create mode 100644 package/network/utils/bpftools/Makefile create mode 100644 package/network/utils/bpftools/patches/001-cflags.patch create mode 100644 package/network/utils/bpftools/patches/002-includes.patch create mode 100644 package/network/utils/comgt/Makefile create mode 100644 package/network/utils/comgt/files/3g.chat create mode 100644 package/network/utils/comgt/files/3g.sh create mode 100644 package/network/utils/comgt/files/3g.usb create mode 100644 package/network/utils/comgt/files/directip-stop.gcom create mode 100644 package/network/utils/comgt/files/directip.gcom create mode 100644 package/network/utils/comgt/files/directip.sh create mode 100644 package/network/utils/comgt/files/evdo.chat create mode 100644 package/network/utils/comgt/files/getcardinfo.gcom create mode 100644 package/network/utils/comgt/files/getcarrier.gcom create mode 100644 package/network/utils/comgt/files/getcnum.gcom create mode 100644 package/network/utils/comgt/files/getimsi.gcom create mode 100644 package/network/utils/comgt/files/getstrength.gcom create mode 100644 package/network/utils/comgt/files/ncm.json create mode 100644 package/network/utils/comgt/files/ncm.sh create mode 100644 package/network/utils/comgt/files/runcommand.gcom create mode 100644 package/network/utils/comgt/files/setmode.gcom create mode 100644 package/network/utils/comgt/files/setpin.gcom create mode 100644 package/network/utils/comgt/files/ussd.gcom create mode 100644 package/network/utils/comgt/patches/001-compile_fix.patch create mode 100644 package/network/utils/comgt/patches/002-termios.patch create mode 100644 package/network/utils/comgt/patches/003-no_XCASE.patch create mode 100644 package/network/utils/comgt/patches/004-check_tty.patch create mode 100644 package/network/utils/ebtables/Makefile create mode 100644 package/network/utils/ebtables/patches/100-musl_fix.patch create mode 100644 package/network/utils/ebtables/patches/200-fix-extension-init.patch create mode 100644 package/network/utils/ethtool/Makefile create mode 100644 package/network/utils/iproute2/Makefile create mode 100644 package/network/utils/iproute2/patches/100-configure.patch create mode 100644 package/network/utils/iproute2/patches/110-darwin_fixes.patch create mode 100644 package/network/utils/iproute2/patches/115-add-config-xtlibdir.patch create mode 100644 package/network/utils/iproute2/patches/120-no_arpd_ifstat_rtacct_lnstat.patch create mode 100644 package/network/utils/iproute2/patches/130-no_netem_tipc_dcb_man_vdpa.patch create mode 100644 package/network/utils/iproute2/patches/140-allow_pfifo_fast.patch create mode 100644 package/network/utils/iproute2/patches/140-keep_libmnl_optional.patch create mode 100644 package/network/utils/iproute2/patches/145-keep_libelf_optional.patch create mode 100644 package/network/utils/iproute2/patches/150-keep_libcap_optional.patch create mode 100644 package/network/utils/iproute2/patches/160-libnetlink-pic.patch create mode 100644 package/network/utils/iproute2/patches/170-ip_tiny.patch create mode 100644 package/network/utils/iproute2/patches/175-reduce-dynamic-syms.patch create mode 100644 package/network/utils/iproute2/patches/180-drop_FAILED_POLICY.patch create mode 100644 package/network/utils/iproute2/patches/190-fix-nls-rpath-link.patch create mode 100644 package/network/utils/iproute2/patches/195-build_variant_ip_tc.patch create mode 100644 package/network/utils/iproute2/patches/200-drop_libbsd_dependency.patch create mode 100644 package/network/utils/iproute2/patches/300-selinux-configurable.patch create mode 100644 package/network/utils/ipset/Makefile create mode 100644 package/network/utils/ipset/patches/0001-lib-ipset-fix-printf-warning.patch create mode 100644 package/network/utils/ipset/patches/0002-Fix-IPv6-sets-nftables-translation.patch create mode 100644 package/network/utils/iptables/Makefile create mode 100644 package/network/utils/iptables/patches/001-xtables-Call-init_extensions6-for-static-builds.patch create mode 100644 package/network/utils/iptables/patches/002-xtables-Call-init_extensions_a_b.patch create mode 100644 package/network/utils/iptables/patches/010-add-set-dscpmark-support.patch create mode 100644 package/network/utils/iptables/patches/101-remove-check-already.patch create mode 100644 package/network/utils/iptables/patches/102-iptables-disable-modprobe.patch create mode 100644 package/network/utils/iptables/patches/103-optional-xml.patch create mode 100644 package/network/utils/iptables/patches/200-configurable_builtin.patch create mode 100644 package/network/utils/iptables/patches/600-shared-libext.patch create mode 100644 package/network/utils/iptables/patches/700-disable-legacy-revisions.patch create mode 100644 package/network/utils/iptables/patches/800-flowoffload_target.patch create mode 100644 package/network/utils/iw/Makefile create mode 100644 package/network/utils/iw/patches/001-nl80211_h_sync.patch create mode 100644 package/network/utils/iw/patches/010-Revert-iw-allow-specifying-CFLAGS-LIBS-externally.patch create mode 100644 package/network/utils/iw/patches/120-antenna_gain.patch create mode 100644 package/network/utils/iw/patches/130-survey-bss-rx-time.patch create mode 100644 package/network/utils/iw/patches/200-reduce_size.patch create mode 100644 package/network/utils/iwcap/Makefile create mode 100644 package/network/utils/iwcap/src/iwcap.c create mode 100644 package/network/utils/iwinfo/Makefile create mode 100644 package/network/utils/layerscape/restool/Makefile create mode 100644 package/network/utils/layerscape/restool/patches/remove-manpage.patch create mode 100644 package/network/utils/linux-atm/Makefile create mode 100644 package/network/utils/linux-atm/files/atm.hotplug create mode 100644 package/network/utils/linux-atm/files/br2684-up create mode 100755 package/network/utils/linux-atm/files/br2684ctl create mode 100644 package/network/utils/linux-atm/files/br2684ctl_wrap create mode 100644 package/network/utils/linux-atm/patches/000-debian_16.patch create mode 100644 package/network/utils/linux-atm/patches/200-no_libfl.patch create mode 100644 package/network/utils/linux-atm/patches/300-objcopy_path.patch create mode 100644 package/network/utils/linux-atm/patches/400-portability_fixes.patch create mode 100644 package/network/utils/linux-atm/patches/500-br2684ctl_script.patch create mode 100644 package/network/utils/linux-atm/patches/501-br2684ctl_itfname.patch create mode 100644 package/network/utils/linux-atm/patches/510-remove-LINUX_NETDEVICE-hack.patch create mode 100644 package/network/utils/linux-atm/patches/600-fix-format-errors.patch create mode 100644 package/network/utils/linux-atm/patches/700-musl-include.patch create mode 100644 package/network/utils/linux-atm/patches/800-include_sockios.patch create mode 100644 package/network/utils/ltq-dsl-base/Makefile create mode 100755 package/network/utils/ltq-dsl-base/files/etc/hotplug.d/dsl/led_dsl.sh create mode 100755 package/network/utils/ltq-dsl-base/files/etc/hotplug.d/dsl/pppoa.sh create mode 100755 package/network/utils/ltq-dsl-base/files/sbin/dsl_notify.sh create mode 100644 package/network/utils/modemmanager/Config.in create mode 100644 package/network/utils/modemmanager/Makefile create mode 100644 package/network/utils/modemmanager/README.md create mode 100644 package/network/utils/modemmanager/files/25-modemmanager-net create mode 100644 package/network/utils/modemmanager/files/25-modemmanager-tty create mode 100644 package/network/utils/modemmanager/files/25-modemmanager-usb create mode 100644 package/network/utils/modemmanager/files/25-modemmanager-wwan create mode 100644 package/network/utils/modemmanager/files/modemmanager.common create mode 100755 package/network/utils/modemmanager/files/modemmanager.init create mode 100755 package/network/utils/modemmanager/files/modemmanager.proto create mode 100644 package/network/utils/modemmanager/files/usr/sbin/ModemManager-wrapper create mode 100644 package/network/utils/modemmanager/patches/001-plugins-Fix-port-enums-includes.patch create mode 100644 package/network/utils/modemmanager/patches/002-build-meson-Fix-daemon-enums-dependencies.patch create mode 100644 package/network/utils/net-snmp/Config.in.wut create mode 100644 package/network/utils/net-snmp/Makefile create mode 100644 package/network/utils/net-snmp/files/snmpd.conf create mode 100644 package/network/utils/net-snmp/files/snmpd.init create mode 100644 package/network/utils/net-snmp/files/snmptrapd.init create mode 100644 package/network/utils/net-snmp/patches/000-cross-compile.patch create mode 100644 package/network/utils/net-snmp/patches/010-HOST-MIB-hr_filesys-fix-compile-error.patch create mode 100644 package/network/utils/net-snmp/patches/100-debian-statistics.patch create mode 100644 package/network/utils/net-snmp/patches/110-debian-makefiles.patch create mode 100644 package/network/utils/net-snmp/patches/120-debian-searchdirs.patch create mode 100644 package/network/utils/net-snmp/patches/130-debian-extramibs.patch create mode 100644 package/network/utils/net-snmp/patches/160-no_ldconfig.patch create mode 100644 package/network/utils/net-snmp/patches/170-ldflags.patch create mode 100644 package/network/utils/net-snmp/patches/750-ieee802dot11.patch create mode 100644 package/network/utils/net-snmp/patches/900-musl-compat.patch create mode 100644 package/network/utils/nftables/Makefile create mode 100644 package/network/utils/nftables/patches/0001-meta-don-t-use-non-POSIX-formats-in-strptime.patch create mode 100644 package/network/utils/nftables/patches/001-examples-compile-with-make-check.patch create mode 100644 package/network/utils/pppossh/Makefile create mode 100644 package/network/utils/pppossh/README.md create mode 100644 package/network/utils/pppossh/files/pppossh.sh create mode 100644 package/network/utils/resolveip/Makefile create mode 100644 package/network/utils/resolveip/src/resolveip.c create mode 100644 package/network/utils/rssileds/Makefile create mode 100644 package/network/utils/rssileds/files/rssi create mode 100644 package/network/utils/rssileds/files/rssileds.init create mode 100644 package/network/utils/rssileds/src/rssileds.c create mode 100644 package/network/utils/tcpdump/Makefile create mode 100644 package/network/utils/tcpdump/patches/001-remove_pcap_debug.patch create mode 100644 package/network/utils/tcpdump/patches/100-tcpdump_mini.patch create mode 100644 package/network/utils/tcpdump/patches/101-CVE-2020-8037.patch create mode 100644 package/network/utils/tcpdump/patches/102-CVE-2018-16301.patch create mode 100644 package/network/utils/umbim/Makefile create mode 100755 package/network/utils/umbim/files/lib/netifd/proto/mbim.sh create mode 100644 package/network/utils/uqmi/Makefile create mode 100755 package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh create mode 100644 package/network/utils/wireguard-tools/Makefile create mode 100644 package/network/utils/wireguard-tools/files/wireguard.sh create mode 100644 package/network/utils/wireguard-tools/files/wireguard_watchdog create mode 100644 package/network/utils/wireless-tools/Makefile create mode 100644 package/network/utils/wireless-tools/patches/001-debian.patch create mode 100644 package/network/utils/wireless-tools/patches/002-fix-iwconfig-power-argument-parsing.patch create mode 100644 package/network/utils/wireless-tools/patches/003-we_essential_def.patch create mode 100644 package/network/utils/wireless-tools/patches/004-increase_iwlist_buffer.patch create mode 100644 package/network/utils/wpan-tools/Makefile create mode 100644 package/network/utils/wpan-tools/patches/001-src-nl_extras.h-fix-compatibility-with-libnl-3.3.0.patch create mode 100644 package/network/utils/wwan/Makefile create mode 100644 package/network/utils/wwan/files/data/0421-03a7 create mode 100644 package/network/utils/wwan/files/data/0421-060d create mode 100644 package/network/utils/wwan/files/data/0421-060e create mode 100644 package/network/utils/wwan/files/data/0421-0612 create mode 100644 package/network/utils/wwan/files/data/0421-0619 create mode 100644 package/network/utils/wwan/files/data/0421-061e create mode 100644 package/network/utils/wwan/files/data/0421-0623 create mode 100644 package/network/utils/wwan/files/data/0421-0629 create mode 100644 package/network/utils/wwan/files/data/0421-062d create mode 100644 package/network/utils/wwan/files/data/0421-062f create mode 100644 package/network/utils/wwan/files/data/0421-0638 create mode 100644 package/network/utils/wwan/files/data/05c6-0016 create mode 100644 package/network/utils/wwan/files/data/05c6-0023 create mode 100644 package/network/utils/wwan/files/data/05c6-00a0 create mode 100644 package/network/utils/wwan/files/data/05c6-6000 create mode 100644 package/network/utils/wwan/files/data/05c6-9000 create mode 100644 package/network/utils/wwan/files/data/07d1-3e01 create mode 100644 package/network/utils/wwan/files/data/07d1-3e02 create mode 100644 package/network/utils/wwan/files/data/07d1-7e11 create mode 100644 package/network/utils/wwan/files/data/0af0-4005 create mode 100644 package/network/utils/wwan/files/data/0af0-6901 create mode 100644 package/network/utils/wwan/files/data/0af0-7201 create mode 100644 package/network/utils/wwan/files/data/0af0-8120 create mode 100644 package/network/utils/wwan/files/data/0af0-9200 create mode 100644 package/network/utils/wwan/files/data/0b3c-c000 create mode 100644 package/network/utils/wwan/files/data/0b3c-c001 create mode 100644 package/network/utils/wwan/files/data/0b3c-c002 create mode 100644 package/network/utils/wwan/files/data/0b3c-c003 create mode 100644 package/network/utils/wwan/files/data/0b3c-c004 create mode 100644 package/network/utils/wwan/files/data/0b3c-c005 create mode 100644 package/network/utils/wwan/files/data/0b3c-c00a create mode 100644 package/network/utils/wwan/files/data/0b3c-c00b create mode 100644 package/network/utils/wwan/files/data/0bdb-1900 create mode 100644 package/network/utils/wwan/files/data/0bdb-1902 create mode 100644 package/network/utils/wwan/files/data/0bdb-190a create mode 100644 package/network/utils/wwan/files/data/0bdb-190d create mode 100644 package/network/utils/wwan/files/data/0bdb-1910 create mode 100644 package/network/utils/wwan/files/data/0c88-17da create mode 100644 package/network/utils/wwan/files/data/0c88-180a create mode 100644 package/network/utils/wwan/files/data/0f3d-68a2 create mode 100644 package/network/utils/wwan/files/data/0f3d-68aa create mode 100644 package/network/utils/wwan/files/data/1004-6124 create mode 100644 package/network/utils/wwan/files/data/1004-6141 create mode 100644 package/network/utils/wwan/files/data/1004-6157 create mode 100644 package/network/utils/wwan/files/data/1004-618f create mode 100644 package/network/utils/wwan/files/data/106c-3711 create mode 100644 package/network/utils/wwan/files/data/106c-3714 create mode 100644 package/network/utils/wwan/files/data/106c-3715 create mode 100644 package/network/utils/wwan/files/data/106c-3716 create mode 100644 package/network/utils/wwan/files/data/106c-3717 create mode 100644 package/network/utils/wwan/files/data/106c-3718 create mode 100644 package/network/utils/wwan/files/data/106c-3721 create mode 100644 package/network/utils/wwan/files/data/1199-0017 create mode 100644 package/network/utils/wwan/files/data/1199-0018 create mode 100644 package/network/utils/wwan/files/data/1199-0019 create mode 100644 package/network/utils/wwan/files/data/1199-0020 create mode 100644 package/network/utils/wwan/files/data/1199-0021 create mode 100644 package/network/utils/wwan/files/data/1199-0022 create mode 100644 package/network/utils/wwan/files/data/1199-0023 create mode 100644 package/network/utils/wwan/files/data/1199-0024 create mode 100644 package/network/utils/wwan/files/data/1199-0025 create mode 100644 package/network/utils/wwan/files/data/1199-0026 create mode 100644 package/network/utils/wwan/files/data/1199-0027 create mode 100644 package/network/utils/wwan/files/data/1199-0028 create mode 100644 package/network/utils/wwan/files/data/1199-0112 create mode 100644 package/network/utils/wwan/files/data/1199-0120 create mode 100644 package/network/utils/wwan/files/data/1199-0218 create mode 100644 package/network/utils/wwan/files/data/1199-0220 create mode 100644 package/network/utils/wwan/files/data/1199-0224 create mode 100644 package/network/utils/wwan/files/data/1199-0301 create mode 100644 package/network/utils/wwan/files/data/1199-6802 create mode 100644 package/network/utils/wwan/files/data/1199-6803 create mode 100644 package/network/utils/wwan/files/data/1199-6804 create mode 100644 package/network/utils/wwan/files/data/1199-6805 create mode 100644 package/network/utils/wwan/files/data/1199-6808 create mode 100644 package/network/utils/wwan/files/data/1199-6809 create mode 100644 package/network/utils/wwan/files/data/1199-6813 create mode 100644 package/network/utils/wwan/files/data/1199-6815 create mode 100644 package/network/utils/wwan/files/data/1199-6816 create mode 100644 package/network/utils/wwan/files/data/1199-6820 create mode 100644 package/network/utils/wwan/files/data/1199-6821 create mode 100644 package/network/utils/wwan/files/data/1199-6822 create mode 100644 package/network/utils/wwan/files/data/1199-6833 create mode 100644 package/network/utils/wwan/files/data/1199-6834 create mode 100644 package/network/utils/wwan/files/data/1199-6835 create mode 100644 package/network/utils/wwan/files/data/1199-6838 create mode 100644 package/network/utils/wwan/files/data/1199-6839 create mode 100644 package/network/utils/wwan/files/data/1199-683a create mode 100644 package/network/utils/wwan/files/data/1199-683b create mode 100644 package/network/utils/wwan/files/data/1199-6850 create mode 100644 package/network/utils/wwan/files/data/1199-6851 create mode 100644 package/network/utils/wwan/files/data/1199-6852 create mode 100644 package/network/utils/wwan/files/data/1199-6853 create mode 100644 package/network/utils/wwan/files/data/1199-6855 create mode 100644 package/network/utils/wwan/files/data/1199-6856 create mode 100644 package/network/utils/wwan/files/data/1199-6859 create mode 100644 package/network/utils/wwan/files/data/1199-685a create mode 100644 package/network/utils/wwan/files/data/1199-6880 create mode 100644 package/network/utils/wwan/files/data/1199-6890 create mode 100644 package/network/utils/wwan/files/data/1199-6891 create mode 100644 package/network/utils/wwan/files/data/1199-6892 create mode 100644 package/network/utils/wwan/files/data/1199-6893 create mode 100644 package/network/utils/wwan/files/data/1199-68a2 create mode 100644 package/network/utils/wwan/files/data/1199-68aa create mode 100644 package/network/utils/wwan/files/data/1199-68c0 create mode 100644 package/network/utils/wwan/files/data/12d1-1035 create mode 100644 package/network/utils/wwan/files/data/12d1-1404 create mode 100644 package/network/utils/wwan/files/data/12d1-1406 create mode 100644 package/network/utils/wwan/files/data/12d1-140b create mode 100644 package/network/utils/wwan/files/data/12d1-140c create mode 100644 package/network/utils/wwan/files/data/12d1-1412 create mode 100644 package/network/utils/wwan/files/data/12d1-141b create mode 100644 package/network/utils/wwan/files/data/12d1-1433 create mode 100644 package/network/utils/wwan/files/data/12d1-1436 create mode 100644 package/network/utils/wwan/files/data/12d1-1444 create mode 100644 package/network/utils/wwan/files/data/12d1-144e create mode 100644 package/network/utils/wwan/files/data/12d1-1464 create mode 100644 package/network/utils/wwan/files/data/12d1-1465 create mode 100644 package/network/utils/wwan/files/data/12d1-1491 create mode 100644 package/network/utils/wwan/files/data/12d1-14a5 create mode 100644 package/network/utils/wwan/files/data/12d1-14a8 create mode 100644 package/network/utils/wwan/files/data/12d1-14ac create mode 100644 package/network/utils/wwan/files/data/12d1-14ae create mode 100644 package/network/utils/wwan/files/data/12d1-14c6 create mode 100644 package/network/utils/wwan/files/data/12d1-14c8 create mode 100644 package/network/utils/wwan/files/data/12d1-14c9 create mode 100644 package/network/utils/wwan/files/data/12d1-14ca create mode 100644 package/network/utils/wwan/files/data/12d1-14cb create mode 100644 package/network/utils/wwan/files/data/12d1-14cc create mode 100644 package/network/utils/wwan/files/data/12d1-14cf create mode 100644 package/network/utils/wwan/files/data/12d1-14d2 create mode 100644 package/network/utils/wwan/files/data/12d1-1506 create mode 100644 package/network/utils/wwan/files/data/12d1-150a create mode 100644 package/network/utils/wwan/files/data/12d1-150c create mode 100644 package/network/utils/wwan/files/data/12d1-150f create mode 100644 package/network/utils/wwan/files/data/12d1-151b create mode 100644 package/network/utils/wwan/files/data/12d1-151d create mode 100644 package/network/utils/wwan/files/data/12d1-156c create mode 100644 package/network/utils/wwan/files/data/12d1-1576 create mode 100644 package/network/utils/wwan/files/data/12d1-1577 create mode 100644 package/network/utils/wwan/files/data/12d1-1578 create mode 100644 package/network/utils/wwan/files/data/12d1-1589 create mode 100644 package/network/utils/wwan/files/data/12d1-1c05 create mode 100644 package/network/utils/wwan/files/data/12d1-1c07 create mode 100644 package/network/utils/wwan/files/data/12d1-1c08 create mode 100644 package/network/utils/wwan/files/data/12d1-1c10 create mode 100644 package/network/utils/wwan/files/data/12d1-1c12 create mode 100644 package/network/utils/wwan/files/data/12d1-1c1e create mode 100644 package/network/utils/wwan/files/data/12d1-1c1f create mode 100644 package/network/utils/wwan/files/data/12d1-1c23 create mode 100644 package/network/utils/wwan/files/data/12d1-1f16 create mode 100644 package/network/utils/wwan/files/data/1410-1400 create mode 100644 package/network/utils/wwan/files/data/1410-1410 create mode 100644 package/network/utils/wwan/files/data/1410-1420 create mode 100644 package/network/utils/wwan/files/data/1410-1430 create mode 100644 package/network/utils/wwan/files/data/1410-1450 create mode 100644 package/network/utils/wwan/files/data/1410-2100 create mode 100644 package/network/utils/wwan/files/data/1410-2110 create mode 100644 package/network/utils/wwan/files/data/1410-2120 create mode 100644 package/network/utils/wwan/files/data/1410-2130 create mode 100644 package/network/utils/wwan/files/data/1410-2400 create mode 100644 package/network/utils/wwan/files/data/1410-2410 create mode 100644 package/network/utils/wwan/files/data/1410-2420 create mode 100644 package/network/utils/wwan/files/data/1410-4100 create mode 100644 package/network/utils/wwan/files/data/1410-4400 create mode 100644 package/network/utils/wwan/files/data/1410-6000 create mode 100644 package/network/utils/wwan/files/data/1410-6001 create mode 100644 package/network/utils/wwan/files/data/1410-6002 create mode 100644 package/network/utils/wwan/files/data/1410-6010 create mode 100644 package/network/utils/wwan/files/data/1410-7001 create mode 100644 package/network/utils/wwan/files/data/1410-7003 create mode 100644 package/network/utils/wwan/files/data/1410-7030 create mode 100644 package/network/utils/wwan/files/data/1410-7031 create mode 100644 package/network/utils/wwan/files/data/1410-7041 create mode 100644 package/network/utils/wwan/files/data/1410-7042 create mode 100644 package/network/utils/wwan/files/data/1410-9011 create mode 100644 package/network/utils/wwan/files/data/1410-b001 create mode 100644 package/network/utils/wwan/files/data/1529-3100 create mode 100644 package/network/utils/wwan/files/data/16d5-6202 create mode 100644 package/network/utils/wwan/files/data/16d5-6501 create mode 100644 package/network/utils/wwan/files/data/16d5-6502 create mode 100644 package/network/utils/wwan/files/data/16d5-6603 create mode 100644 package/network/utils/wwan/files/data/16d5-900d create mode 100644 package/network/utils/wwan/files/data/16d8-5141 create mode 100644 package/network/utils/wwan/files/data/16d8-5533 create mode 100644 package/network/utils/wwan/files/data/16d8-5543 create mode 100644 package/network/utils/wwan/files/data/16d8-5553 create mode 100644 package/network/utils/wwan/files/data/16d8-6002 create mode 100644 package/network/utils/wwan/files/data/16d8-6006 create mode 100644 package/network/utils/wwan/files/data/16d8-6007 create mode 100644 package/network/utils/wwan/files/data/16d8-6008 create mode 100644 package/network/utils/wwan/files/data/16d8-6522 create mode 100644 package/network/utils/wwan/files/data/16d8-6523 create mode 100644 package/network/utils/wwan/files/data/16d8-6532 create mode 100644 package/network/utils/wwan/files/data/16d8-6533 create mode 100644 package/network/utils/wwan/files/data/16d8-6543 create mode 100644 package/network/utils/wwan/files/data/16d8-680a create mode 100644 package/network/utils/wwan/files/data/19d2-0001 create mode 100644 package/network/utils/wwan/files/data/19d2-0002 create mode 100644 package/network/utils/wwan/files/data/19d2-0015 create mode 100644 package/network/utils/wwan/files/data/19d2-0016 create mode 100644 package/network/utils/wwan/files/data/19d2-0017 create mode 100644 package/network/utils/wwan/files/data/19d2-0018 create mode 100644 package/network/utils/wwan/files/data/19d2-0019 create mode 100644 package/network/utils/wwan/files/data/19d2-0022 create mode 100644 package/network/utils/wwan/files/data/19d2-0024 create mode 100644 package/network/utils/wwan/files/data/19d2-0025 create mode 100644 package/network/utils/wwan/files/data/19d2-0031 create mode 100644 package/network/utils/wwan/files/data/19d2-0033 create mode 100644 package/network/utils/wwan/files/data/19d2-0037 create mode 100644 package/network/utils/wwan/files/data/19d2-0039 create mode 100644 package/network/utils/wwan/files/data/19d2-0042 create mode 100644 package/network/utils/wwan/files/data/19d2-0052 create mode 100644 package/network/utils/wwan/files/data/19d2-0055 create mode 100644 package/network/utils/wwan/files/data/19d2-0057 create mode 100644 package/network/utils/wwan/files/data/19d2-0063 create mode 100644 package/network/utils/wwan/files/data/19d2-0064 create mode 100644 package/network/utils/wwan/files/data/19d2-0066 create mode 100644 package/network/utils/wwan/files/data/19d2-0073 create mode 100644 package/network/utils/wwan/files/data/19d2-0079 create mode 100644 package/network/utils/wwan/files/data/19d2-0082 create mode 100644 package/network/utils/wwan/files/data/19d2-0086 create mode 100644 package/network/utils/wwan/files/data/19d2-0091 create mode 100644 package/network/utils/wwan/files/data/19d2-0094 create mode 100644 package/network/utils/wwan/files/data/19d2-0104 create mode 100644 package/network/utils/wwan/files/data/19d2-0108 create mode 100644 package/network/utils/wwan/files/data/19d2-0116 create mode 100644 package/network/utils/wwan/files/data/19d2-0117 create mode 100644 package/network/utils/wwan/files/data/19d2-0121 create mode 100644 package/network/utils/wwan/files/data/19d2-0124 create mode 100644 package/network/utils/wwan/files/data/19d2-0128 create mode 100644 package/network/utils/wwan/files/data/19d2-0142 create mode 100644 package/network/utils/wwan/files/data/19d2-0143 create mode 100644 package/network/utils/wwan/files/data/19d2-0152 create mode 100644 package/network/utils/wwan/files/data/19d2-0157 create mode 100644 package/network/utils/wwan/files/data/19d2-0167 create mode 100644 package/network/utils/wwan/files/data/19d2-0170 create mode 100644 package/network/utils/wwan/files/data/19d2-0199 create mode 100644 package/network/utils/wwan/files/data/19d2-0257 create mode 100644 package/network/utils/wwan/files/data/19d2-0265 create mode 100644 package/network/utils/wwan/files/data/19d2-0284 create mode 100644 package/network/utils/wwan/files/data/19d2-0326 create mode 100644 package/network/utils/wwan/files/data/19d2-1003 create mode 100644 package/network/utils/wwan/files/data/19d2-1008 create mode 100644 package/network/utils/wwan/files/data/19d2-1010 create mode 100644 package/network/utils/wwan/files/data/19d2-1015 create mode 100644 package/network/utils/wwan/files/data/19d2-1018 create mode 100644 package/network/utils/wwan/files/data/19d2-1172 create mode 100644 package/network/utils/wwan/files/data/19d2-1173 create mode 100644 package/network/utils/wwan/files/data/19d2-1176 create mode 100644 package/network/utils/wwan/files/data/19d2-1177 create mode 100644 package/network/utils/wwan/files/data/19d2-1181 create mode 100644 package/network/utils/wwan/files/data/19d2-1203 create mode 100644 package/network/utils/wwan/files/data/19d2-1208 create mode 100644 package/network/utils/wwan/files/data/19d2-1211 create mode 100644 package/network/utils/wwan/files/data/19d2-1212 create mode 100644 package/network/utils/wwan/files/data/19d2-1217 create mode 100644 package/network/utils/wwan/files/data/19d2-1218 create mode 100644 package/network/utils/wwan/files/data/19d2-1220 create mode 100644 package/network/utils/wwan/files/data/19d2-1222 create mode 100644 package/network/utils/wwan/files/data/19d2-1245 create mode 100644 package/network/utils/wwan/files/data/19d2-1252 create mode 100644 package/network/utils/wwan/files/data/19d2-1254 create mode 100644 package/network/utils/wwan/files/data/19d2-1256 create mode 100644 package/network/utils/wwan/files/data/19d2-1270 create mode 100644 package/network/utils/wwan/files/data/19d2-1401 create mode 100644 package/network/utils/wwan/files/data/19d2-1402 create mode 100644 package/network/utils/wwan/files/data/19d2-1426 create mode 100644 package/network/utils/wwan/files/data/19d2-1512 create mode 100644 package/network/utils/wwan/files/data/19d2-1515 create mode 100644 package/network/utils/wwan/files/data/19d2-1518 create mode 100644 package/network/utils/wwan/files/data/19d2-1519 create mode 100644 package/network/utils/wwan/files/data/19d2-1522 create mode 100644 package/network/utils/wwan/files/data/19d2-1525 create mode 100644 package/network/utils/wwan/files/data/19d2-1527 create mode 100644 package/network/utils/wwan/files/data/19d2-1537 create mode 100644 package/network/utils/wwan/files/data/19d2-1538 create mode 100644 package/network/utils/wwan/files/data/19d2-1544 create mode 100644 package/network/utils/wwan/files/data/19d2-2002 create mode 100644 package/network/utils/wwan/files/data/19d2-2003 create mode 100644 package/network/utils/wwan/files/data/19d2-ffdd create mode 100644 package/network/utils/wwan/files/data/19d2-ffe4 create mode 100644 package/network/utils/wwan/files/data/19d2-ffe9 create mode 100644 package/network/utils/wwan/files/data/19d2-fff1 create mode 100644 package/network/utils/wwan/files/data/19d2-fffb create mode 100644 package/network/utils/wwan/files/data/19d2-fffc create mode 100644 package/network/utils/wwan/files/data/19d2-fffd create mode 100644 package/network/utils/wwan/files/data/19d2-fffe create mode 100644 package/network/utils/wwan/files/data/19d2-ffff create mode 100644 package/network/utils/wwan/files/data/1a8d-1002 create mode 100644 package/network/utils/wwan/files/data/1a8d-1003 create mode 100644 package/network/utils/wwan/files/data/1a8d-1007 create mode 100644 package/network/utils/wwan/files/data/1a8d-1009 create mode 100644 package/network/utils/wwan/files/data/1a8d-100c create mode 100644 package/network/utils/wwan/files/data/1a8d-100d create mode 100644 package/network/utils/wwan/files/data/1a8d-2006 create mode 100644 package/network/utils/wwan/files/data/1bbb-0000 create mode 100644 package/network/utils/wwan/files/data/1bbb-0012 create mode 100644 package/network/utils/wwan/files/data/1bbb-0017 create mode 100644 package/network/utils/wwan/files/data/1bbb-0052 create mode 100644 package/network/utils/wwan/files/data/1bbb-00b7 create mode 100644 package/network/utils/wwan/files/data/1bbb-00ca create mode 100644 package/network/utils/wwan/files/data/1bbb-011e create mode 100644 package/network/utils/wwan/files/data/1bbb-0203 create mode 100644 package/network/utils/wwan/files/data/1c9e-6060 create mode 100644 package/network/utils/wwan/files/data/1c9e-6061 create mode 100644 package/network/utils/wwan/files/data/1c9e-9000 create mode 100644 package/network/utils/wwan/files/data/1c9e-9603 create mode 100644 package/network/utils/wwan/files/data/1c9e-9605 create mode 100644 package/network/utils/wwan/files/data/1c9e-9607 create mode 100644 package/network/utils/wwan/files/data/1c9e-9801 create mode 100644 package/network/utils/wwan/files/data/1c9e-9900 create mode 100644 package/network/utils/wwan/files/data/1e0e-9000 create mode 100644 package/network/utils/wwan/files/data/1e0e-9100 create mode 100644 package/network/utils/wwan/files/data/1e0e-9200 create mode 100644 package/network/utils/wwan/files/data/1e0e-ce16 create mode 100644 package/network/utils/wwan/files/data/1e0e-cefe create mode 100644 package/network/utils/wwan/files/data/1e2d-0053 create mode 100644 package/network/utils/wwan/files/data/1e2d-005b create mode 100644 package/network/utils/wwan/files/data/2001-7d00 create mode 100644 package/network/utils/wwan/files/data/2001-7d01 create mode 100644 package/network/utils/wwan/files/data/2001-7d02 create mode 100644 package/network/utils/wwan/files/data/2001-7d03 create mode 100644 package/network/utils/wwan/files/data/211f-6801 create mode 100644 package/network/utils/wwan/files/data/2357-0201 create mode 100644 package/network/utils/wwan/files/data/2357-0202 create mode 100644 package/network/utils/wwan/files/data/2357-0203 create mode 100644 package/network/utils/wwan/files/data/2357-9000 create mode 100644 package/network/utils/wwan/files/data/2c7c-0125 create mode 100644 package/network/utils/wwan/files/data/413c-8114 create mode 100644 package/network/utils/wwan/files/data/413c-8115 create mode 100644 package/network/utils/wwan/files/data/413c-8116 create mode 100644 package/network/utils/wwan/files/data/413c-8117 create mode 100644 package/network/utils/wwan/files/data/413c-8118 create mode 100644 package/network/utils/wwan/files/data/413c-8128 create mode 100644 package/network/utils/wwan/files/data/413c-8129 create mode 100644 package/network/utils/wwan/files/data/413c-8133 create mode 100644 package/network/utils/wwan/files/data/413c-8134 create mode 100644 package/network/utils/wwan/files/data/413c-8135 create mode 100644 package/network/utils/wwan/files/data/413c-8136 create mode 100644 package/network/utils/wwan/files/data/413c-8137 create mode 100644 package/network/utils/wwan/files/data/413c-8138 create mode 100644 package/network/utils/wwan/files/data/413c-8147 create mode 100644 package/network/utils/wwan/files/data/413c-8180 create mode 100644 package/network/utils/wwan/files/data/413c-8181 create mode 100644 package/network/utils/wwan/files/data/413c-8182 create mode 100644 package/network/utils/wwan/files/data/413c-8186 create mode 100644 package/network/utils/wwan/files/data/413c-8194 create mode 100644 package/network/utils/wwan/files/data/413c-8195 create mode 100644 package/network/utils/wwan/files/data/413c-8196 create mode 100644 package/network/utils/wwan/files/data/413c-819b create mode 100755 package/network/utils/wwan/files/wwan.sh create mode 100644 package/network/utils/wwan/files/wwan.usb create mode 100644 package/network/utils/wwan/files/wwan.usbmisc create mode 100644 package/system/ca-certificates/Makefile create mode 100644 package/system/ca-certificates/patches/0001-ca-certificates-fix-python3-cryptography-woes-in-cer.patch create mode 100644 package/system/fstools/Makefile create mode 100755 package/system/fstools/files/blockd.init create mode 100644 package/system/fstools/files/fstab.default create mode 100644 package/system/fstools/files/fstab.init create mode 100644 package/system/fstools/files/media-change.hotplug create mode 100644 package/system/fstools/files/mount.hotplug create mode 100644 package/system/fstools/files/snapshot create mode 100644 package/system/fwtool/Makefile create mode 100644 package/system/iucode-tool/Makefile create mode 100644 package/system/iucode-tool/patches/200_add-cpuid-compatibility-header-to-build-on-non-x86.patch create mode 100755 package/system/librecmc-keyring/Makefile create mode 100644 package/system/mtd/Makefile create mode 100644 package/system/mtd/src/Makefile create mode 100644 package/system/mtd/src/crc32.c create mode 100644 package/system/mtd/src/crc32.h create mode 100644 package/system/mtd/src/fis.c create mode 100644 package/system/mtd/src/fis.h create mode 100644 package/system/mtd/src/imagetag.c create mode 100644 package/system/mtd/src/jffs2.c create mode 100644 package/system/mtd/src/jffs2.h create mode 100644 package/system/mtd/src/linksys_bootcount.c create mode 100644 package/system/mtd/src/md5.c create mode 100644 package/system/mtd/src/md5.h create mode 100644 package/system/mtd/src/mtd.c create mode 100644 package/system/mtd/src/mtd.h create mode 100644 package/system/mtd/src/seama.c create mode 100644 package/system/mtd/src/seama.h create mode 100644 package/system/mtd/src/tpl_ramips_recoveryflag.c create mode 100644 package/system/mtd/src/trx.c create mode 100644 package/system/mtd/src/wrg.c create mode 100644 package/system/mtd/src/wrgg.c create mode 100644 package/system/mtd/src/wrgg.h create mode 100644 package/system/openwrt-keyring/Makefile create mode 100644 package/system/opkg/Makefile create mode 100644 package/system/opkg/files/20_migrate-feeds create mode 100644 package/system/opkg/files/customfeeds.conf create mode 100755 package/system/opkg/files/opkg-key create mode 100644 package/system/opkg/files/opkg-smime.conf create mode 100644 package/system/opkg/files/opkg.conf create mode 100644 package/system/procd/Makefile create mode 100644 package/system/procd/files/hotplug-preinit.json create mode 100644 package/system/procd/files/hotplug.json create mode 100644 package/system/procd/files/procd.sh create mode 100644 package/system/procd/files/reload_config create mode 100644 package/system/procd/files/service create mode 100644 package/system/procd/files/uxc.init create mode 100644 package/system/rpcd/Makefile create mode 100755 package/system/rpcd/files/50-migrate-rpcd-ubus-sock.sh create mode 100644 package/system/rpcd/files/rpcd.config create mode 100755 package/system/rpcd/files/rpcd.init create mode 100644 package/system/ubox/Makefile create mode 100644 package/system/ubox/files/log.init create mode 100644 package/system/ubus/Makefile create mode 100644 package/system/ucert/Makefile create mode 100644 package/system/uci/Makefile create mode 100644 package/system/uci/files/lib/config/uci.sh create mode 100644 package/system/urandom-seed/Makefile create mode 100755 package/system/urandom-seed/files/etc/init.d/urandom_seed create mode 100644 package/system/urandom-seed/files/lib/preinit/81_urandom_seed create mode 100755 package/system/urandom-seed/files/sbin/urandom_seed create mode 100644 package/system/urngd/Makefile create mode 100644 package/system/urngd/files/urngd.init create mode 100644 package/system/usign/Makefile create mode 100644 package/system/zram-swap/Makefile create mode 100755 package/system/zram-swap/files/zram.init create mode 100644 package/utils/adb/Makefile create mode 100644 package/utils/adb/patches/001-create_Makefile.patch create mode 100644 package/utils/adb/patches/003-fix-musl-build.patch create mode 100644 package/utils/adb/patches/010-openssl-1.1.patch create mode 100644 package/utils/adb/patches/020-cherry-picked-superspeed-fix.patch create mode 100644 package/utils/attr/Makefile create mode 100644 package/utils/attr/patches/100-no-gettext_configure.patch create mode 100644 package/utils/attr/patches/101-no-gettext_autogen.patch create mode 100644 package/utils/attr/patches/102-no-gettext_Makefile.patch create mode 100644 package/utils/bcm4908img/Makefile create mode 100644 package/utils/bcm4908img/src/Makefile create mode 100644 package/utils/bcm4908img/src/bcm4908img.c create mode 100644 package/utils/bsdiff/Makefile create mode 100644 package/utils/bsdiff/patches/001-musl.patch create mode 100644 package/utils/busybox/Config-defaults.in create mode 100644 package/utils/busybox/Config.in create mode 100644 package/utils/busybox/Makefile create mode 100644 package/utils/busybox/config/Config.in create mode 100644 package/utils/busybox/config/archival/Config.in create mode 100644 package/utils/busybox/config/console-tools/Config.in create mode 100644 package/utils/busybox/config/coreutils/Config.in create mode 100644 package/utils/busybox/config/debianutils/Config.in create mode 100644 package/utils/busybox/config/e2fsprogs/Config.in create mode 100644 package/utils/busybox/config/e2fsprogs/old_e2fsprogs/Config.in create mode 100644 package/utils/busybox/config/editors/Config.in create mode 100644 package/utils/busybox/config/findutils/Config.in create mode 100644 package/utils/busybox/config/init/Config.in create mode 100644 package/utils/busybox/config/klibc-utils/Config.in create mode 100644 package/utils/busybox/config/libbb/Config.in create mode 100644 package/utils/busybox/config/loginutils/Config.in create mode 100644 package/utils/busybox/config/mailutils/Config.in create mode 100644 package/utils/busybox/config/miscutils/Config.in create mode 100644 package/utils/busybox/config/modutils/Config.in create mode 100644 package/utils/busybox/config/networking/Config.in create mode 100644 package/utils/busybox/config/networking/udhcp/Config.in create mode 100644 package/utils/busybox/config/printutils/Config.in create mode 100644 package/utils/busybox/config/procps/Config.in create mode 100644 package/utils/busybox/config/runit/Config.in create mode 100644 package/utils/busybox/config/selinux/Config.in create mode 100644 package/utils/busybox/config/shell/Config.in create mode 100644 package/utils/busybox/config/sysklogd/Config.in create mode 100644 package/utils/busybox/config/util-linux/Config.in create mode 100644 package/utils/busybox/config/util-linux/volume_id/Config.in create mode 100755 package/utils/busybox/convert_defaults.pl create mode 100755 package/utils/busybox/convert_menuconfig.pl create mode 100755 package/utils/busybox/files/cron create mode 100755 package/utils/busybox/files/ntpd-hotplug create mode 100644 package/utils/busybox/files/ntpd.capabilities create mode 100644 package/utils/busybox/files/ntpd_acl.json create mode 100755 package/utils/busybox/files/sysntpd create mode 100644 package/utils/busybox/patches/001-CVE-2022-30065-awk-fix-use-after-free.patch create mode 100644 package/utils/busybox/patches/120-lto-jobserver.patch create mode 100644 package/utils/busybox/patches/200-udhcpc_reduce_msgs.patch create mode 100644 package/utils/busybox/patches/201-udhcpc_changed_ifindex.patch create mode 100644 package/utils/busybox/patches/210-add_netmsg_util.patch create mode 100644 package/utils/busybox/patches/220-add_lock_util.patch create mode 100644 package/utils/busybox/patches/270-libbb_make_unicode_printable.patch create mode 100644 package/utils/busybox/patches/301-ip-link-fix-netlink-msg-size.patch create mode 100644 package/utils/busybox/patches/500-move-traceroute-applets-to-bin.patch create mode 100644 package/utils/busybox/patches/510-move-passwd-applet-to-bin.patch create mode 100644 package/utils/busybox/patches/520-loginutils-handle-crypt-failures.patch create mode 100644 package/utils/busybox/patches/530-nslookup-ensure-unique-transaction-IDs-for-the-DNS-queries.patch create mode 100644 package/utils/busybox/selinux.config create mode 100644 package/utils/bzip2/Makefile create mode 100644 package/utils/bzip2/patches/020-no-utime.patch create mode 100644 package/utils/bzip2/patches/021-fix-LDFLAGS.patch create mode 100644 package/utils/dbus/Config.in create mode 100644 package/utils/dbus/Makefile create mode 100644 package/utils/dbus/files/dbus-launch create mode 100644 package/utils/dbus/files/dbus.init create mode 100644 package/utils/dbus/patches/010-cmake-paths.patch create mode 100644 package/utils/dbus/patches/020-cmake-fix-tmp-session-search.patch create mode 100644 package/utils/dtc/Makefile create mode 100644 package/utils/dtc/patches/0001-Support-r-format-for-printing-raw-bytes-with-fdtget.patch create mode 100644 package/utils/e2fsprogs/Makefile create mode 100644 package/utils/e2fsprogs/files/e2fsck.conf create mode 100644 package/utils/e2fsprogs/files/e2fsck.sh create mode 100644 package/utils/e2fsprogs/patches/000-relocatable.patch create mode 100644 package/utils/e2fsprogs/patches/001-com_err_version.patch create mode 100644 package/utils/e2fsprogs/patches/002-fix-subst-host-build.patch create mode 100644 package/utils/e2fsprogs/patches/004-CVE-2022-1304-libext2fs-add-sanity-check-to-extent-manipulation.patch create mode 100644 package/utils/f2fs-tools/Makefile create mode 100644 package/utils/f2fs-tools/patches/200-resize_f2fs-fix_wrong_ovp_calculation.patch create mode 100644 package/utils/hwdata/Makefile create mode 100644 package/utils/jsonfilter/Makefile create mode 100644 package/utils/kmod/Makefile create mode 100644 package/utils/lua/Makefile create mode 100644 package/utils/lua/patches-host/001-include-version-number.patch create mode 100644 package/utils/lua/patches-host/010-lua-5.1.3-lnum-full-260308.patch create mode 100644 package/utils/lua/patches-host/011-lnum-use-double.patch create mode 100644 package/utils/lua/patches-host/012-lnum-fix-ltle-relational-operators.patch create mode 100644 package/utils/lua/patches-host/013-lnum-strtoul-parsing-fixes.patch create mode 100644 package/utils/lua/patches-host/015-lnum-ppc-compat.patch create mode 100644 package/utils/lua/patches-host/030-archindependent-bytecode.patch create mode 100644 package/utils/lua/patches-host/100-no_readline.patch create mode 100644 package/utils/lua/patches/001-include-version-number.patch create mode 100644 package/utils/lua/patches/010-lua-5.1.3-lnum-full-260308.patch create mode 100644 package/utils/lua/patches/011-lnum-use-double.patch create mode 100644 package/utils/lua/patches/012-lnum-fix-ltle-relational-operators.patch create mode 100644 package/utils/lua/patches/013-lnum-strtoul-parsing-fixes.patch create mode 100644 package/utils/lua/patches/015-lnum-ppc-compat.patch create mode 100644 package/utils/lua/patches/020-shared_liblua.patch create mode 100644 package/utils/lua/patches/030-archindependent-bytecode.patch create mode 100644 package/utils/lua/patches/040-use-symbolic-functions.patch create mode 100644 package/utils/lua/patches/050-honor-cflags.patch create mode 100644 package/utils/lua/patches/100-no_readline.patch create mode 100644 package/utils/lua/patches/200-lua-path.patch create mode 100644 package/utils/lua/patches/300-opcode_performance.patch create mode 100644 package/utils/lua5.3/Makefile create mode 100644 package/utils/lua5.3/patches-host/001-include-version-number.patch create mode 100644 package/utils/lua5.3/patches-host/100-no_readline.patch create mode 100644 package/utils/lua5.3/patches/001-include-version-number.patch create mode 100644 package/utils/lua5.3/patches/020-shared_liblua.patch create mode 100644 package/utils/lua5.3/patches/100-no_readline.patch create mode 100644 package/utils/mdadm/Makefile create mode 100644 package/utils/mdadm/files/mdadm.config create mode 100644 package/utils/mdadm/files/mdadm.init create mode 100644 package/utils/mdadm/patches/100-cross_compile.patch create mode 100644 package/utils/mdadm/patches/101-mdadm.h-Undefine-dprintf-before-redefining.patch create mode 100644 package/utils/mdadm/patches/102-Add-missing-include-file-sys-sysmacros.h.patch create mode 100644 package/utils/mdadm/patches/200-reduce_size.patch create mode 100644 package/utils/mtd-utils/Makefile create mode 100644 package/utils/mtd-utils/patches/100-fix_includes.patch create mode 100644 package/utils/mtd-utils/patches/130-lzma_jffs2.patch create mode 100644 package/utils/nvram/Makefile create mode 100755 package/utils/nvram/files/nvram-bcm47xx.init create mode 100755 package/utils/nvram/files/nvram-bcm53xx.init create mode 100644 package/utils/nvram/src/Makefile create mode 100644 package/utils/nvram/src/cli.c create mode 100644 package/utils/nvram/src/crc.c create mode 100644 package/utils/nvram/src/nvram.c create mode 100644 package/utils/nvram/src/nvram.h create mode 100644 package/utils/nvram/src/sdinitvals.h create mode 100644 package/utils/osafeloader/Makefile create mode 100644 package/utils/osafeloader/src/Makefile create mode 100644 package/utils/osafeloader/src/md5.c create mode 100644 package/utils/osafeloader/src/md5.h create mode 100644 package/utils/osafeloader/src/osafeloader.c create mode 100644 package/utils/otrx/Makefile create mode 100644 package/utils/pciutils/Makefile create mode 100644 package/utils/pciutils/patches/101-no-strip.patch create mode 100644 package/utils/pciutils/patches/104-resolv.patch create mode 100644 package/utils/pciutils/patches/106-hwdata.patch create mode 100644 package/utils/pciutils/patches/107-avoid-addng-multiple-version-tags.patch create mode 100644 package/utils/px5g-mbedtls/Makefile create mode 100644 package/utils/px5g-mbedtls/px5g-mbedtls.c create mode 100644 package/utils/px5g-wolfssl/Makefile create mode 100644 package/utils/px5g-wolfssl/px5g-wolfssl.c create mode 100644 package/utils/secilc/Makefile create mode 100644 package/utils/spidev_test/Makefile create mode 100644 package/utils/ucode/Makefile create mode 100644 package/utils/uencrypt/Makefile create mode 100644 package/utils/uencrypt/src/CMakeLists.txt create mode 100644 package/utils/uencrypt/src/uencrypt.c create mode 100644 package/utils/ugps/Makefile create mode 100644 package/utils/ugps/files/gps.config create mode 100644 package/utils/ugps/files/ugps.init create mode 100644 package/utils/usbmode/Makefile create mode 100644 package/utils/usbmode/data/12d1-1f16 create mode 100644 package/utils/usbmode/files/usbmode.hotplug create mode 100755 package/utils/usbmode/files/usbmode.init create mode 100644 package/utils/util-linux/Makefile create mode 100644 package/utils/util-linux/patches/100-use_urandom.patch create mode 100644 package/utils/xz/Makefile create mode 100644 package/utils/xz/patches/001-relative-pkg-config-paths.patch create mode 100644 rules.mk create mode 100755 scripts/arm-magic.sh create mode 100755 scripts/brcmImage.pl create mode 100755 scripts/bundle-libraries.sh create mode 100755 scripts/cameo-imghdr.py create mode 100755 scripts/cameo-tag.py create mode 100755 scripts/cfe-bin-header.py create mode 100755 scripts/cfe-partition-tag.py create mode 100755 scripts/cfe-wfi-tag.py create mode 100755 scripts/check-toolchain-clean.sh create mode 100755 scripts/checkpatch.pl create mode 100755 scripts/clean-package.sh create mode 100755 scripts/cleanfile create mode 100755 scripts/cleanpatch create mode 100755 scripts/combined-ext-image.sh create mode 100755 scripts/combined-image.sh create mode 100755 scripts/command_all.sh create mode 100755 scripts/config.guess create mode 100755 scripts/config.rpath create mode 100755 scripts/config.sub create mode 100644 scripts/config/Makefile create mode 100644 scripts/config/README create mode 100644 scripts/config/conf.c create mode 100644 scripts/config/confdata.c create mode 100644 scripts/config/expr.c create mode 100644 scripts/config/expr.h create mode 100644 scripts/config/images.c create mode 100644 scripts/config/images.h create mode 100644 scripts/config/internal.h create mode 100644 scripts/config/lexer.l create mode 100644 scripts/config/lexer.lex.c create mode 100644 scripts/config/list.h create mode 100644 scripts/config/lkc.h create mode 100644 scripts/config/lkc_proto.h create mode 100644 scripts/config/lxdialog/checklist.c create mode 100644 scripts/config/lxdialog/dialog.h create mode 100644 scripts/config/lxdialog/inputbox.c create mode 100644 scripts/config/lxdialog/menubox.c create mode 100644 scripts/config/lxdialog/textbox.c create mode 100644 scripts/config/lxdialog/util.c create mode 100644 scripts/config/lxdialog/yesno.c create mode 100755 scripts/config/mconf-cfg.sh create mode 100644 scripts/config/mconf.c create mode 100644 scripts/config/menu.c create mode 100755 scripts/config/nconf-cfg.sh create mode 100644 scripts/config/nconf.c create mode 100644 scripts/config/nconf.gui.c create mode 100644 scripts/config/nconf.h create mode 100644 scripts/config/parser.tab.c create mode 100644 scripts/config/parser.tab.h create mode 100644 scripts/config/parser.y create mode 100644 scripts/config/preprocess.c create mode 100755 scripts/config/qconf-cfg.sh create mode 100644 scripts/config/qconf.cc create mode 100644 scripts/config/qconf.h create mode 100644 scripts/config/symbol.c create mode 100644 scripts/config/util.c create mode 100644 scripts/const_structs.checkpatch create mode 100755 scripts/deptest.sh create mode 100755 scripts/diffconfig.sh create mode 100755 scripts/dl_cleanup.py create mode 100755 scripts/dl_github_archive.py create mode 100755 scripts/download.pl create mode 100755 scripts/dump-target-info.pl create mode 100755 scripts/env create mode 100755 scripts/ext-toolchain.sh create mode 100755 scripts/ext-tools.sh create mode 100755 scripts/feeds create mode 100755 scripts/fixup-makefile.pl create mode 100755 scripts/flashing/adam2flash-502T.pl create mode 100755 scripts/flashing/adam2flash-fritzbox.pl create mode 100755 scripts/flashing/adam2flash.pl create mode 100755 scripts/flashing/adsl2mue_flash.pl create mode 100755 scripts/flashing/eva_ramboot.py create mode 100755 scripts/flashing/flash.sh create mode 100755 scripts/flashing/jungo-image.py create mode 100644 scripts/functions.sh create mode 100755 scripts/gen-dependencies.sh create mode 100755 scripts/gen_image_generic.sh create mode 100755 scripts/get_source_date_epoch.sh create mode 100755 scripts/getver.sh create mode 100755 scripts/ipkg-build create mode 100755 scripts/ipkg-make-index.sh create mode 100755 scripts/ipkg-remove create mode 100755 scripts/json_add_image_info.py create mode 100755 scripts/json_overview_image_info.py create mode 100755 scripts/kconfig.pl create mode 100755 scripts/linksys-image.sh create mode 100755 scripts/make-ipkg-dir.sh create mode 100755 scripts/md5sum create mode 100644 scripts/metadata.pm create mode 100644 scripts/mkhash.c create mode 100755 scripts/mkits-qsdk-ipq-image.sh create mode 100755 scripts/mkits-zyxel-fit.sh create mode 100755 scripts/mkits.sh create mode 100755 scripts/netgear-encrypted-factory.py create mode 100755 scripts/om-fwupgradecfg-gen.sh create mode 100755 scripts/package-metadata.pl create mode 100755 scripts/pad_image create mode 100755 scripts/patch-kernel.sh create mode 100755 scripts/patch-specs.sh create mode 100755 scripts/portable_date.sh create mode 100755 scripts/qemustart create mode 100755 scripts/redboot-script.pl create mode 100755 scripts/relink-lib.sh create mode 100755 scripts/remote-gdb create mode 100755 scripts/rstrip.sh create mode 100755 scripts/sercomm-crypto.py create mode 100755 scripts/sercomm-partition-tag.py create mode 100755 scripts/sercomm-payload.py create mode 100755 scripts/sign_images.sh create mode 100755 scripts/size_compare.sh create mode 100755 scripts/slugimage.pl create mode 100644 scripts/spelling.txt create mode 100755 scripts/srecimage.pl create mode 100755 scripts/strip-kmod.sh create mode 100755 scripts/symlink-tree.sh create mode 100755 scripts/sysupgrade-tar.sh create mode 100755 scripts/target-metadata.pl create mode 100755 scripts/time.pl create mode 100755 scripts/timestamp.pl create mode 100755 scripts/ubinize-image.sh create mode 100755 scripts/xxdi.pl create mode 100644 target/Config.in create mode 100644 target/Makefile create mode 100644 target/imagebuilder/Config.in create mode 100644 target/imagebuilder/Makefile create mode 100644 target/imagebuilder/files/Makefile create mode 100644 target/imagebuilder/files/README.md create mode 100644 target/imagebuilder/files/repositories.conf create mode 100644 target/linux/Makefile create mode 100644 target/linux/ath79/Makefile create mode 100644 target/linux/ath79/base-files/etc/hotplug.d/ieee80211/00-wifi-migration create mode 100644 target/linux/ath79/config-5.10 create mode 100644 target/linux/ath79/dts/ar1022_iodata_wn-ag300dgr.dts create mode 100644 target/linux/ath79/dts/ar7100.dtsi create mode 100644 target/linux/ath79/dts/ar7100_mikrotik_routerboard-4xx.dtsi create mode 100644 target/linux/ath79/dts/ar7161_adtran_bsap1800-v2.dts create mode 100644 target/linux/ath79/dts/ar7161_adtran_bsap1840.dts create mode 100644 target/linux/ath79/dts/ar7161_adtran_bsap1880.dtsi create mode 100644 target/linux/ath79/dts/ar7161_aruba_ap-105.dts create mode 100644 target/linux/ath79/dts/ar7161_buffalo_wzr-600dhp.dts create mode 100644 target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dts create mode 100644 target/linux/ath79/dts/ar7161_buffalo_wzr-hp-ag300h.dtsi create mode 100644 target/linux/ath79/dts/ar7161_dlink_dir-825-b1.dts create mode 100644 target/linux/ath79/dts/ar7161_jjplus_ja76pf2.dts create mode 100644 target/linux/ath79/dts/ar7161_meraki_mr16.dts create mode 100644 target/linux/ath79/dts/ar7161_netgear_wndap360.dts create mode 100644 target/linux/ath79/dts/ar7161_netgear_wndr.dtsi create mode 100644 target/linux/ath79/dts/ar7161_netgear_wndr3700-v2.dts create mode 100644 target/linux/ath79/dts/ar7161_netgear_wndr3700.dts create mode 100644 target/linux/ath79/dts/ar7161_netgear_wndr3800.dts create mode 100644 target/linux/ath79/dts/ar7161_netgear_wndr3800ch.dts create mode 100644 target/linux/ath79/dts/ar7161_netgear_wndrmac-v1.dts create mode 100644 target/linux/ath79/dts/ar7161_netgear_wndrmac-v2.dts create mode 100644 target/linux/ath79/dts/ar7161_siemens_ws-ap3610.dts create mode 100644 target/linux/ath79/dts/ar7161_trendnet_tew-673gru.dts create mode 100644 target/linux/ath79/dts/ar7161_ubnt_routerstation-pro.dts create mode 100644 target/linux/ath79/dts/ar7161_ubnt_routerstation.dts create mode 100644 target/linux/ath79/dts/ar7161_ubnt_routerstation.dtsi create mode 100644 target/linux/ath79/dts/ar7240.dtsi create mode 100644 target/linux/ath79/dts/ar7240_buffalo_whr-g301n.dts create mode 100644 target/linux/ath79/dts/ar7240_dlink_dir-615-e4.dts create mode 100644 target/linux/ath79/dts/ar7240_engenius_enh202-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_netgear_wnr1000-v2.dts create mode 100644 target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dts create mode 100644 target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi create mode 100644 target/linux/ath79/dts/ar7240_on_n150r.dts create mode 100644 target/linux/ath79/dts/ar7240_openmesh_om2p-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink.dtsi create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wa.dtsi create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wa701nd-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wa730re-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wa801nd-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wa830re-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wa901nd-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wr.dtsi create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wr740n-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wr740n-v3.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wr741-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wr743nd-v1.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wr841-v5.dts create mode 100644 target/linux/ath79/dts/ar7240_tplink_tl-wr941-v4.dts create mode 100644 target/linux/ath79/dts/ar7240_ubnt_bullet-m-ar7240.dts create mode 100644 target/linux/ath79/dts/ar7241.dtsi create mode 100644 target/linux/ath79/dts/ar7241_netgear_wnr2000-v3.dts create mode 100644 target/linux/ath79/dts/ar7241_netgear_wnr2200-16m.dts create mode 100644 target/linux/ath79/dts/ar7241_netgear_wnr2200-8m.dts create mode 100644 target/linux/ath79/dts/ar7241_netgear_wnr2200.dtsi create mode 100644 target/linux/ath79/dts/ar7241_tplink.dtsi create mode 100644 target/linux/ath79/dts/ar7241_tplink_tl-mr3220-v1.dts create mode 100644 target/linux/ath79/dts/ar7241_tplink_tl-mr3420-v1.dts create mode 100644 target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi create mode 100644 target/linux/ath79/dts/ar7241_tplink_tl-wr841-v7.dts create mode 100644 target/linux/ath79/dts/ar7241_tplink_tl-wr842n-v1.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_airrouter.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_bullet-m-ar7241.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_nanobridge-m.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_nanostation-loco-m.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_nanostation-m.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_picostation-m.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_powerbridge-m.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_rocket-m.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_unifi-ap-outdoor-plus.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_unifi.dts create mode 100644 target/linux/ath79/dts/ar7241_ubnt_unifi.dtsi create mode 100644 target/linux/ath79/dts/ar7242.dtsi create mode 100644 target/linux/ath79/dts/ar7242_avm_fritz300e.dts create mode 100644 target/linux/ath79/dts/ar7242_buffalo_bhr-4grv.dts create mode 100644 target/linux/ath79/dts/ar7242_buffalo_wzr-bhr.dtsi create mode 100644 target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g302h-a1a0.dts create mode 100644 target/linux/ath79/dts/ar7242_buffalo_wzr-hp-g450h.dts create mode 100644 target/linux/ath79/dts/ar7242_engenius_eap350-v1.dts create mode 100644 target/linux/ath79/dts/ar7242_engenius_ecb350-v1.dts create mode 100644 target/linux/ath79/dts/ar7242_meraki_mr12.dts create mode 100644 target/linux/ath79/dts/ar7242_tplink_tl-wr2543-v1.dts create mode 100644 target/linux/ath79/dts/ar7242_ubnt_edgeswitch-5xp.dts create mode 100644 target/linux/ath79/dts/ar7242_ubnt_edgeswitch-8xp.dts create mode 100644 target/linux/ath79/dts/ar7242_ubnt_sw.dtsi create mode 100644 target/linux/ath79/dts/ar724x.dtsi create mode 100644 target/linux/ath79/dts/ar724x_senao_loader-4k.dtsi create mode 100644 target/linux/ath79/dts/ar724x_senao_loader-64k.dtsi create mode 100644 target/linux/ath79/dts/ar724x_ubnt_xm.dtsi create mode 100644 target/linux/ath79/dts/ar724x_ubnt_xm_outdoor.dtsi create mode 100644 target/linux/ath79/dts/ar9132.dtsi create mode 100644 target/linux/ath79/dts/ar9132_buffalo_wzr-hp-g300nh-rb.dts create mode 100644 target/linux/ath79/dts/ar9132_buffalo_wzr-hp-g300nh-s.dts create mode 100644 target/linux/ath79/dts/ar9132_buffalo_wzr-hp-g300nh.dtsi create mode 100644 target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts create mode 100644 target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts create mode 100644 target/linux/ath79/dts/ar9132_tplink_tl-wr941-v2.dts create mode 100644 target/linux/ath79/dts/ar9330.dtsi create mode 100644 target/linux/ath79/dts/ar9330_dlink_dir-505.dts create mode 100644 target/linux/ath79/dts/ar9330_glinet_gl-ar150.dts create mode 100644 target/linux/ath79/dts/ar9330_openmesh_om2p-lc.dts create mode 100644 target/linux/ath79/dts/ar9330_openmesh_om2p-v2.dts create mode 100644 target/linux/ath79/dts/ar9330_openmesh_om2p.dtsi create mode 100644 target/linux/ath79/dts/ar9330_pqi_air-pen.dts create mode 100644 target/linux/ath79/dts/ar9330_ziking_cpe46b.dts create mode 100644 target/linux/ath79/dts/ar9331.dtsi create mode 100644 target/linux/ath79/dts/ar9331_8dev_carambola2.dts create mode 100644 target/linux/ath79/dts/ar9331_alfa-network_ap121f.dts create mode 100644 target/linux/ath79/dts/ar9331_alfa-network_ap121f.dtsi create mode 100644 target/linux/ath79/dts/ar9331_alfa-network_ap121fe.dts create mode 100644 target/linux/ath79/dts/ar9331_arduino_yun.dts create mode 100644 target/linux/ath79/dts/ar9331_embeddedwireless_dorin.dts create mode 100644 target/linux/ath79/dts/ar9331_etactica_eg200.dts create mode 100644 target/linux/ath79/dts/ar9331_glinet_6408.dts create mode 100644 target/linux/ath79/dts/ar9331_glinet_6416.dts create mode 100644 target/linux/ath79/dts/ar9331_glinet_64xx.dtsi create mode 100644 target/linux/ath79/dts/ar9331_glinet_gl-mifi.dts create mode 100644 target/linux/ath79/dts/ar9331_glinet_gl-usb150.dts create mode 100644 target/linux/ath79/dts/ar9331_hak5_lan-turtle.dts create mode 100644 target/linux/ath79/dts/ar9331_hak5_lan-turtle.dtsi create mode 100644 target/linux/ath79/dts/ar9331_hak5_packet-squirrel.dts create mode 100644 target/linux/ath79/dts/ar9331_hak5_wifi-pineapple-nano.dts create mode 100644 target/linux/ath79/dts/ar9331_onion_omega.dts create mode 100644 target/linux/ath79/dts/ar9331_pisen_ts-d084.dts create mode 100644 target/linux/ath79/dts/ar9331_pisen_wmm003n.dts create mode 100644 target/linux/ath79/dts/ar9331_teltonika_rut230-v1.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-mr10u.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-mr3020-v1.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-mr3040-v2.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr703n.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr703n_tl-mr10u.dtsi create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr710n-8m.dtsi create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr710n-v1.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr710n-v2.1.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr710n.dtsi create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr740n-v4.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr740n-v5.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dts create mode 100644 target/linux/ath79/dts/ar9331_tplink_tl-wr741nd-v4.dtsi create mode 100644 target/linux/ath79/dts/ar9341.dtsi create mode 100644 target/linux/ath79/dts/ar9341_engenius_eap300-v2.dts create mode 100644 target/linux/ath79/dts/ar9341_engenius_ens202ext-v1.dts create mode 100644 target/linux/ath79/dts/ar9341_openmesh_om2p-hs-v1.dts create mode 100644 target/linux/ath79/dts/ar9341_openmesh_om2p-hs-v2.dts create mode 100644 target/linux/ath79/dts/ar9341_openmesh_om2p-hs-v3.dts create mode 100644 target/linux/ath79/dts/ar9341_openmesh_om2p-hs.dtsi create mode 100644 target/linux/ath79/dts/ar9341_pcs_cr3000.dts create mode 100644 target/linux/ath79/dts/ar9341_pisen_wmb001n.dts create mode 100644 target/linux/ath79/dts/ar9341_tplink.dtsi create mode 100644 target/linux/ath79/dts/ar9341_tplink_tl-mr3420-v2.dts create mode 100644 target/linux/ath79/dts/ar9341_tplink_tl-wa.dtsi create mode 100644 target/linux/ath79/dts/ar9341_tplink_tl-wa850re-v1.dts create mode 100644 target/linux/ath79/dts/ar9341_tplink_tl-wa860re-v1.dts create mode 100644 target/linux/ath79/dts/ar9341_tplink_tl-wa901nd-v3.dts create mode 100644 target/linux/ath79/dts/ar9341_tplink_tl-wr841-v8.dts create mode 100644 target/linux/ath79/dts/ar9341_tplink_tl-wr842n-v2.dts create mode 100644 target/linux/ath79/dts/ar9342_iodata_etg3-r.dts create mode 100644 target/linux/ath79/dts/ar9342_ruckus_zf7321.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_aircube-ac.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_bullet-ac.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_bullet-m-xw.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_lap-120.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_litebeam-ac-gen2.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac-gen2.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_nanobeam-m5-xw.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_nanostation-ac-loco.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_nanostation-ac.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_nanostation-loco-m-xw.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_nanostation-m-xw.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_powerbeam-5ac-gen2.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_powerbeam-m2-xw.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_powerbeam-m5-xw.dts create mode 100644 target/linux/ath79/dts/ar9342_ubnt_wa.dtsi create mode 100644 target/linux/ath79/dts/ar9342_ubnt_wa_1port.dtsi create mode 100644 target/linux/ath79/dts/ar9342_ubnt_wa_2port.dtsi create mode 100644 target/linux/ath79/dts/ar9342_ubnt_xw.dtsi create mode 100644 target/linux/ath79/dts/ar9344.dtsi create mode 100644 target/linux/ath79/dts/ar9344_aerohive_hiveap-121.dts create mode 100644 target/linux/ath79/dts/ar9344_alfa-network_n5q.dts create mode 100644 target/linux/ath79/dts/ar9344_araknis_an-300-ap-i-n.dts create mode 100644 target/linux/ath79/dts/ar9344_atheros_db120.dts create mode 100644 target/linux/ath79/dts/ar9344_comfast_cf-e120a-v3.dts create mode 100644 target/linux/ath79/dts/ar9344_compex_wpj344-16m.dts create mode 100644 target/linux/ath79/dts/ar9344_dlink_dir-825-c1.dts create mode 100644 target/linux/ath79/dts/ar9344_dlink_dir-835-a1.dts create mode 100644 target/linux/ath79/dts/ar9344_dlink_dir-8x5.dtsi create mode 100644 target/linux/ath79/dts/ar9344_embeddedwireless_balin.dts create mode 100644 target/linux/ath79/dts/ar9344_engenius_eap600.dts create mode 100644 target/linux/ath79/dts/ar9344_engenius_ecb600.dts create mode 100644 target/linux/ath79/dts/ar9344_engenius_exx600.dtsi create mode 100644 target/linux/ath79/dts/ar9344_enterasys_ws-ap3705i.dts create mode 100644 target/linux/ath79/dts/ar9344_mercury_mw4530r-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_mikrotik_routerboard-16m-nor.dtsi create mode 100644 target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5n.dtsi create mode 100644 target/linux/ath79/dts/ar9344_netgear_wndr.dtsi create mode 100644 target/linux/ath79/dts/ar9344_netgear_wndr3700-v4.dts create mode 100644 target/linux/ath79/dts/ar9344_netgear_wndr4300.dts create mode 100644 target/linux/ath79/dts/ar9344_netgear_wndr4300sw.dts create mode 100644 target/linux/ath79/dts/ar9344_netgear_wndr4300tn.dts create mode 100644 target/linux/ath79/dts/ar9344_netgear_wndr_usb.dtsi create mode 100644 target/linux/ath79/dts/ar9344_netgear_wndr_wan.dtsi create mode 100644 target/linux/ath79/dts/ar9344_ocedo_raccoon.dts create mode 100644 target/linux/ath79/dts/ar9344_openmesh_mr600-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_openmesh_mr600-v2.dts create mode 100644 target/linux/ath79/dts/ar9344_openmesh_mr600.dtsi create mode 100644 target/linux/ath79/dts/ar9344_openmesh_om5p-an.dts create mode 100644 target/linux/ath79/dts/ar9344_openmesh_om5p.dts create mode 100644 target/linux/ath79/dts/ar9344_pcs_cap324.dts create mode 100644 target/linux/ath79/dts/ar9344_pcs_cr5000.dts create mode 100644 target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-16m.dts create mode 100644 target/linux/ath79/dts/ar9344_qxwlan_e750a-v4-8m.dts create mode 100644 target/linux/ath79/dts/ar9344_qxwlan_e750g-v8-16m.dts create mode 100644 target/linux/ath79/dts/ar9344_qxwlan_e750g-v8-8m.dts create mode 100644 target/linux/ath79/dts/ar9344_qxwlan_e750x.dtsi create mode 100644 target/linux/ath79/dts/ar9344_ruckus_zf7372.dts create mode 100644 target/linux/ath79/dts/ar9344_samsung_wam250.dts create mode 100644 target/linux/ath79/dts/ar9344_teltonika_rut955-h7v3c0.dts create mode 100644 target/linux/ath79/dts/ar9344_teltonika_rut955.dts create mode 100644 target/linux/ath79/dts/ar9344_teltonika_rut9xx.dtsi create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe.dtsi create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe210-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe220-v2.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe510-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe510-v2.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe510-v3.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe610-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe610-v2.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe_1port.dtsi create mode 100644 target/linux/ath79/dts/ar9344_tplink_cpe_2port.dtsi create mode 100644 target/linux/ath79/dts/ar9344_tplink_tl-wdr3500-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_tl-wdr3600-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1-il.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_tl-wdr4300-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_tl-wdr4300.dtsi create mode 100644 target/linux/ath79/dts/ar9344_tplink_tl-wdr4310-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_tl-wdrxxxx.dtsi create mode 100644 target/linux/ath79/dts/ar9344_tplink_tl-wr841hp-v2.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_wbs210-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_wbs210-v2.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_wbs510-v1.dts create mode 100644 target/linux/ath79/dts/ar9344_tplink_wbs510-v2.dts create mode 100644 target/linux/ath79/dts/ar9344_ubnt_unifi-ap-pro.dts create mode 100644 target/linux/ath79/dts/ar9344_wd_mynet-n600.dts create mode 100644 target/linux/ath79/dts/ar9344_wd_mynet-n750.dts create mode 100644 target/linux/ath79/dts/ar9344_wd_mynet-nxxx.dtsi create mode 100644 target/linux/ath79/dts/ar9344_wd_mynet-wifi-rangeextender.dts create mode 100644 target/linux/ath79/dts/ar9344_winchannel_wb2000.dts create mode 100644 target/linux/ath79/dts/ar9344_zbtlink_zbt-wd323.dts create mode 100644 target/linux/ath79/dts/ar934x.dtsi create mode 100644 target/linux/ath79/dts/ar934x_ruckus_zf73xx.dtsi create mode 100644 target/linux/ath79/dts/ar934x_senao_loader.dtsi create mode 100644 target/linux/ath79/dts/ath79.dtsi create mode 100644 target/linux/ath79/dts/qca9531_8dev_lima.dts create mode 100644 target/linux/ath79/dts/qca9531_alfa-network_n2q.dts create mode 100644 target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts create mode 100644 target/linux/ath79/dts/qca9531_alfa-network_r36a.dts create mode 100644 target/linux/ath79/dts/qca9531_alfa-network_r36a.dtsi create mode 100644 target/linux/ath79/dts/qca9531_alfa-network_tube-2hq.dts create mode 100644 target/linux/ath79/dts/qca9531_comfast_cf-e130n-v2.dts create mode 100644 target/linux/ath79/dts/qca9531_comfast_cf-e314n-v2.dts create mode 100644 target/linux/ath79/dts/qca9531_comfast_cf-e5.dts create mode 100644 target/linux/ath79/dts/qca9531_compex_wpj531-16m.dts create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-ar300m-lite.dts create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-ar300m-nand.dts create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-ar300m-nor.dts create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-ar300m16.dts create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-x300b.dts create mode 100644 target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts create mode 100644 target/linux/ath79/dts/qca9531_letv_lba-047-ch.dts create mode 100644 target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-16m.dts create mode 100644 target/linux/ath79/dts/qca9531_qxwlan_e600g-v2-8m.dts create mode 100644 target/linux/ath79/dts/qca9531_qxwlan_e600g.dtsi create mode 100644 target/linux/ath79/dts/qca9531_telco_t1.dts create mode 100644 target/linux/ath79/dts/qca9531_tplink_tl-mr3420-v3.dts create mode 100644 target/linux/ath79/dts/qca9531_tplink_tl-mr6400-v1.dts create mode 100644 target/linux/ath79/dts/qca9531_tplink_tl-wr810n-v1.dts create mode 100644 target/linux/ath79/dts/qca9531_wallys_dr531.dts create mode 100644 target/linux/ath79/dts/qca9533_comfast_cf-e110n-v2.dts create mode 100644 target/linux/ath79/dts/qca9533_dlink_dap-13xx.dtsi create mode 100644 target/linux/ath79/dts/qca9533_dlink_dap-2230-a1.dts create mode 100644 target/linux/ath79/dts/qca9533_dlink_dap-3320-a1.dts create mode 100644 target/linux/ath79/dts/qca9533_mikrotik_routerboard-16m.dtsi create mode 100644 target/linux/ath79/dts/qca9533_mikrotik_routerboard-95x.dtsi create mode 100644 target/linux/ath79/dts/qca9533_mikrotik_routerboard-lhg-hb.dtsi create mode 100644 target/linux/ath79/dts/qca9533_openmesh_om2p-hs-v4.dts create mode 100644 target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dts create mode 100644 target/linux/ath79/dts/qca9533_openmesh_om2p-v4.dtsi create mode 100644 target/linux/ath79/dts/qca9533_plasmacloud_pa300.dts create mode 100644 target/linux/ath79/dts/qca9533_plasmacloud_pa300.dtsi create mode 100644 target/linux/ath79/dts/qca9533_plasmacloud_pa300e.dts create mode 100644 target/linux/ath79/dts/qca9533_qca_ap143-16m.dts create mode 100644 target/linux/ath79/dts/qca9533_qca_ap143-8m.dts create mode 100644 target/linux/ath79/dts/qca9533_qca_ap143.dtsi create mode 100644 target/linux/ath79/dts/qca9533_tplink_cpe210-v2.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_cpe210-v3.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_cpe210.dtsi create mode 100644 target/linux/ath79/dts/qca9533_tplink_cpe220-v3.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_cpexxx.dtsi create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wa801nd-v3.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wa801nd-v4.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wa801nd.dtsi create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wa850re-v2.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr802n-v1.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr802n-v2.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr802n.dtsi create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr810n-v2.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr841-v10.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr841-v11.dtsi create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr841-v12.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr841.dtsi create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr841hp-v3.dts create mode 100644 target/linux/ath79/dts/qca9533_tplink_tl-wr842n-v3.dts create mode 100644 target/linux/ath79/dts/qca9533_ubnt_aircube-isp.dts create mode 100644 target/linux/ath79/dts/qca9533_yuncore_a930.dts create mode 100644 target/linux/ath79/dts/qca953x.dtsi create mode 100644 target/linux/ath79/dts/qca953x_dlink_dap-2xxx.dtsi create mode 100644 target/linux/ath79/dts/qca953x_tplink_tl-wr810n.dtsi create mode 100644 target/linux/ath79/dts/qca9556_avm_fritz-repeater.dtsi create mode 100644 target/linux/ath79/dts/qca9556_avm_fritz450e.dts create mode 100644 target/linux/ath79/dts/qca9557_8dev_rambutan.dts create mode 100644 target/linux/ath79/dts/qca9557_buffalo_bhr-4grv2.dts create mode 100644 target/linux/ath79/dts/qca9557_iodata_wn-ac-dgr.dtsi create mode 100644 target/linux/ath79/dts/qca9558_comfast_cf-wr650ac.dtsi create mode 100644 target/linux/ath79/dts/qca9558_compex_wpj558-16m.dts create mode 100644 target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi create mode 100644 target/linux/ath79/dts/qca9558_jjplus_jwap230.dts create mode 100644 target/linux/ath79/dts/qca9558_librerouter_librerouter-v1.dts create mode 100644 target/linux/ath79/dts/qca9558_linksys_ea4500-v3.dts create mode 100644 target/linux/ath79/dts/qca9558_mikrotik_routerboard-92x.dtsi create mode 100644 target/linux/ath79/dts/qca9558_mikrotik_routerboard-96x.dtsi create mode 100644 target/linux/ath79/dts/qca9558_netgear_ex7300.dtsi create mode 100644 target/linux/ath79/dts/qca9558_ocedo_ursus.dts create mode 100644 target/linux/ath79/dts/qca9558_openmesh_a60.dtsi create mode 100644 target/linux/ath79/dts/qca9558_openmesh_mr.dtsi create mode 100644 target/linux/ath79/dts/qca9558_openmesh_mr900-v1.dts create mode 100644 target/linux/ath79/dts/qca9558_openmesh_mr900-v2.dts create mode 100644 target/linux/ath79/dts/qca9558_qxwlan_e558-v2-16m.dts create mode 100644 target/linux/ath79/dts/qca9558_qxwlan_e558-v2-8m.dts create mode 100644 target/linux/ath79/dts/qca9558_qxwlan_e558.dtsi create mode 100644 target/linux/ath79/dts/qca9558_sophos_ap.dtsi create mode 100644 target/linux/ath79/dts/qca9558_tplink_archer-c.dtsi create mode 100644 target/linux/ath79/dts/qca9558_tplink_archer-c5-v1.dts create mode 100644 target/linux/ath79/dts/qca9558_tplink_archer-c7-v1.dts create mode 100644 target/linux/ath79/dts/qca9558_tplink_archer-c7-v2.dts create mode 100644 target/linux/ath79/dts/qca9558_tplink_archer-d7.dtsi create mode 100644 target/linux/ath79/dts/qca9558_tplink_rex5x.dtsi create mode 100644 target/linux/ath79/dts/qca9558_tplink_tl-wdr4900-v2.dts create mode 100644 target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd-v2.dts create mode 100644 target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd-v3.dts create mode 100644 target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi create mode 100644 target/linux/ath79/dts/qca9558_tplink_tl-wr1045nd-v2.dts create mode 100644 target/linux/ath79/dts/qca9558_tplink_tl-wr941n-v7-cn.dts create mode 100644 target/linux/ath79/dts/qca9558_ubnt_nanobeam-ac-xc.dts create mode 100644 target/linux/ath79/dts/qca9558_ubnt_powerbeam-5ac-500.dts create mode 100644 target/linux/ath79/dts/qca9558_ubnt_rocket-5ac-lite.dts create mode 100644 target/linux/ath79/dts/qca955x.dtsi create mode 100644 target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi create mode 100644 target/linux/ath79/dts/qca955x_senao_loader.dtsi create mode 100644 target/linux/ath79/dts/qca955x_ubnt_xc.dtsi create mode 100644 target/linux/ath79/dts/qca955x_zyxel_nbg6x16.dtsi create mode 100644 target/linux/ath79/dts/qca9561_avm_fritz4020.dts create mode 100644 target/linux/ath79/dts/qca9561_tplink_archer-c5x.dtsi create mode 100644 target/linux/ath79/dts/qca9561_tplink_archer-c6x.dtsi create mode 100644 target/linux/ath79/dts/qca9561_xiaomi_mi-router-4q.dts create mode 100644 target/linux/ath79/dts/qca9563_compex_wpj563.dts create mode 100644 target/linux/ath79/dts/qca9563_dlink_dir-842-c.dtsi create mode 100644 target/linux/ath79/dts/qca9563_elecom_wrc-300ghbk2-i.dts create mode 100644 target/linux/ath79/dts/qca9563_elecom_wrc-ghbk2-i.dtsi create mode 100644 target/linux/ath79/dts/qca9563_netgear_wndr.dtsi create mode 100644 target/linux/ath79/dts/qca9563_netgear_wndr4300-v2.dts create mode 100644 target/linux/ath79/dts/qca9563_netgear_wndr4500-v3.dts create mode 100644 target/linux/ath79/dts/qca9563_qxwlan_e1700ac.dtsi create mode 100644 target/linux/ath79/dts/qca9563_rosinson_wr818.dts create mode 100644 target/linux/ath79/dts/qca9563_tplink_archer-x6-v2.dtsi create mode 100644 target/linux/ath79/dts/qca9563_tplink_archer-x7-v5.dtsi create mode 100644 target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi create mode 100644 target/linux/ath79/dts/qca9563_tplink_re450.dtsi create mode 100644 target/linux/ath79/dts/qca9563_tplink_tl-wpa8630.dtsi create mode 100644 target/linux/ath79/dts/qca9563_tplink_tl-wr1043n-v5.dts create mode 100644 target/linux/ath79/dts/qca9563_tplink_tl-wr1043n.dtsi create mode 100644 target/linux/ath79/dts/qca9563_tplink_tl-wr1043nd-v4.dts create mode 100644 target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dts create mode 100644 target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi create mode 100644 target/linux/ath79/dts/qca9563_ubnt_unifiac-lr.dts create mode 100644 target/linux/ath79/dts/qca9563_ubnt_unifiac-mesh-pro.dts create mode 100644 target/linux/ath79/dts/qca9563_ubnt_unifiac-mesh.dts create mode 100644 target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dts create mode 100644 target/linux/ath79/dts/qca9563_ubnt_unifiac-pro.dtsi create mode 100644 target/linux/ath79/dts/qca9563_ubnt_unifiac.dtsi create mode 100644 target/linux/ath79/dts/qca9563_yuncore_xd4200.dtsi create mode 100644 target/linux/ath79/dts/qca9563_zte_mf286ar.dtsi create mode 100644 target/linux/ath79/dts/qca956x.dtsi create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wa901nd-v4.dts create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wa901nd-v5.dts create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wa901nd.dtsi create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dts create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v4.dts create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v6.dts create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wr941hp-v1.dts create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wr941nd-v6.dts create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wr94x.dtsi create mode 100644 target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi create mode 100644 target/linux/ath79/files/arch/mips/include/asm/fw/myloader/myloader.h create mode 100644 target/linux/ath79/files/drivers/gpio/gpio-latch.c create mode 100644 target/linux/ath79/files/drivers/gpio/gpio-rb4xx.c create mode 100644 target/linux/ath79/files/drivers/gpio/gpio-rb91x-key.c create mode 100644 target/linux/ath79/files/drivers/mfd/rb4xx-cpld.c create mode 100644 target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c create mode 100644 target/linux/ath79/files/drivers/mtd/nand/raw/nand_rb4xx.c create mode 100644 target/linux/ath79/files/drivers/mtd/nand/raw/rb91x_nand.c create mode 100644 target/linux/ath79/files/drivers/mtd/parsers/parser_cybertan.c create mode 100644 target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/Kconfig create mode 100644 target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/Makefile create mode 100644 target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h create mode 100644 target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_debugfs.c create mode 100644 target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c create mode 100644 target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_gmac.c create mode 100644 target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c create mode 100644 target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_mdio.c create mode 100644 target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_phy.c create mode 100644 target/linux/ath79/files/include/mfd/rb4xx-cpld.h create mode 100644 target/linux/ath79/generic/base-files/etc/board.d/01_leds create mode 100644 target/linux/ath79/generic/base-files/etc/board.d/02_network create mode 100644 target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches create mode 100644 target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom create mode 100644 target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac create mode 100755 target/linux/ath79/generic/base-files/etc/init.d/bootcount create mode 100644 target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration create mode 100644 target/linux/ath79/generic/base-files/etc/uci-defaults/05_fix-compat-version create mode 100644 target/linux/ath79/generic/base-files/etc/uci-defaults/09_fix-checksum create mode 100644 target/linux/ath79/generic/base-files/lib/functions/k2t.sh create mode 100644 target/linux/ath79/generic/base-files/lib/preinit/10_fix_eth_mac.sh create mode 100644 target/linux/ath79/generic/base-files/lib/upgrade/dualboot_datachk.sh create mode 100644 target/linux/ath79/generic/base-files/lib/upgrade/failsafe_datachk.sh create mode 100644 target/linux/ath79/generic/base-files/lib/upgrade/openmesh.sh create mode 100644 target/linux/ath79/generic/base-files/lib/upgrade/platform.sh create mode 100644 target/linux/ath79/generic/base-files/lib/upgrade/redboot-fis.sh create mode 100644 target/linux/ath79/generic/config-default create mode 100644 target/linux/ath79/generic/target.mk create mode 100644 target/linux/ath79/image/Makefile create mode 100644 target/linux/ath79/image/common-buffalo.mk create mode 100644 target/linux/ath79/image/common-netgear.mk create mode 100644 target/linux/ath79/image/common-senao.mk create mode 100644 target/linux/ath79/image/common-tp-link.mk create mode 100644 target/linux/ath79/image/common-ubnt.mk create mode 100644 target/linux/ath79/image/common-yuncore.mk create mode 100644 target/linux/ath79/image/generic-tp-link.mk create mode 100644 target/linux/ath79/image/generic.mk create mode 100644 target/linux/ath79/image/lzma-loader/Makefile create mode 100644 target/linux/ath79/image/lzma-loader/src/LzmaDecode.c create mode 100644 target/linux/ath79/image/lzma-loader/src/LzmaDecode.h create mode 100644 target/linux/ath79/image/lzma-loader/src/LzmaTypes.h create mode 100644 target/linux/ath79/image/lzma-loader/src/Makefile create mode 100644 target/linux/ath79/image/lzma-loader/src/ar71xx_regs.h create mode 100644 target/linux/ath79/image/lzma-loader/src/board.c create mode 100644 target/linux/ath79/image/lzma-loader/src/cache.c create mode 100644 target/linux/ath79/image/lzma-loader/src/cache.h create mode 100644 target/linux/ath79/image/lzma-loader/src/cacheops.h create mode 100644 target/linux/ath79/image/lzma-loader/src/config.h create mode 100644 target/linux/ath79/image/lzma-loader/src/cp0regdef.h create mode 100644 target/linux/ath79/image/lzma-loader/src/head.S create mode 100644 target/linux/ath79/image/lzma-loader/src/loader.c create mode 100644 target/linux/ath79/image/lzma-loader/src/loader.lds create mode 100644 target/linux/ath79/image/lzma-loader/src/loader2.lds create mode 100644 target/linux/ath79/image/lzma-loader/src/lzma-data.lds create mode 100644 target/linux/ath79/image/lzma-loader/src/printf.c create mode 100644 target/linux/ath79/image/lzma-loader/src/printf.h create mode 100644 target/linux/ath79/image/nand.mk create mode 100644 target/linux/ath79/modules.mk create mode 100644 target/linux/ath79/nand/base-files/etc/board.d/01_leds create mode 100644 target/linux/ath79/nand/base-files/etc/board.d/02_network create mode 100644 target/linux/ath79/nand/base-files/etc/board.d/03_gpio_switches create mode 100644 target/linux/ath79/nand/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom create mode 100644 target/linux/ath79/nand/base-files/etc/hotplug.d/ieee80211/10-fix-wifi-mac create mode 100755 target/linux/ath79/nand/base-files/etc/init.d/bootcount create mode 100644 target/linux/ath79/nand/base-files/etc/uci-defaults/04_led_migration create mode 100644 target/linux/ath79/nand/base-files/lib/preinit/10_fix_eth_mac.sh create mode 100644 target/linux/ath79/nand/base-files/lib/upgrade/glinet.sh create mode 100644 target/linux/ath79/nand/base-files/lib/upgrade/platform.sh create mode 100644 target/linux/ath79/nand/config-default create mode 100644 target/linux/ath79/nand/target.mk create mode 100644 target/linux/ath79/patches-5.10/0003-leds-add-reset-controller-based-driver.patch create mode 100644 target/linux/ath79/patches-5.10/0004-phy-add-ath79-usb-phys.patch create mode 100644 target/linux/ath79/patches-5.10/0005-usb-add-more-OF-quirk-properties.patch create mode 100644 target/linux/ath79/patches-5.10/0007-irqchip-irq-ath79-intc-add-irq-cascade-driver-for-QC.patch create mode 100644 target/linux/ath79/patches-5.10/0008-irqchip-irq-ath79-cpu-drop-OF-init-helper.patch create mode 100644 target/linux/ath79/patches-5.10/0017-dt-bindings-PCI-qcom-ar7100-adds-binding-doc.patch create mode 100644 target/linux/ath79/patches-5.10/0018-MIPS-pci-ar71xx-convert-to-OF.patch create mode 100644 target/linux/ath79/patches-5.10/0019-dt-bindings-PCI-qcom-ar7240-adds-binding-doc.patch create mode 100644 target/linux/ath79/patches-5.10/0020-MIPS-pci-ar724x-convert-to-OF.patch create mode 100644 target/linux/ath79/patches-5.10/0032-MIPS-ath79-sanitize-symbols.patch create mode 100644 target/linux/ath79/patches-5.10/0033-spi-ath79-drop-pdata-support.patch create mode 100644 target/linux/ath79/patches-5.10/0034-MIPS-ath79-ath9k-exports.patch create mode 100644 target/linux/ath79/patches-5.10/0036-MIPS-ath79-remove-irq-code-from-pci.patch create mode 100644 target/linux/ath79/patches-5.10/0037-missing-registers.patch create mode 100644 target/linux/ath79/patches-5.10/0038-MIPS-ath79-add-missing-QCA955x-GMAC-registers.patch create mode 100644 target/linux/ath79/patches-5.10/0039-MIPS-ath79-export-UART1-reference-clock.patch create mode 100644 target/linux/ath79/patches-5.10/004-register_gpio_driver_earlier.patch create mode 100644 target/linux/ath79/patches-5.10/0040-ath79-sgmii-config.patch create mode 100644 target/linux/ath79/patches-5.10/0052-mtd-spi-nor-use-4-bit-locking-for-MX25L12805D.patch create mode 100644 target/linux/ath79/patches-5.10/0062-MIPS-pci-ar724x-add-QCA9550-reset-sequence.patch create mode 100644 target/linux/ath79/patches-5.10/401-mtd-nor-support-mtd-name-from-device-tree.patch create mode 100644 target/linux/ath79/patches-5.10/402-v5.17-spi-ar934x-fix-transfer-and-word-delays.patch create mode 100644 target/linux/ath79/patches-5.10/403-v5.17-spi-ar934x-fix-transfer-size.patch create mode 100644 target/linux/ath79/patches-5.10/404-mtd-cybertan-trx-parser.patch create mode 100644 target/linux/ath79/patches-5.10/408-mtd-redboot_partition_scan.patch create mode 100644 target/linux/ath79/patches-5.10/410-spi-ath79-Implement-the-spi_mem-interface.patch create mode 100644 target/linux/ath79/patches-5.10/412-spi-ath79-set-number-of-chipselect-lines.patch create mode 100644 target/linux/ath79/patches-5.10/420-net-use-downstream-ag71xx.patch create mode 100644 target/linux/ath79/patches-5.10/425-at803x-allow-sgmii-aneg-override.patch create mode 100644 target/linux/ath79/patches-5.10/430-drivers-link-spi-before-mtd.patch create mode 100644 target/linux/ath79/patches-5.10/440-mtd-ar934x-nand-driver.patch create mode 100644 target/linux/ath79/patches-5.10/470-MIPS-ath79-swizzle-pci-address-for-ar71xx.patch create mode 100644 target/linux/ath79/patches-5.10/900-mdio_bitbang_ignore_ta_value.patch create mode 100644 target/linux/ath79/patches-5.10/901-phy-mdio-bitbang-prevent-rescheduling-during-command.patch create mode 100644 target/linux/ath79/patches-5.10/910-unaligned_access_hacks.patch create mode 100644 target/linux/ath79/patches-5.10/920-mikrotik-rb4xx.patch create mode 100644 target/linux/ath79/patches-5.10/930-ar8216-make-reg-access-atomic.patch create mode 100644 target/linux/ath79/patches-5.10/939-mikrotik-rb91x.patch create mode 100644 target/linux/ath79/patches-5.10/940-ath79-add-support-for-booting-QCN550x.patch create mode 100644 target/linux/generic/PATCHES create mode 100644 target/linux/generic/backport-5.10/010-Kbuild-don-t-hardcode-path-to-awk-in-scripts-ld-vers.patch create mode 100644 target/linux/generic/backport-5.10/011-kbuild-export-SUBARCH.patch create mode 100644 target/linux/generic/backport-5.10/026-power-reset-linkstation-poweroff-add-missing-put_dev.patch create mode 100644 target/linux/generic/backport-5.10/050-v5.16-00-MIPS-uasm-Enable-muhu-opcode-for-MIPS-R6.patch create mode 100644 target/linux/generic/backport-5.10/050-v5.16-01-mips-uasm-Add-workaround-for-Loongson-2F-nop-CPU-err.patch create mode 100644 target/linux/generic/backport-5.10/050-v5.16-02-mips-bpf-Add-eBPF-JIT-for-32-bit-MIPS.patch create mode 100644 target/linux/generic/backport-5.10/050-v5.16-03-mips-bpf-Add-new-eBPF-JIT-for-64-bit-MIPS.patch create mode 100644 target/linux/generic/backport-5.10/050-v5.16-04-mips-bpf-Add-JIT-workarounds-for-CPU-errata.patch create mode 100644 target/linux/generic/backport-5.10/050-v5.16-05-mips-bpf-Enable-eBPF-JITs.patch create mode 100644 target/linux/generic/backport-5.10/050-v5.16-06-mips-bpf-Remove-old-BPF-JIT-implementations.patch create mode 100644 target/linux/generic/backport-5.10/071-crypto-arm-chacha-neon-optimize-for-non-block-size-m.patch create mode 100644 target/linux/generic/backport-5.10/072-crypto-arm-chacha-neon-add-missing-counter-increment.patch create mode 100644 target/linux/generic/backport-5.10/080-wireguard-peer-put-frequently-used-members-above-cac.patch create mode 100644 target/linux/generic/backport-5.10/081-net-next-regmap-allow-to-define-reg_update_bits-for-no-bus.patch create mode 100644 target/linux/generic/backport-5.10/103-v5.13-MIPS-select-CPU_MIPS64-for-remaining-MIPS64-CPUs.patch create mode 100644 target/linux/generic/backport-5.10/311-v5.11-MIPS-zboot-put-appended-dtb-into-a-section.patch create mode 100644 target/linux/generic/backport-5.10/343-netfilter-nft_flow_offload-handle-netdevice-events-f.patch create mode 100644 target/linux/generic/backport-5.10/401-v5.11-dt-bindings-mtd-convert-fixed-partitions-to-the-json.patch create mode 100644 target/linux/generic/backport-5.10/402-v5.12-0001-dt-bindings-mtd-move-partition-binding-to-its-own-fi.patch create mode 100644 target/linux/generic/backport-5.10/402-v5.12-0002-dt-bindings-mtd-add-binding-for-BCM4908-partitions.patch create mode 100644 target/linux/generic/backport-5.10/403-v5.13-mtd-parsers-ofpart-support-BCM4908-fixed-partitions.patch create mode 100644 target/linux/generic/backport-5.10/404-v5.13-mtd-parsers-ofpart-limit-parsing-of-deprecated-DT-sy.patch create mode 100644 target/linux/generic/backport-5.10/405-v5.13-mtd-parsers-ofpart-make-symbol-bcm4908_partitions_qu.patch create mode 100644 target/linux/generic/backport-5.10/406-v5.13-0001-mtd-core-add-nvmem-cells-compatible-to-parse-mtd-as-.patch create mode 100644 target/linux/generic/backport-5.10/406-v5.13-0002-dt-bindings-nvmem-drop-nodename-restriction.patch create mode 100644 target/linux/generic/backport-5.10/406-v5.13-0003-dt-bindings-mtd-Document-use-of-nvmem-cells-compatib.patch create mode 100644 target/linux/generic/backport-5.10/407-v5.13-0001-dt-bindings-mtd-add-binding-for-Linksys-Northstar-pa.patch create mode 100644 target/linux/generic/backport-5.10/407-v5.13-0002-mtd-parsers-ofpart-support-Linksys-Northstar-partiti.patch create mode 100644 target/linux/generic/backport-5.10/408-v5.13-mtd-cfi_cmdset_0002-Disable-buffered-writes-for-AMD.patch create mode 100644 target/linux/generic/backport-5.10/409-v5.14-0001-dt-bindings-mtd-brcm-trx-Add-brcm-trx-magic.patch create mode 100644 target/linux/generic/backport-5.10/409-v5.14-0002-mtd-parsers-trx-Allow-to-specify-brcm-trx-magic-in-D.patch create mode 100644 target/linux/generic/backport-5.10/409-v5.14-0003-mtd-parsers-trx-Allow-to-use-TRX-parser-on-Mediatek-.patch create mode 100644 target/linux/generic/backport-5.10/410-mtd-next-mtd-parsers-trx-allow-to-use-on-MediaTek-MIPS-SoCs.patch create mode 100644 target/linux/generic/backport-5.10/412-v5.19-mtd-call-of_platform_populate-for-MTD-partitions.patch create mode 100644 target/linux/generic/backport-5.10/413-v6.0-mtd-next-mtd-core-introduce-of-support-for-dynamic-partitions.patch create mode 100644 target/linux/generic/backport-5.10/414-v6.1-mtd-allow-getting-MTD-device-associated-with-a-speci.patch create mode 100644 target/linux/generic/backport-5.10/415-v6.0-mtd-core-check-partition-before-dereference.patch create mode 100644 target/linux/generic/backport-5.10/416-v6.1-mtd-core-add-missing-of_node_get-in-dynamic-partitio.patch create mode 100644 target/linux/generic/backport-5.10/417-v6.2-0001-mtd-core-simplify-a-bit-code-find-partition-matching.patch create mode 100644 target/linux/generic/backport-5.10/417-v6.2-0002-mtd-core-try-to-find-OF-node-for-every-MTD-partition.patch create mode 100644 target/linux/generic/backport-5.10/418-v6.2-mtd-core-set-ROOT_DEV-for-partitions-marked-as-rootf.patch create mode 100644 target/linux/generic/backport-5.10/421-v6.2-mtd-parsers-add-TP-Link-SafeLoader-partitions-table-.patch create mode 100644 target/linux/generic/backport-5.10/500-v5.13-ubifs-default-to-zstd-compression.patch create mode 100644 target/linux/generic/backport-5.10/600-v5.12-net-extract-napi-poll-functionality-to-__napi_poll.patch create mode 100644 target/linux/generic/backport-5.10/601-v5.12-net-implement-threaded-able-napi-poll-loop-support.patch create mode 100644 target/linux/generic/backport-5.10/602-v5.12-net-add-sysfs-attribute-to-control-napi-threaded-mod.patch create mode 100644 target/linux/generic/backport-5.10/603-v5.12-net-fix-race-between-napi-kthread-mode-and-busy-poll.patch create mode 100644 target/linux/generic/backport-5.10/604-v5.12-net-fix-hangup-on-napi_disable-for-threaded-napi.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-00-netfilter-flowtable-add-hash-offset-field-to-tuple.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-01-netfilter-flowtable-separate-replace-destroy-and-sta.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-03-netfilter-conntrack-Remove-unused-variable-declarati.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-04-netfilter-flowtable-consolidate-skb_try_make_writabl.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-05-netfilter-flowtable-move-skb_try_make_writable-befor.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-06-netfilter-flowtable-move-FLOW_OFFLOAD_DIR_MAX-away-f.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-07-netfilter-flowtable-fast-NAT-functions-never-fail.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-08-netfilter-flowtable-call-dst_check-to-fall-back-to-c.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-09-netfilter-flowtable-refresh-timeout-after-dst-and-wr.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-10-netfilter-nftables-update-table-flags-from-the-commi.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-11-net-resolve-forwarding-path-from-virtual-netdevice-a.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-12-net-8021q-resolve-forwarding-path-for-vlan-devices.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-13-net-bridge-resolve-forwarding-path-for-bridge-device.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-14-net-bridge-resolve-forwarding-path-for-VLAN-tag-acti.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-15-net-ppp-resolve-forwarding-path-for-bridge-pppoe-dev.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-16-net-dsa-resolve-forwarding-path-for-dsa-slave-ports.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-17-netfilter-flowtable-add-xmit-path-types.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-18-netfilter-flowtable-use-dev_fill_forward_path-to-obt.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-19-netfilter-flowtable-use-dev_fill_forward_path-to-obt.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-20-netfilter-flowtable-add-vlan-support.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-21-netfilter-flowtable-add-bridge-vlan-filtering-suppor.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-22-netfilter-flowtable-add-pppoe-support.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-23-netfilter-flowtable-add-dsa-support.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-24-selftests-netfilter-flowtable-bridge-and-vlan-suppor.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-25-netfilter-flowtable-add-offload-support-for-xmit-pat.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-26-netfilter-nft_flow_offload-use-direct-xmit-if-hardwa.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-27-netfilter-flowtable-bridge-vlan-hardware-offload-and.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-28-net-flow_offload-add-FLOW_ACTION_PPPOE_PUSH.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-29-netfilter-flowtable-support-for-FLOW_ACTION_PPPOE_PU.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-30-dsa-slave-add-support-for-TC_SETUP_FT.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-31-net-ethernet-mtk_eth_soc-fix-parsing-packets-in-GDM.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-32-net-ethernet-mtk_eth_soc-add-support-for-initializin.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-33-net-ethernet-mtk_eth_soc-add-flow-offloading-support.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-34-docs-nf_flowtable-update-documentation-with-enhancem.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-35-net-ethernet-mediatek-ppe-fix-busy-wait-loop.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-36-net-ethernet-mediatek-fix-a-typo-bug-in-flow-offload.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-38-net-ethernet-mtk_eth_soc-unmap-RX-data-before-callin.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-39-net-ethernet-mtk_eth_soc-fix-build_skb-cleanup.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-40-net-ethernet-mtk_eth_soc-use-napi_consume_skb.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-41-net-ethernet-mtk_eth_soc-reduce-MDIO-bus-access-late.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-42-net-ethernet-mtk_eth_soc-remove-unnecessary-TX-queue.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-43-net-ethernet-mtk_eth_soc-use-larger-burst-size-for-Q.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-44-net-ethernet-mtk_eth_soc-increase-DMA-ring-sizes.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-45-net-ethernet-mtk_eth_soc-implement-dynamic-interrupt.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-46-net-ethernet-mtk_eth_soc-cache-HW-pointer-of-last-fr.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-47-net-ethernet-mtk_eth_soc-only-read-the-full-RX-descr.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-48-net-ethernet-mtk_eth_soc-reduce-unnecessary-interrup.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-49-net-ethernet-mtk_eth_soc-rework-NAPI-callbacks.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-50-net-ethernet-mtk_eth_soc-set-PPE-flow-hash-as-skb-ha.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-51-net-ethernet-mtk_eth_soc-use-iopoll.h-macro-for-DMA-.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-52-net-ethernet-mtk_eth_soc-missing-mutex.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-53-net-ethernet-mtk_eth_soc-handle-VLAN-pop-action.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-54-netfilter-flowtable-dst_check-from-garbage-collector.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-55-netfilter-conntrack-Introduce-tcp-offload-timeout-co.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-56-netfilter-conntrack-Introduce-udp-offload-timeout-co.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-57-netfilter-flowtable-Set-offload-timeouts-according-t.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.13-58-netfilter-flowtable-Add-FLOW_OFFLOAD_XMIT_UNSPEC-xmi.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.15-58-netfilter-flowtable-avoid-possible-false-sharing.patch create mode 100644 target/linux/generic/backport-5.10/610-v5.18-netfilter-flowtable-move-dst_check-to-packet-path.patch create mode 100644 target/linux/generic/backport-5.10/611-v5.12-net-ethernet-mediatek-support-setting-MTU.patch create mode 100644 target/linux/generic/backport-5.10/612-v5.15-netfilter-conntrack-sanitize-table-size-default-sett.patch create mode 100644 target/linux/generic/backport-5.10/613-v5.15-01-netfilter-flowtable-remove-nf_ct_l4proto_find-call.patch create mode 100644 target/linux/generic/backport-5.10/613-v5.15-02-netfilter-conntrack-remove-offload_pickup-sysctl-aga.patch create mode 100644 target/linux/generic/backport-5.10/614-v5.18-netfilter-flowtable-fix-TCP-flow-teardown.patch create mode 100644 target/linux/generic/backport-5.10/705-net-phy-at803x-select-correct-page-on-config-init.patch create mode 100644 target/linux/generic/backport-5.10/706-net-phy-at803x-fix-probe-error-if-copper-page-is-sel.patch create mode 100644 target/linux/generic/backport-5.10/710-v5.12-net-phy-Add-100-base-x-mode.patch create mode 100644 target/linux/generic/backport-5.10/711-v5.12-sfp-add-support-for-100-base-x-SFPs.patch create mode 100644 target/linux/generic/backport-5.10/712-v5.13-net-phy-marvell-refactor-HWMON-OOP-style.patch create mode 100644 target/linux/generic/backport-5.10/713-v5.15-net-phy-marvell-add-SFP-support-for-88E1510.patch create mode 100644 target/linux/generic/backport-5.10/719-v5.12-net-dsa-automatically-bring-up-DSA-master-when-openi.patch create mode 100644 target/linux/generic/backport-5.10/720-v5.12-net-bridge-notify-switchdev-of-disappearance-of-old-.patch create mode 100644 target/linux/generic/backport-5.10/721-v5.12-net-dsa-be-louder-when-a-non-legacy-FDB-operation-fa.patch create mode 100644 target/linux/generic/backport-5.10/722-v5.12-net-dsa-don-t-use-switchdev_notifier_fdb_info-in-dsa.patch create mode 100644 target/linux/generic/backport-5.10/723-v5.12-net-dsa-move-switchdev-event-implementation-under-th.patch create mode 100644 target/linux/generic/backport-5.10/724-v5.12-net-dsa-exit-early-in-dsa_slave_switchdev_event-if-w.patch create mode 100644 target/linux/generic/backport-5.10/725-v5.12-net-dsa-listen-for-SWITCHDEV_-FDB-DEL-_ADD_TO_DEVICE.patch create mode 100644 target/linux/generic/backport-5.10/730-net-dsa-mt7530-setup-core-clock-even-in-TRGMII-mode.patch create mode 100644 target/linux/generic/backport-5.10/731-v5.12-net-dsa-mt7530-MT7530-optional-GPIO-support.patch create mode 100644 target/linux/generic/backport-5.10/731-v5.13-net-dsa-mt7530-Add-support-for-EEE-features.patch create mode 100644 target/linux/generic/backport-5.10/732-net-next-1-of-net-pass-the-dst-buffer-to-of_get_mac_address.patch create mode 100644 target/linux/generic/backport-5.10/732-net-next-2-of-net-fix-of_get_mac_addr_nvmem-for-non-platform-devices.patch create mode 100644 target/linux/generic/backport-5.10/733-v5.15-0001-net-bgmac-bcma-handle-deferred-probe-error-due-to-ma.patch create mode 100644 target/linux/generic/backport-5.10/733-v5.15-0002-net-bgmac-platform-handle-mac-address-deferral.patch create mode 100644 target/linux/generic/backport-5.10/734-v5.16-0001-net-bgmac-improve-handling-PHY.patch create mode 100644 target/linux/generic/backport-5.10/734-v5.16-0002-net-bgmac-support-MDIO-described-in-DT.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-01-net-dsa-qca8k-change-simple-print-to-dev-variant.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-02-net-dsa-qca8k-use-iopoll-macro-for-qca8k_busy_wait.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-03-net-dsa-qca8k-improve-qca8k-read-write-rmw-bus-acces.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-04-net-dsa-qca8k-handle-qca8k_set_page-errors.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-05-net-dsa-qca8k-handle-error-with-qca8k_read-operation.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-06-net-dsa-qca8k-handle-error-with-qca8k_write-operatio.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-07-net-dsa-qca8k-handle-error-with-qca8k_rmw-operation.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-08-net-dsa-qca8k-handle-error-from-qca8k_busy_wait.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-09-net-dsa-qca8k-add-support-for-qca8327-switch.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-10-devicetree-net-dsa-qca8k-Document-new-compatible-qca.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-11-net-dsa-qca8k-add-priority-tweak-to-qca8337-switch.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-12-net-dsa-qca8k-limit-port5-delay-to-qca8337.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-13-net-dsa-qca8k-add-GLOBAL_FC-settings-needed-for-qca8.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-14-net-dsa-qca8k-add-support-for-switch-rev.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-15-net-dsa-qca8k-add-ethernet-ports-fallback-to-setup_m.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-16-net-dsa-qca8k-make-rgmii-delay-configurable.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-17-net-dsa-qca8k-clear-MASTER_EN-after-phy-read-write.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-18-net-dsa-qca8k-dsa-qca8k-protect-MASTER-busy_wait-wit.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-19-net-dsa-qca8k-enlarge-mdio-delay-and-timeout.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-20-net-dsa-qca8k-add-support-for-internal-phy-and-inter.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-21-devicetree-bindings-dsa-qca8k-Document-internal-mdio.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-22-net-dsa-qca8k-improve-internal-mdio-read-write-bus-a.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-23-net-dsa-qca8k-pass-switch_revision-info-to-phy-dev_f.patch create mode 100644 target/linux/generic/backport-5.10/735-v5.14-25-net-phy-add-support-for-qca8k-switch-internal-PHY-in.patch create mode 100644 target/linux/generic/backport-5.10/736-v5.14-net-dsa-qca8k-fix-missing-unlock-on-error-in-qca8k-vlan.patch create mode 100644 target/linux/generic/backport-5.10/737-v5.14-01-net-dsa-qca8k-check-return-value-of-read-functions-c.patch create mode 100644 target/linux/generic/backport-5.10/737-v5.14-02-net-dsa-qca8k-add-missing-check-return-value-in-qca8.patch create mode 100644 target/linux/generic/backport-5.10/738-v5.14-01-net-dsa-qca8k-fix-an-endian-bug-in-qca8k-get-ethtool.patch create mode 100644 target/linux/generic/backport-5.10/738-v5.14-02-net-dsa-qca8k-check-the-correct-variable-in-qca8k-se.patch create mode 100644 target/linux/generic/backport-5.10/739-v5.15-net-dsa-qca8k-fix-kernel-panic-with-legacy-mdio-mapping.patch create mode 100644 target/linux/generic/backport-5.10/740-v5.13-0001-net-dsa-b53-Add-debug-prints-in-b53_vlan_enable.patch create mode 100644 target/linux/generic/backport-5.10/740-v5.13-0002-net-dsa-b53-spi-allow-device-tree-probing.patch create mode 100644 target/linux/generic/backport-5.10/740-v5.13-0003-net-dsa-b53-relax-is63xx-condition.patch create mode 100644 target/linux/generic/backport-5.10/740-v5.13-0004-net-dsa-tag_brcm-add-support-for-legacy-tags.patch create mode 100644 target/linux/generic/backport-5.10/740-v5.13-0005-net-dsa-b53-support-legacy-tags.patch create mode 100644 target/linux/generic/backport-5.10/740-v5.13-0006-net-dsa-b53-mmap-Add-device-tree-support.patch create mode 100644 target/linux/generic/backport-5.10/740-v5.13-0007-net-dsa-b53-spi-add-missing-MODULE_DEVICE_TABLE.patch create mode 100644 target/linux/generic/backport-5.10/741-v5.14-0001-net-dsa-b53-Do-not-force-CPU-to-be-always-tagged.patch create mode 100644 target/linux/generic/backport-5.10/741-v5.14-0002-net-dsa-b53-remove-redundant-null-check-on-dev.patch create mode 100644 target/linux/generic/backport-5.10/741-v5.14-0003-net-dsa-b53-Create-default-VLAN-entry-explicitly.patch create mode 100644 target/linux/generic/backport-5.10/742-v5.16-net-phy-at803x-add-support-for-qca-8327-internal-phy.patch create mode 100644 target/linux/generic/backport-5.10/743-v5.16-0001-net-dsa-b53-Include-all-ports-in-enabled_ports.patch create mode 100644 target/linux/generic/backport-5.10/743-v5.16-0002-net-dsa-b53-Drop-BCM5301x-workaround-for-a-wrong-CPU.patch create mode 100644 target/linux/generic/backport-5.10/743-v5.16-0003-net-dsa-b53-Improve-flow-control-setup-on-BCM5301x.patch create mode 100644 target/linux/generic/backport-5.10/743-v5.16-0004-net-dsa-b53-Drop-unused-cpu_port-field.patch create mode 100644 target/linux/generic/backport-5.10/744-v5.15-net-dsa-don-t-set-skb-offload_fwd_mark-when-not-offl.patch create mode 100644 target/linux/generic/backport-5.10/745-v5.16-01-net-phy-at803x-add-support-for-qca-8327-A-variant.patch create mode 100644 target/linux/generic/backport-5.10/745-v5.16-02-net-phy-at803x-add-resume-suspend-function-to-qca83x.patch create mode 100644 target/linux/generic/backport-5.10/745-v5.16-03-net-phy-at803x-fix-spacing-and-improve-name-for-83xx.patch create mode 100644 target/linux/generic/backport-5.10/746-v5.16-01-net-phy-at803x-fix-resume-for-QCA8327-phy.patch create mode 100644 target/linux/generic/backport-5.10/746-v5.16-02-net-phy-at803x-add-DAC-amplitude-fix-for-8327-phy.patch create mode 100644 target/linux/generic/backport-5.10/746-v5.16-03-net-phy-at803x-enable-prefer-master-for-83xx-interna.patch create mode 100644 target/linux/generic/backport-5.10/746-v5.16-04-net-phy-at803x-better-describe-debug-regs.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-01-dsa-qca8k-add-mac-power-sel-support.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-02-dt-bindings-net-dsa-qca8k-Add-SGMII-clock-phase-prop.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-03-net-dsa-qca8k-add-support-for-sgmii-falling-edge.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-04-dt-bindings-net-dsa-qca8k-Document-support-for-CPU-p.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-05-net-dsa-qca8k-add-support-for-cpu-port-6.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-06-net-dsa-qca8k-rework-rgmii-delay-logic-and-scan-for-.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-07-dt-bindings-net-dsa-qca8k-Document-qca-sgmii-enable-.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-08-net-dsa-qca8k-add-explicit-SGMII-PLL-enable.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-09-dt-bindings-net-dsa-qca8k-Document-qca-led-open-drai.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-10-net-dsa-qca8k-add-support-for-pws-config-reg.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-11-dt-bindings-net-dsa-qca8k-document-support-for-qca83.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-12-net-dsa-qca8k-add-support-for-QCA8328.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-13-net-dsa-qca8k-set-internal-delay-also-for-sgmii.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-14-net-dsa-qca8k-move-port-config-to-dedicated-struct.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-15-dt-bindings-net-ipq8064-mdio-fix-warning-with-new-qc.patch create mode 100644 target/linux/generic/backport-5.10/747-v5.16-16-dt-bindings-net-dsa-qca8k-convert-to-YAML-schema.patch create mode 100644 target/linux/generic/backport-5.10/748-v5.16-net-dsa-qca8k-fix-delay-applied-to-wrong-cpu-in-parse-p.patch create mode 100644 target/linux/generic/backport-5.10/749-v5.16-net-dsa-qca8k-tidy-for-loop-in-setup-and-add-cpu-port-c.patch create mode 100644 target/linux/generic/backport-5.10/750-v5.16-net-dsa-qca8k-make-sure-pad0-mac06-exchange-is-disabled.patch create mode 100644 target/linux/generic/backport-5.10/751-v5.16-net-dsa-qca8k-fix-internal-delay-applied-to-the-wrong-PAD.patch create mode 100644 target/linux/generic/backport-5.10/752-v5.16-net-dsa-qca8k-fix-MTU-calculation.patch create mode 100644 target/linux/generic/backport-5.10/753-net-next-net-dsa-qca8k-remove-redundant-check-in-parse_port_config.patch create mode 100644 target/linux/generic/backport-5.10/754-net-next-net-dsa-qca8k-convert-to-GENMASK_FIELD_PREP_FIELD_GET.patch create mode 100644 target/linux/generic/backport-5.10/755-net-next-net-dsa-qca8k-remove-extra-mutex_init-in-qca8k_setup.patch create mode 100644 target/linux/generic/backport-5.10/756-net-next-net-dsa-qca8k-move-regmap-init-in-probe-and-set-it.patch create mode 100644 target/linux/generic/backport-5.10/757-net-next-net-dsa-qca8k-initial-conversion-to-regmap-heper.patch create mode 100644 target/linux/generic/backport-5.10/758-net-next-net-dsa-qca8k-add-additional-MIB-counter-and-.patch create mode 100644 target/linux/generic/backport-5.10/759-net-next-net-dsa-qca8k-add-support-for-port-fast-aging.patch create mode 100644 target/linux/generic/backport-5.10/760-net-next-net-dsa-qca8k-add-set_ageing_time-support.patch create mode 100644 target/linux/generic/backport-5.10/761-net-next-net-dsa-qca8k-add-support-for-mdb_add-del.patch create mode 100644 target/linux/generic/backport-5.10/762-v5.11-net-dsa-mt7530-support-setting-MTU.patch create mode 100644 target/linux/generic/backport-5.10/763-v5.11-net-dsa-mt7530-enable-MTU-normalization.patch create mode 100644 target/linux/generic/backport-5.10/764-v5.11-net-dsa-mt7530-support-setting-ageing-time.patch create mode 100644 target/linux/generic/backport-5.10/770-v5.15-net-dsa-mt7530-support-MDB-operations.patch create mode 100644 target/linux/generic/backport-5.10/771-v5.14-net-phy-add-MediaTek-Gigabit-Ethernet-PHY-driver.patch create mode 100644 target/linux/generic/backport-5.10/772-v5.14-net-dsa-mt7530-add-interrupt-support.patch create mode 100644 target/linux/generic/backport-5.10/773-v5.18-1-net-dsa-Move-VLAN-filtering-syncing-out-of-dsa_switc.patch create mode 100644 target/linux/generic/backport-5.10/773-v5.18-2-net-dsa-Avoid-cross-chip-syncing-of-VLAN-filtering.patch create mode 100644 target/linux/generic/backport-5.10/800-v5.13-0001-firmware-bcm47xx_nvram-rename-finding-function-and-i.patch create mode 100644 target/linux/generic/backport-5.10/800-v5.13-0002-firmware-bcm47xx_nvram-add-helper-checking-for-NVRAM.patch create mode 100644 target/linux/generic/backport-5.10/800-v5.13-0003-firmware-bcm47xx_nvram-extract-code-copying-NVRAM.patch create mode 100644 target/linux/generic/backport-5.10/800-v5.13-0004-firmware-bcm47xx_nvram-look-for-NVRAM-with-for-inste.patch create mode 100644 target/linux/generic/backport-5.10/800-v5.13-0005-firmware-bcm47xx_nvram-inline-code-checking-NVRAM-si.patch create mode 100644 target/linux/generic/backport-5.10/801-v6.1-0001-nvmem-add-driver-handling-U-Boot-environment-variabl.patch create mode 100644 target/linux/generic/backport-5.10/801-v6.1-0002-nvmem-u-boot-env-find-Device-Tree-nodes-for-NVMEM-ce.patch create mode 100644 target/linux/generic/backport-5.10/801-v6.1-0003-nvmem-u-boot-env-fix-crc32-casting-type.patch create mode 100644 target/linux/generic/backport-5.10/802-v5.19-nvmem-core-support-passing-DT-node-in-cell-info.patch create mode 100644 target/linux/generic/backport-5.10/803-v6.2-0001-nvmem-u-boot-env-fix-crc32_data_offset-on-redundant-.patch create mode 100644 target/linux/generic/backport-5.10/803-v6.2-0002-nvmem-u-boot-env-align-endianness-of-crc32-values.patch create mode 100644 target/linux/generic/backport-5.10/803-v6.2-0003-nvmem-u-boot-env-add-Broadcom-format-support.patch create mode 100644 target/linux/generic/backport-5.10/810-v5.13-usb-ehci-add-spurious-flag-to-disable-overcurrent-ch.patch create mode 100644 target/linux/generic/backport-5.10/811-v5.13-usb-host-ehci-platform-add-spurious_oc-DT-support.patch create mode 100644 target/linux/generic/backport-5.10/820-v5.13-make-pci_host_common_probe-declare-its-reliance-on-msi-domains.patch create mode 100644 target/linux/generic/backport-5.10/821-v5.13-let-pci-host-bridges-declar-their-reliance-on-msi-domains.patch create mode 100644 target/linux/generic/backport-5.10/822-v5.13-advertise-lack-of-built-in-msi-handling.patch create mode 100644 target/linux/generic/backport-5.10/830-v5.14-leds-lp55xx-Initialize-enable-GPIO-direction-to-outp.patch create mode 100644 target/linux/generic/backport-5.10/845-v6.0-0001-dt-bindings-leds-add-Broadcom-s-BCM63138-controller.patch create mode 100644 target/linux/generic/backport-5.10/845-v6.0-0002-leds-bcm63138-add-support-for-BCM63138-controller.patch create mode 100644 target/linux/generic/backport-5.10/846-v6.0-0001-dt-bindings-leds-leds-bcm63138-unify-full-stops-in-d.patch create mode 100644 target/linux/generic/backport-5.10/846-v6.0-0002-leds-add-help-info-about-BCM63138-module-name.patch create mode 100644 target/linux/generic/backport-5.10/846-v6.0-0003-leds-leds-bcm63138-get-rid-of-LED_OFF.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0001-PCI-pci-bridge-emul-Add-description-for-class_revisi.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0002-PCI-pci-bridge-emul-Add-definitions-for-missing-capa.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0003-PCI-aardvark-Add-support-for-DEVCAP2-DEVCTL2-LNKCAP2.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0005-PCI-aardvark-Comment-actions-in-driver-remove-method.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0006-PCI-aardvark-Disable-bus-mastering-when-unbinding-dr.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0007-PCI-aardvark-Mask-all-interrupts-when-unbinding-driv.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0008-PCI-aardvark-Fix-memory-leak-in-driver-unbind.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0009-PCI-aardvark-Assert-PERST-when-unbinding-driver.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0010-PCI-aardvark-Disable-link-training-when-unbinding-dr.patch create mode 100644 target/linux/generic/backport-5.10/850-v5.17-0011-PCI-aardvark-Disable-common-PHY-when-unbinding-drive.patch create mode 100644 target/linux/generic/backport-5.10/851-v5.15-0001-phy-marvell-phy-mvebu-a3700-comphy-Rename-HS-SGMMI-t.patch create mode 100644 target/linux/generic/backport-5.10/851-v5.15-0002-phy-marvell-phy-mvebu-a3700-comphy-Remove-unsupporte.patch create mode 100644 target/linux/generic/backport-5.10/860-v5.17-MIPS-ath79-drop-_machine_restart-again.patch create mode 100644 target/linux/generic/backport-5.10/870-hwmon-next-hwmon-lm70-Add-ti-tmp125-support.patch create mode 100644 target/linux/generic/backport-5.10/880-v5.19-cdc_ether-export-usbnet_cdc_zte_rx_fixup.patch create mode 100644 target/linux/generic/backport-5.10/881-v5.19-rndis_host-enable-the-bogus-MAC-fixup-for-ZTE-device.patch create mode 100644 target/linux/generic/backport-5.10/882-v5.19-rndis_host-limit-scope-of-bogus-MAC-address-detectio.patch create mode 100644 target/linux/generic/config-5.10 create mode 100644 target/linux/generic/config-filter create mode 100644 target/linux/generic/files/Documentation/devicetree/bindings/mtd/partitions/openwrt,uimage.yaml create mode 100644 target/linux/generic/files/Documentation/networking/adm6996.txt create mode 100644 target/linux/generic/files/arch/mips/fw/myloader/Makefile create mode 100644 target/linux/generic/files/arch/mips/fw/myloader/myloader.c create mode 100644 target/linux/generic/files/block/partitions/fit.c create mode 100644 target/linux/generic/files/drivers/leds/leds-ubnt-ledbar.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/Kconfig create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/Makefile create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit.h create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_bcm63xx.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_bcm_wfi.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_brnimage.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_cfe_bootfs.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_elf.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_eva.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_jimage.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_lzma.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_minor.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_seama.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_squashfs.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_tplink.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_trx.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_uimage.c create mode 100644 target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_wrgg.c create mode 100644 target/linux/generic/files/drivers/mtd/nand/mtk_bmt.c create mode 100644 target/linux/generic/files/drivers/mtd/nand/mtk_bmt.h create mode 100644 target/linux/generic/files/drivers/mtd/nand/mtk_bmt_bbt.c create mode 100644 target/linux/generic/files/drivers/mtd/nand/mtk_bmt_nmbm.c create mode 100644 target/linux/generic/files/drivers/mtd/nand/mtk_bmt_v2.c create mode 100644 target/linux/generic/files/drivers/mtd/parsers/routerbootpart.c create mode 100644 target/linux/generic/files/drivers/net/phy/adm6996.c create mode 100644 target/linux/generic/files/drivers/net/phy/adm6996.h create mode 100644 target/linux/generic/files/drivers/net/phy/ar8216.c create mode 100644 target/linux/generic/files/drivers/net/phy/ar8216.h create mode 100644 target/linux/generic/files/drivers/net/phy/ar8327.c create mode 100644 target/linux/generic/files/drivers/net/phy/ar8327.h create mode 100644 target/linux/generic/files/drivers/net/phy/b53/Kconfig create mode 100644 target/linux/generic/files/drivers/net/phy/b53/Makefile create mode 100644 target/linux/generic/files/drivers/net/phy/b53/b53_common.c create mode 100644 target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c create mode 100644 target/linux/generic/files/drivers/net/phy/b53/b53_mmap.c create mode 100644 target/linux/generic/files/drivers/net/phy/b53/b53_phy_fixup.c create mode 100644 target/linux/generic/files/drivers/net/phy/b53/b53_priv.h create mode 100644 target/linux/generic/files/drivers/net/phy/b53/b53_regs.h create mode 100644 target/linux/generic/files/drivers/net/phy/b53/b53_spi.c create mode 100644 target/linux/generic/files/drivers/net/phy/b53/b53_srab.c create mode 100644 target/linux/generic/files/drivers/net/phy/ip17xx.c create mode 100644 target/linux/generic/files/drivers/net/phy/psb6970.c create mode 100644 target/linux/generic/files/drivers/net/phy/rtl8306.c create mode 100644 target/linux/generic/files/drivers/net/phy/rtl8366_smi.c create mode 100644 target/linux/generic/files/drivers/net/phy/rtl8366_smi.h create mode 100644 target/linux/generic/files/drivers/net/phy/rtl8366rb.c create mode 100644 target/linux/generic/files/drivers/net/phy/rtl8366s.c create mode 100644 target/linux/generic/files/drivers/net/phy/rtl8367.c create mode 100644 target/linux/generic/files/drivers/net/phy/rtl8367b.c create mode 100644 target/linux/generic/files/drivers/net/phy/swconfig.c create mode 100644 target/linux/generic/files/drivers/net/phy/swconfig_leds.c create mode 100644 target/linux/generic/files/drivers/platform/mikrotik/Kconfig create mode 100644 target/linux/generic/files/drivers/platform/mikrotik/Makefile create mode 100644 target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c create mode 100644 target/linux/generic/files/drivers/platform/mikrotik/rb_softconfig.c create mode 100644 target/linux/generic/files/drivers/platform/mikrotik/routerboot.c create mode 100644 target/linux/generic/files/drivers/platform/mikrotik/routerboot.h create mode 100644 target/linux/generic/files/include/dt-bindings/mtd/partitions/uimage.h create mode 100644 target/linux/generic/files/include/linux/ar8216_platform.h create mode 100644 target/linux/generic/files/include/linux/ath5k_platform.h create mode 100644 target/linux/generic/files/include/linux/ath9k_platform.h create mode 100644 target/linux/generic/files/include/linux/mtd/mtk_bmt.h create mode 100644 target/linux/generic/files/include/linux/myloader.h create mode 100644 target/linux/generic/files/include/linux/platform_data/adm6996-gpio.h create mode 100644 target/linux/generic/files/include/linux/routerboot.h create mode 100644 target/linux/generic/files/include/linux/rt2x00_platform.h create mode 100644 target/linux/generic/files/include/linux/rtl8366.h create mode 100644 target/linux/generic/files/include/linux/rtl8367.h create mode 100644 target/linux/generic/files/include/linux/switch.h create mode 100644 target/linux/generic/files/include/uapi/linux/switch.h create mode 100644 target/linux/generic/hack-5.10/204-module_strip.patch create mode 100644 target/linux/generic/hack-5.10/205-kconfig-exit.patch create mode 100644 target/linux/generic/hack-5.10/210-darwin_scripts_include.patch create mode 100644 target/linux/generic/hack-5.10/211-darwin-uuid-typedef-clash.patch create mode 100644 target/linux/generic/hack-5.10/212-tools_portability.patch create mode 100644 target/linux/generic/hack-5.10/214-spidev_h_portability.patch create mode 100644 target/linux/generic/hack-5.10/220-arm-gc_sections.patch create mode 100644 target/linux/generic/hack-5.10/221-module_exports.patch create mode 100644 target/linux/generic/hack-5.10/230-openwrt_lzma_options.patch create mode 100644 target/linux/generic/hack-5.10/249-udp-tunnel-selection.patch create mode 100644 target/linux/generic/hack-5.10/250-netfilter_depends.patch create mode 100644 target/linux/generic/hack-5.10/251-kconfig.patch create mode 100644 target/linux/generic/hack-5.10/252-SATA_PMP.patch create mode 100644 target/linux/generic/hack-5.10/253-ksmbd-config.patch create mode 100644 target/linux/generic/hack-5.10/259-regmap_dynamic.patch create mode 100644 target/linux/generic/hack-5.10/260-crypto_test_dependencies.patch create mode 100644 target/linux/generic/hack-5.10/261-lib-arc4-unhide.patch create mode 100644 target/linux/generic/hack-5.10/280-rfkill-stubs.patch create mode 100644 target/linux/generic/hack-5.10/300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch create mode 100644 target/linux/generic/hack-5.10/301-mips_image_cmdline_hack.patch create mode 100644 target/linux/generic/hack-5.10/321-powerpc_crtsavres_prereq.patch create mode 100644 target/linux/generic/hack-5.10/401-mtd-super-don-t-reply-on-mtdblock-device-minor.patch create mode 100644 target/linux/generic/hack-5.10/402-mtd-blktrans-call-add-disks-after-mtd-device.patch create mode 100644 target/linux/generic/hack-5.10/410-block-fit-partition-parser.patch create mode 100644 target/linux/generic/hack-5.10/420-mtd-support-OpenWrt-s-MTD_ROOTFS_ROOT_DEV.patch create mode 100644 target/linux/generic/hack-5.10/421-mtd-fix-squashfs-root-on-targets-with-CONFIG_FIT_PAR.patch create mode 100644 target/linux/generic/hack-5.10/422-drivers-mtd-parsers-add-nvmem-support-to-cmdlinepart.patch create mode 100644 target/linux/generic/hack-5.10/430-mtk-bmt-support.patch create mode 100644 target/linux/generic/hack-5.10/531-debloat_lzma.patch create mode 100644 target/linux/generic/hack-5.10/600-bridge_offload.patch create mode 100644 target/linux/generic/hack-5.10/645-netfilter-connmark-introduce-set-dscpmark.patch create mode 100644 target/linux/generic/hack-5.10/650-netfilter-add-xt_FLOWOFFLOAD-target.patch create mode 100644 target/linux/generic/hack-5.10/651-wireless_mesh_header.patch create mode 100644 target/linux/generic/hack-5.10/660-fq_codel_defaults.patch create mode 100644 target/linux/generic/hack-5.10/661-kernel-ct-size-the-hashtable-more-adequately.patch create mode 100644 target/linux/generic/hack-5.10/700-swconfig_switch_drivers.patch create mode 100644 target/linux/generic/hack-5.10/710-net-dsa-mv88e6xxx-default-VID-1.patch create mode 100644 target/linux/generic/hack-5.10/711-net-dsa-mv88e6xxx-disable-ATU-violation.patch create mode 100644 target/linux/generic/hack-5.10/720-net-phy-add-aqr-phys.patch create mode 100644 target/linux/generic/hack-5.10/721-net-add-packet-mangeling.patch create mode 100644 target/linux/generic/hack-5.10/722-net-phy-aquantia-enable-AQR112-and-AQR412.patch create mode 100644 target/linux/generic/hack-5.10/723-net-phy-aquantia-fix-system-side-protocol-mi.patch create mode 100644 target/linux/generic/hack-5.10/724-net-phy-aquantia-Add-AQR113-driver-support.patch create mode 100644 target/linux/generic/hack-5.10/725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch create mode 100644 target/linux/generic/hack-5.10/760-net-usb-r8152-add-LED-configuration-from-OF.patch create mode 100644 target/linux/generic/hack-5.10/761-dt-bindings-net-add-RTL8152-binding-documentation.patch create mode 100644 target/linux/generic/hack-5.10/773-bgmac-add-srab-switch.patch create mode 100644 target/linux/generic/hack-5.10/780-usb-net-MeigLink_modem_support.patch create mode 100644 target/linux/generic/hack-5.10/800-GPIO-add-named-gpio-exports.patch create mode 100644 target/linux/generic/hack-5.10/800-ubnt-ledbar-driver.patch create mode 100644 target/linux/generic/hack-5.10/901-debloat_sock_diag.patch create mode 100644 target/linux/generic/hack-5.10/902-debloat_proc.patch create mode 100644 target/linux/generic/hack-5.10/904-debloat_dma_buf.patch create mode 100644 target/linux/generic/hack-5.10/910-kobject_uevent.patch create mode 100644 target/linux/generic/hack-5.10/911-kobject_add_broadcast_uevent.patch create mode 100644 target/linux/generic/hack-5.10/920-device_tree_cmdline.patch create mode 100644 target/linux/generic/image/Makefile create mode 100644 target/linux/generic/image/initramfs-base-files.txt create mode 100644 target/linux/generic/image/lzma-loader/Makefile create mode 100644 target/linux/generic/image/lzma-loader/src/LzmaDecode.c create mode 100644 target/linux/generic/image/lzma-loader/src/LzmaDecode.h create mode 100644 target/linux/generic/image/lzma-loader/src/Makefile create mode 100644 target/linux/generic/image/lzma-loader/src/decompress.c create mode 100644 target/linux/generic/image/lzma-loader/src/lzma-copy.lds.in create mode 100644 target/linux/generic/image/lzma-loader/src/lzma.lds.in create mode 100644 target/linux/generic/image/lzma-loader/src/print.c create mode 100644 target/linux/generic/image/lzma-loader/src/print.h create mode 100644 target/linux/generic/image/lzma-loader/src/printf.c create mode 100644 target/linux/generic/image/lzma-loader/src/printf.h create mode 100644 target/linux/generic/image/lzma-loader/src/start.S create mode 100644 target/linux/generic/image/lzma-loader/src/uart16550.c create mode 100644 target/linux/generic/image/lzma-loader/src/uart16550.h create mode 100644 target/linux/generic/image/relocate/Makefile create mode 100644 target/linux/generic/image/relocate/cacheops.h create mode 100644 target/linux/generic/image/relocate/cp0regdef.h create mode 100644 target/linux/generic/image/relocate/head.S create mode 100644 target/linux/generic/image/relocate/loader.lds create mode 100755 target/linux/generic/other-files/init create mode 100644 target/linux/generic/pending-5.10/050-dtc-checks-Drop-interrupt-provider-address-cells-check.patch create mode 100644 target/linux/generic/pending-5.10/100-compiler.h-only-include-asm-rwonce.h-for-kernel-code.patch create mode 100644 target/linux/generic/pending-5.10/101-Use-stddefs.h-instead-of-compiler.h.patch create mode 100644 target/linux/generic/pending-5.10/102-MIPS-only-process-negative-stack-offsets-on-stack-tr.patch create mode 100644 target/linux/generic/pending-5.10/120-Fix-alloc_node_mem_map-with-ARCH_PFN_OFFSET-calcu.patch create mode 100644 target/linux/generic/pending-5.10/130-add-linux-spidev-compatible-si3210.patch create mode 100644 target/linux/generic/pending-5.10/140-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch create mode 100644 target/linux/generic/pending-5.10/141-jffs2-add-RENAME_EXCHANGE-support.patch create mode 100644 target/linux/generic/pending-5.10/142-jffs2-add-splice-ops.patch create mode 100644 target/linux/generic/pending-5.10/150-bridge_allow_receiption_on_disabled_port.patch create mode 100644 target/linux/generic/pending-5.10/190-rtc-rs5c372-support_alarms_up_to_1_week.patch create mode 100644 target/linux/generic/pending-5.10/191-rtc-rs5c372-let_the_alarm_to_be_used_as_wakeup_source.patch create mode 100644 target/linux/generic/pending-5.10/203-kallsyms_uncompressed.patch create mode 100644 target/linux/generic/pending-5.10/205-backtrace_module_info.patch create mode 100644 target/linux/generic/pending-5.10/240-remove-unsane-filenames-from-deps_initramfs-list.patch create mode 100644 target/linux/generic/pending-5.10/261-enable_wilink_platform_without_drivers.patch create mode 100644 target/linux/generic/pending-5.10/270-platform-mikrotik-build-bits.patch create mode 100644 target/linux/generic/pending-5.10/300-mips_expose_boot_raw.patch create mode 100644 target/linux/generic/pending-5.10/302-mips_no_branch_likely.patch create mode 100644 target/linux/generic/pending-5.10/305-mips_module_reloc.patch create mode 100644 target/linux/generic/pending-5.10/307-mips_highmem_offset.patch create mode 100644 target/linux/generic/pending-5.10/308-mips32r2_tune.patch create mode 100644 target/linux/generic/pending-5.10/309-MIPS-Add-CPU-option-reporting-to-proc-cpuinfo.patch create mode 100644 target/linux/generic/pending-5.10/310-arm_module_unresolved_weak_sym.patch create mode 100644 target/linux/generic/pending-5.10/330-MIPS-kexec-Accept-command-line-parameters-from-users.patch create mode 100644 target/linux/generic/pending-5.10/332-arc-add-OWRTDTB-section.patch create mode 100644 target/linux/generic/pending-5.10/333-arc-enable-unaligned-access-in-kernel-mode.patch create mode 100644 target/linux/generic/pending-5.10/342-powerpc-Enable-kernel-XZ-compression-option-on-PPC_8.patch create mode 100644 target/linux/generic/pending-5.10/400-mtd-mtdsplit-support.patch create mode 100644 target/linux/generic/pending-5.10/402-mtd-spi-nor-write-support-for-minor-aligned-partitions.patch create mode 100644 target/linux/generic/pending-5.10/410-mtd-parsers-ofpart-fix-parsing-subpartitions.patch create mode 100644 target/linux/generic/pending-5.10/419-mtd-redboot-add-of_match_table-with-DT-binding.patch create mode 100644 target/linux/generic/pending-5.10/420-mtd-redboot_space.patch create mode 100644 target/linux/generic/pending-5.10/430-mtd-add-myloader-partition-parser.patch create mode 100644 target/linux/generic/pending-5.10/431-mtd-bcm47xxpart-check-for-bad-blocks-when-calculatin.patch create mode 100644 target/linux/generic/pending-5.10/432-mtd-bcm47xxpart-detect-T_Meter-partition.patch create mode 100644 target/linux/generic/pending-5.10/435-mtd-add-routerbootpart-parser-config.patch create mode 100644 target/linux/generic/pending-5.10/460-mtd-cfi_cmdset_0002-no-erase_suspend.patch create mode 100644 target/linux/generic/pending-5.10/461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch create mode 100644 target/linux/generic/pending-5.10/465-m25p80-mx-disable-software-protection.patch create mode 100644 target/linux/generic/pending-5.10/470-mtd-spi-nor-support-limiting-4K-sectors-support-base.patch create mode 100644 target/linux/generic/pending-5.10/476-mtd-spi-nor-add-eon-en25q128.patch create mode 100644 target/linux/generic/pending-5.10/479-mtd-spi-nor-add-xtx-xt25f128b.patch create mode 100644 target/linux/generic/pending-5.10/482-mtd-spi-nor-add-support-for-Gigadevice-GD25D05.patch create mode 100644 target/linux/generic/pending-5.10/483-mtd-spi-nor-add-gd25q512.patch create mode 100644 target/linux/generic/pending-5.10/483-mtd-spinand-add-support-for-xtx-xt26g0xa.patch create mode 100644 target/linux/generic/pending-5.10/484-mtd-spi-nor-add-esmt-f25l16pa.patch create mode 100644 target/linux/generic/pending-5.10/485-mtd-spi-nor-add-xmc-xm25qh128c.patch create mode 100644 target/linux/generic/pending-5.10/490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch create mode 100644 target/linux/generic/pending-5.10/491-ubi-auto-create-ubiblock-device-for-rootfs.patch create mode 100644 target/linux/generic/pending-5.10/492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch create mode 100644 target/linux/generic/pending-5.10/493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch create mode 100644 target/linux/generic/pending-5.10/494-mtd-ubi-add-EOF-marker-support.patch create mode 100644 target/linux/generic/pending-5.10/495-mtd-core-add-get_mtd_device_by_node.patch create mode 100644 target/linux/generic/pending-5.10/496-dt-bindings-add-bindings-for-mtd-concat-devices.patch create mode 100644 target/linux/generic/pending-5.10/497-mtd-mtdconcat-add-dt-driver-for-concat-devices.patch create mode 100644 target/linux/generic/pending-5.10/498-mtd-spi-nor-locking-support-for-MX25L6405D.patch create mode 100644 target/linux/generic/pending-5.10/499-mtd-spi-nor-disable-16-bit-sr-for-macronix.patch create mode 100644 target/linux/generic/pending-5.10/500-fs_cdrom_dependencies.patch create mode 100644 target/linux/generic/pending-5.10/530-jffs2_make_lzma_available.patch create mode 100644 target/linux/generic/pending-5.10/532-jffs2_eofdetect.patch create mode 100644 target/linux/generic/pending-5.10/600-netfilter_conntrack_flush.patch create mode 100644 target/linux/generic/pending-5.10/610-netfilter_match_bypass_default_checks.patch create mode 100644 target/linux/generic/pending-5.10/611-netfilter_match_bypass_default_table.patch create mode 100644 target/linux/generic/pending-5.10/612-netfilter_match_reduce_memory_access.patch create mode 100644 target/linux/generic/pending-5.10/613-netfilter_optional_tcp_window_check.patch create mode 100644 target/linux/generic/pending-5.10/620-net_sched-codel-do-not-defer-queue-length-update.patch create mode 100644 target/linux/generic/pending-5.10/630-packet_socket_type.patch create mode 100644 target/linux/generic/pending-5.10/655-increase_skb_pad.patch create mode 100644 target/linux/generic/pending-5.10/666-Add-support-for-MAP-E-FMRs-mesh-mode.patch create mode 100644 target/linux/generic/pending-5.10/670-ipv6-allow-rejecting-with-source-address-failed-policy.patch create mode 100644 target/linux/generic/pending-5.10/671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch create mode 100644 target/linux/generic/pending-5.10/680-NET-skip-GRO-for-foreign-MAC-addresses.patch create mode 100644 target/linux/generic/pending-5.10/682-of_net-add-mac-address-increment-support.patch create mode 100644 target/linux/generic/pending-5.10/683-of_net-add-mac-address-to-of-tree.patch create mode 100644 target/linux/generic/pending-5.10/700-net-ethernet-mtk_eth_soc-avoid-creating-duplicate-of.patch create mode 100644 target/linux/generic/pending-5.10/701-00-net-ethernet-mtk_eth_soc-add-support-for-coherent-DM.patch create mode 100644 target/linux/generic/pending-5.10/701-01-arm64-dts-mediatek-mt7622-add-support-for-coherent-D.patch create mode 100644 target/linux/generic/pending-5.10/701-02-net-ethernet-mtk_eth_soc-add-support-for-Wireless-Et.patch create mode 100644 target/linux/generic/pending-5.10/701-03-net-ethernet-mtk_eth_soc-implement-flow-offloading-t.patch create mode 100644 target/linux/generic/pending-5.10/701-04-arm64-dts-mediatek-mt7622-introduce-nodes-for-Wirele.patch create mode 100644 target/linux/generic/pending-5.10/701-05-net-ethernet-mtk_eth_soc-add-ipv6-flow-offload-suppo.patch create mode 100644 target/linux/generic/pending-5.10/701-06-net-ethernet-mtk_eth_soc-support-TC_SETUP_BLOCK-for-.patch create mode 100644 target/linux/generic/pending-5.10/701-07-net-ethernet-mtk_eth_soc-allocate-struct-mtk_ppe-sep.patch create mode 100644 target/linux/generic/pending-5.10/701-08-net-ethernet-mtk_eth_soc-rework-hardware-flow-table-.patch create mode 100644 target/linux/generic/pending-5.10/701-09-net-ethernet-mtk_eth_soc-remove-bridge-flow-offload-.patch create mode 100644 target/linux/generic/pending-5.10/701-10-net-ethernet-mtk_eth_soc-support-creating-mac-addres.patch create mode 100644 target/linux/generic/pending-5.10/703-phy-add-detach-callback-to-struct-phy_driver.patch create mode 100644 target/linux/generic/pending-5.10/704-00-netfilter-flowtable-fix-excessive-hw-offload-attempt.patch create mode 100644 target/linux/generic/pending-5.10/704-01-netfilter-nft_flow_offload-skip-dst-neigh-lookup-for.patch create mode 100644 target/linux/generic/pending-5.10/704-02-net-fix-dev_fill_forward_path-with-pppoe-bridge.patch create mode 100644 target/linux/generic/pending-5.10/704-03-netfilter-nft_flow_offload-fix-offload-with-pppoe-vl.patch create mode 100644 target/linux/generic/pending-5.10/705-net-dsa-tag_mtk-add-padding-for-tx-packets.patch create mode 100644 target/linux/generic/pending-5.10/710-bridge-add-knob-for-filtering-rx-tx-BPDU-pack.patch create mode 100644 target/linux/generic/pending-5.10/730-net-phy-at803x-fix-feature-detection.patch create mode 100644 target/linux/generic/pending-5.10/760-net-dsa-mv88e6xxx-fix-vlan-setup.patch create mode 100644 target/linux/generic/pending-5.10/762-net-bridge-switchdev-Refactor-br_switchdev_fdb_notif.patch create mode 100644 target/linux/generic/pending-5.10/763-net-bridge-switchdev-Include-local-flag-in-FDB-notif.patch create mode 100644 target/linux/generic/pending-5.10/764-net-bridge-switchdev-Send-FDB-notifications-for-host.patch create mode 100644 target/linux/generic/pending-5.10/765-net-dsa-Include-local-addresses-in-assisted-CPU-port.patch create mode 100644 target/linux/generic/pending-5.10/766-net-dsa-Include-bridge-addresses-in-assisted-CPU-por.patch create mode 100644 target/linux/generic/pending-5.10/767-net-dsa-Sync-static-FDB-entries-on-foreign-interface.patch create mode 100644 target/linux/generic/pending-5.10/768-net-dsa-mv88e6xxx-Request-assisted-learning-on-CPU-port.patch create mode 100644 target/linux/generic/pending-5.10/780-ARM-kirkwood-add-missing-linux-if_ether.h-for-ETH_AL.patch create mode 100644 target/linux/generic/pending-5.10/800-bcma-get-SoC-device-struct-copy-its-DMA-params-to-th.patch create mode 100644 target/linux/generic/pending-5.10/801-gpio-gpio-cascade-add-generic-GPIO-cascade.patch create mode 100644 target/linux/generic/pending-5.10/810-pci_disable_common_quirks.patch create mode 100644 target/linux/generic/pending-5.10/811-pci_disable_usb_common_quirks.patch create mode 100644 target/linux/generic/pending-5.10/820-w1-gpio-fix-problem-with-platfom-data-in-w1-gpio.patch create mode 100644 target/linux/generic/pending-5.10/834-ledtrig-libata.patch create mode 100644 target/linux/generic/pending-5.10/840-hwrng-bcm2835-set-quality-to-1000.patch create mode 100644 target/linux/generic/pending-5.10/842-net-qmi_wwan-add-ZTE-MF286D-modem-19d2-1485.patch create mode 100644 target/linux/generic/pending-5.10/850-0001-PCI-aardvark-Replace-custom-PCIE_CORE_INT_-macros-wi.patch create mode 100644 target/linux/generic/pending-5.10/850-0004-PCI-aardvark-Rewrite-IRQ-code-to-chained-IRQ-handler.patch create mode 100644 target/linux/generic/pending-5.10/850-0005-PCI-aardvark-Check-return-value-of-generic_handle_do.patch create mode 100644 target/linux/generic/pending-5.10/850-0006-PCI-aardvark-Make-MSI-irq_chip-structures-static-dri.patch create mode 100644 target/linux/generic/pending-5.10/850-0007-PCI-aardvark-Make-msi_domain_info-structure-a-static.patch create mode 100644 target/linux/generic/pending-5.10/850-0008-PCI-aardvark-Use-dev_fwnode-instead-of-of_node_to_fw.patch create mode 100644 target/linux/generic/pending-5.10/850-0009-PCI-aardvark-Refactor-unmasking-summary-MSI-interrup.patch create mode 100644 target/linux/generic/pending-5.10/850-0010-PCI-aardvark-Add-support-for-masking-MSI-interrupts.patch create mode 100644 target/linux/generic/pending-5.10/850-0011-PCI-aardvark-Fix-setting-MSI-address.patch create mode 100644 target/linux/generic/pending-5.10/850-0012-PCI-aardvark-Enable-MSI-X-support.patch create mode 100644 target/linux/generic/pending-5.10/850-0013-PCI-aardvark-Add-support-for-ERR-interrupt-on-emulat.patch create mode 100644 target/linux/generic/pending-5.10/850-0015-PCI-aardvark-Optimize-writing-PCI_EXP_RTCTL_PMEIE-an.patch create mode 100644 target/linux/generic/pending-5.10/850-0016-PCI-aardvark-Add-support-for-PME-interrupts.patch create mode 100644 target/linux/generic/pending-5.10/850-0017-PCI-aardvark-Fix-support-for-PME-requester-on-emulat.patch create mode 100644 target/linux/generic/pending-5.10/850-0018-PCI-aardvark-Use-separate-INTA-interrupt-for-emulate.patch create mode 100644 target/linux/generic/pending-5.10/850-0019-PCI-aardvark-Remove-irq_mask_ack-callback-for-INTx-i.patch create mode 100644 target/linux/generic/pending-5.10/850-0020-PCI-aardvark-Don-t-mask-irq-when-mapping.patch create mode 100644 target/linux/generic/pending-5.10/850-0021-PCI-aardvark-Drop-__maybe_unused-from-advk_pcie_disa.patch create mode 100644 target/linux/generic/pending-5.10/850-0022-PCI-aardvark-Update-comment-about-link-going-down-af.patch create mode 100644 target/linux/generic/pending-5.10/850-0023-PCI-aardvark-Make-main-irq_chip-structure-a-static-d.patch create mode 100644 target/linux/generic/pending-5.10/851-0001-phy-marvell-phy-mvebu-a3700-comphy-Remove-port-from-.patch create mode 100644 target/linux/generic/pending-5.10/851-0002-phy-marvell-phy-mvebu-a3700-comphy-Add-native-kernel.patch create mode 100644 target/linux/generic/pending-5.10/851-0003-arm64-dts-marvell-armada-37xx-Add-xtal-clock-to-comp.patch create mode 100644 target/linux/generic/pending-5.10/851-0004-Revert-ata-ahci-mvebu-Make-SATA-PHY-optional-for-Arm.patch create mode 100644 target/linux/generic/pending-5.10/851-0005-Revert-usb-host-xhci-mvebu-make-USB-3.0-PHY-optional.patch create mode 100644 target/linux/generic/pending-5.10/851-0006-Revert-PCI-aardvark-Fix-initialization-with-old-Marv.patch create mode 100644 target/linux/generic/pending-5.10/870-ca8210-Fix-crash-by-zero-initializing-data.patch create mode 100644 target/linux/generic/pending-5.10/920-mangle_bootargs.patch create mode 100644 target/linux/mvebu/Makefile create mode 100644 target/linux/mvebu/base-files/lib/preinit/79_move_config create mode 100644 target/linux/mvebu/config-5.10 create mode 100644 target/linux/mvebu/cortexa9/base-files/etc/board.d/01_leds create mode 100644 target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network create mode 100644 target/linux/mvebu/cortexa9/base-files/etc/board.d/05_compat-version create mode 100644 target/linux/mvebu/cortexa9/base-files/etc/hotplug.d/ieee80211/00-wifi-config-migrate create mode 100755 target/linux/mvebu/cortexa9/base-files/etc/init.d/bootcount create mode 100644 target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless create mode 100644 target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/04_mambafan create mode 100644 target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/05_fix-compat-version create mode 100644 target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/35_turris-omnia_uboot-env create mode 100644 target/linux/mvebu/cortexa9/base-files/lib/preinit/81_linksys_syscfg create mode 100644 target/linux/mvebu/cortexa9/base-files/lib/upgrade/linksys.sh create mode 100755 target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh create mode 100755 target/linux/mvebu/cortexa9/base-files/sbin/fan_ctrl.sh create mode 100644 target/linux/mvebu/cortexa9/config-5.10 create mode 100644 target/linux/mvebu/cortexa9/target.mk create mode 100644 target/linux/mvebu/files/arch/arm/boot/dts/armada-370-buffalo-ls421de.dts create mode 100644 target/linux/mvebu/files/arch/arm/boot/dts/armada-370-c200-v2.dts create mode 100644 target/linux/mvebu/files/arch/arm/boot/dts/armada-385-linksys-venom.dts create mode 100644 target/linux/mvebu/files/arch/arm/boot/dts/armada-385-nas1dual.dts create mode 100644 target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-3720-espressobin-ultra.dts create mode 100644 target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts create mode 100644 target/linux/mvebu/files/arch/arm64/boot/dts/marvell/armada-7040-mochabin.dts create mode 100644 target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts create mode 100644 target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts create mode 100644 target/linux/mvebu/image/Makefile create mode 100644 target/linux/mvebu/image/clearfog.bootscript create mode 100644 target/linux/mvebu/image/cortexa9.mk create mode 100644 target/linux/mvebu/image/espressobin.bootscript create mode 100755 target/linux/mvebu/image/gen_mvebu_sdcard_img.sh create mode 100644 target/linux/mvebu/image/generic-arm64.bootscript create mode 100644 target/linux/mvebu/image/turris-omnia.bootscript create mode 100644 target/linux/mvebu/image/udpu.bootscript create mode 100644 target/linux/mvebu/modules.mk create mode 100644 target/linux/mvebu/patches-5.10/001-v5.11-arm64-dts-mcbin-singleshot-add-heartbeat-LED.patch create mode 100644 target/linux/mvebu/patches-5.10/002-v5.11-ARM-dts-turris-omnia-enable-HW-buffer-management.patch create mode 100644 target/linux/mvebu/patches-5.10/003-v5.11-ARM-dts-turris-omnia-add-comphy-handle-to-eth2.patch create mode 100644 target/linux/mvebu/patches-5.10/004-v5.11-ARM-dts-turris-omnia-describe-switch-interrupt.patch create mode 100644 target/linux/mvebu/patches-5.10/005-v5.11-ARM-dts-turris-omnia-add-SFP-node.patch create mode 100644 target/linux/mvebu/patches-5.10/006-v5.11-ARM-dts-turris-omnia-add-LED-controller-node.patch create mode 100644 target/linux/mvebu/patches-5.10/007-v5.11-ARM-dts-turris-omnia-update-ethernet-phy-node-and-handle-name.patch create mode 100644 target/linux/mvebu/patches-5.10/008-v5.12-ARM-dts-turris-omnia-fix-hardware-buffer-management.patch create mode 100644 target/linux/mvebu/patches-5.10/100-mvebu-dt-ARM-dts-turris-omnia-configure-LED-0-pin-function-to.patch create mode 100644 target/linux/mvebu/patches-5.10/101-mvebu-dt-ARM-dts-turris-omnia-enable-LED-controller-node.patch create mode 100644 target/linux/mvebu/patches-5.10/102-leds-turris-omnia-support-HW-controlled-mode-via-pri.patch create mode 100644 target/linux/mvebu/patches-5.10/103-leds-turris-omnia-initialize-multi-intensity-to-full.patch create mode 100644 target/linux/mvebu/patches-5.10/104-leds-turris-omnia-change-max-brightness-from-255-to-.patch create mode 100644 target/linux/mvebu/patches-5.10/300-mvebu-Mangle-bootloader-s-kernel-arguments.patch create mode 100644 target/linux/mvebu/patches-5.10/301-mvebu-armada-38x-enable-libata-leds.patch create mode 100644 target/linux/mvebu/patches-5.10/302-add_powertables.patch create mode 100644 target/linux/mvebu/patches-5.10/303-linksys_hardcode_nand_ecc_settings.patch create mode 100644 target/linux/mvebu/patches-5.10/304-revert_i2c_delay.patch create mode 100644 target/linux/mvebu/patches-5.10/305-armada-385-rd-mtd-partitions.patch create mode 100644 target/linux/mvebu/patches-5.10/306-ARM-mvebu-385-ap-Add-partitions.patch create mode 100644 target/linux/mvebu/patches-5.10/307-armada-xp-linksys-mamba-broken-idle.patch create mode 100644 target/linux/mvebu/patches-5.10/308-armada-xp-linksys-mamba-wan.patch create mode 100644 target/linux/mvebu/patches-5.10/309-linksys-status-led.patch create mode 100644 target/linux/mvebu/patches-5.10/310-linksys-use-eth0-as-cpu-port.patch create mode 100644 target/linux/mvebu/patches-5.10/311-adjust-compatible-for-linksys.patch create mode 100644 target/linux/mvebu/patches-5.10/312-ARM-dts-armada388-clearfog-emmc-on-clearfog-base.patch create mode 100644 target/linux/mvebu/patches-5.10/313-helios4-dts-status-led-alias.patch create mode 100644 target/linux/mvebu/patches-5.10/314-arm64-dts-uDPU-switch-PHY-operation-mode-to-2500base.patch create mode 100644 target/linux/mvebu/patches-5.10/315-armada-xp-linksys-mamba-resize-kernel.patch create mode 100644 target/linux/mvebu/patches-5.10/316-armada-370-dts-fix-crypto-engine.patch create mode 100644 target/linux/mvebu/patches-5.10/400-find_active_root.patch create mode 100644 target/linux/mvebu/patches-5.10/700-mvneta-tx-queue-workaround.patch create mode 100644 target/linux/mvebu/patches-5.10/701-v5.14-net-ethernet-marvell-mvnetaMQPrio.patch create mode 100644 target/linux/mvebu/patches-5.10/702-net-next-ethernet-marvell-mvnetaMQPrioOffload.patch create mode 100644 target/linux/mvebu/patches-5.10/703-net-next-ethernet-marvell-mvnetaMQPrioFlag.patch create mode 100644 target/linux/mvebu/patches-5.10/704-net-next-ethernet-marvell-mvnetaMQPrioQueue.patch create mode 100644 target/linux/mvebu/patches-5.10/705-net-next-ethernet-marvell-mvnetaMQPrioTCOffload.patch create mode 100644 target/linux/mvebu/patches-5.10/800-cpuidle-mvebu-indicate-failure-to-enter-deeper-sleep.patch create mode 100644 target/linux/mvebu/patches-5.10/801-pci-mvebu-time-out-reset-on-link-up.patch create mode 100644 target/linux/mvebu/patches-5.10/901-dt-bindings-Add-IEI-vendor-prefix-and-IEI-WT61P803-P.patch create mode 100644 target/linux/mvebu/patches-5.10/902-drivers-mfd-Add-a-driver-for-IEI-WT61P803-PUZZLE-MCU.patch create mode 100644 target/linux/mvebu/patches-5.10/903-drivers-hwmon-Add-the-IEI-WT61P803-PUZZLE-HWMON-driv.patch create mode 100644 target/linux/mvebu/patches-5.10/904-drivers-leds-Add-the-IEI-WT61P803-PUZZLE-LED-driver.patch create mode 100644 target/linux/mvebu/patches-5.10/905-Documentation-ABI-Add-iei-wt61p803-puzzle-driver-sys.patch create mode 100644 target/linux/mvebu/patches-5.10/906-Documentation-hwmon-Add-iei-wt61p803-puzzle-hwmon-dr.patch create mode 100644 target/linux/mvebu/patches-5.10/907-MAINTAINERS-Add-an-entry-for-the-IEI-WT61P803-PUZZLE.patch create mode 100644 target/linux/mvebu/patches-5.10/910-drivers-leds-wt61p803-puzzle-improvements.patch create mode 100644 target/linux/rockchip/Makefile create mode 100644 target/linux/rockchip/armv8/base-files/etc/board.d/01_leds create mode 100644 target/linux/rockchip/armv8/base-files/etc/board.d/02_network create mode 100644 target/linux/rockchip/armv8/base-files/etc/hotplug.d/net/40-net-smp-affinity create mode 100644 target/linux/rockchip/armv8/base-files/lib/preinit/79_move_config create mode 100644 target/linux/rockchip/armv8/base-files/lib/upgrade/platform.sh create mode 100644 target/linux/rockchip/armv8/config-5.10 create mode 100644 target/linux/rockchip/armv8/target.mk create mode 100644 target/linux/rockchip/image/Makefile create mode 100644 target/linux/rockchip/image/armv8.mk create mode 100644 target/linux/rockchip/image/mmc.bootscript create mode 100644 target/linux/rockchip/image/nanopi-r2s.bootscript create mode 100644 target/linux/rockchip/image/nanopi-r4s.bootscript create mode 100644 target/linux/rockchip/patches-5.10/004-v5.13-rockchip-rk3399-Add-support-for-FriendlyARM-NanoPi-R.patch create mode 100644 target/linux/rockchip/patches-5.10/005-arm64-dts-rockchip-add-EEPROM-node-for-NanoPi-R4S.patch create mode 100644 target/linux/rockchip/patches-5.10/100-rockchip-use-system-LED-for-OpenWrt.patch create mode 100644 target/linux/rockchip/patches-5.10/101-dts-rockchip-add-usb3-controller-node-for-RK3328-SoCs.patch create mode 100644 target/linux/rockchip/patches-5.10/102-rockchip-enable-LAN-port-on-NanoPi-R2S.patch create mode 100644 target/linux/rockchip/patches-5.10/103-arm64-rockchip-add-OF-node-for-USB-eth-on-NanoPi-R2S.patch create mode 100644 target/linux/rockchip/patches-5.10/104-rockchip-use-USB-host-by-default-on-rk3399-rock-pi-4.patch create mode 100644 target/linux/rockchip/patches-5.10/105-nanopi-r4s-sd-signalling.patch create mode 100644 target/linux/rockchip/patches-5.10/106-r4s-openwrt-leds.patch create mode 100644 target/linux/sunxi/Makefile create mode 100644 target/linux/sunxi/base-files/etc/board.d/01_leds create mode 100644 target/linux/sunxi/base-files/etc/board.d/02_network create mode 100644 target/linux/sunxi/base-files/etc/board.d/05_compat-version create mode 100644 target/linux/sunxi/base-files/etc/inittab create mode 100644 target/linux/sunxi/base-files/lib/firmware/brcm/brcmfmac4329-sdio.txt create mode 100644 target/linux/sunxi/base-files/lib/firmware/brcm/brcmfmac43362-sdio.txt create mode 100644 target/linux/sunxi/base-files/lib/firmware/brcm/brcmfmac43430-sdio.txt create mode 120000 target/linux/sunxi/base-files/lib/firmware/brcm/brcmfmac43430a0-sdio.txt create mode 100644 target/linux/sunxi/base-files/lib/preinit/79_move_config create mode 100644 target/linux/sunxi/base-files/lib/upgrade/platform.sh create mode 100644 target/linux/sunxi/config-5.10 create mode 100644 target/linux/sunxi/cortexa53/config-5.10 create mode 100644 target/linux/sunxi/cortexa53/target.mk create mode 100644 target/linux/sunxi/cortexa7/config-5.10 create mode 100644 target/linux/sunxi/cortexa7/target.mk create mode 100644 target/linux/sunxi/cortexa8/config-5.10 create mode 100644 target/linux/sunxi/cortexa8/target.mk create mode 100644 target/linux/sunxi/image/Config.in create mode 100644 target/linux/sunxi/image/Makefile create mode 100644 target/linux/sunxi/image/cortexa53.mk create mode 100644 target/linux/sunxi/image/cortexa7.mk create mode 100644 target/linux/sunxi/image/cortexa8.mk create mode 100755 target/linux/sunxi/image/gen_sunxi_sdcard_img.sh create mode 100644 target/linux/sunxi/modules.mk create mode 100644 target/linux/sunxi/patches-5.10/062-add-sun8i-h3-zeropi-support.patch create mode 100644 target/linux/sunxi/patches-5.10/100-sunxi-h3-add-support-for-nanopi-r1.patch create mode 100644 target/linux/sunxi/patches-5.10/101-sunxi-h5-add-support-for-nanopi-r1s-h5.patch create mode 100644 target/linux/sunxi/patches-5.10/102-sunxi-add-OF-node-for-USB-eth-on-NanoPi-R1S-H5.patch create mode 100644 target/linux/sunxi/patches-5.10/301-orangepi_pc2_usb_otg_to_host_key_power.patch create mode 100644 target/linux/sunxi/patches-5.10/400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch create mode 100644 target/linux/sunxi/patches-5.10/430-arm64-dts-allwinner-a64-olinuxino-add-status-LED-ali.patch create mode 100644 target/linux/sunxi/patches-5.10/431-arm64-dts-allwinner-nanopi-r1s-h5-add-status-LED.patch create mode 100644 target/linux/sunxi/patches-5.10/442-arm64-dts-orangepi-one-plus-enable-PWM.patch create mode 100644 target/linux/sunxi/patches-5.10/450-arm64-dts-enable-wifi-on-pine64-boards.patch create mode 100644 target/linux/sunxi/profiles/00-default.mk create mode 100644 target/linux/uml/Makefile create mode 100644 target/linux/uml/README.md create mode 100644 target/linux/uml/base-files/etc/inittab create mode 100644 target/linux/uml/config-5.10 create mode 100644 target/linux/uml/files/arch/um/include/uapi/asm/Kbuild create mode 100644 target/linux/uml/image/Makefile create mode 100644 target/linux/uml/patches-5.10/101-mconsole-exec.patch create mode 100644 target/linux/uml/patches-5.10/102-pseudo-random-mac.patch create mode 100644 target/linux/x86/64/base-files/lib/preinit/45_mount_xenfs create mode 100644 target/linux/x86/64/config-5.10 create mode 100644 target/linux/x86/64/target.mk create mode 100644 target/linux/x86/Makefile create mode 100644 target/linux/x86/base-files/etc/board.d/01_leds create mode 100644 target/linux/x86/base-files/etc/board.d/02_network create mode 100644 target/linux/x86/base-files/etc/diag.sh create mode 100644 target/linux/x86/base-files/etc/inittab create mode 100644 target/linux/x86/base-files/lib/preinit/01_sysinfo create mode 100644 target/linux/x86/base-files/lib/preinit/02_load_x86_ucode create mode 100644 target/linux/x86/base-files/lib/preinit/15_essential_fs_x86 create mode 100644 target/linux/x86/base-files/lib/preinit/20_check_iso create mode 100644 target/linux/x86/base-files/lib/preinit/79_move_config create mode 100644 target/linux/x86/base-files/lib/preinit/81_upgrade_bootloader create mode 100644 target/linux/x86/base-files/lib/upgrade/platform.sh create mode 100644 target/linux/x86/config-5.10 create mode 100644 target/linux/x86/generic/base-files/lib/preinit/45_mount_xenfs create mode 100644 target/linux/x86/generic/config-5.10 create mode 100644 target/linux/x86/generic/target.mk create mode 100644 target/linux/x86/geode/config-5.10 create mode 100644 target/linux/x86/geode/target.mk create mode 100644 target/linux/x86/image/64.mk create mode 100644 target/linux/x86/image/Makefile create mode 100644 target/linux/x86/image/generic.mk create mode 100644 target/linux/x86/image/geode.mk create mode 100644 target/linux/x86/image/grub-efi.cfg create mode 100644 target/linux/x86/image/grub-iso.cfg create mode 100644 target/linux/x86/image/grub-pc.cfg create mode 100644 target/linux/x86/image/legacy.mk create mode 100644 target/linux/x86/legacy/config-5.10 create mode 100644 target/linux/x86/legacy/target.mk create mode 100644 target/linux/x86/modules.mk create mode 100644 target/linux/x86/patches-5.10/012-pcengines-apu2-detect-apuv4-board.patch create mode 100644 target/linux/x86/patches-5.10/100-fix_cs5535_clockevt.patch create mode 100644 target/linux/x86/patches-5.10/101-v5.15-mfd-lpc_ich-Enable-GPIO-driver-for-DH89xxCC.patch create mode 100644 target/linux/x86/patches-5.10/102-v5.15-platform-x86-add-meraki-mx100-platform-driver.patch create mode 100644 target/linux/x86/patches-5.10/113-v5.21-platform-x86-pmc_atom-Add-Lex-3I380NX-industrial-PC-.patch create mode 100644 target/linux/x86/patches-5.10/300-pcengines_apu1_led.patch create mode 100644 target/llvm-bpf/Makefile create mode 100644 target/sdk/Config.in create mode 100644 target/sdk/Makefile create mode 100755 target/sdk/convert-config.pl create mode 100644 target/sdk/files/Config.in create mode 100644 target/sdk/files/Makefile create mode 100644 target/sdk/files/README.SDK create mode 100644 target/sdk/files/include/prepare.mk create mode 100644 target/toolchain/Config.in create mode 100644 target/toolchain/Makefile create mode 100644 target/toolchain/files/README.TOOLCHAIN create mode 100755 target/toolchain/files/wrapper.sh create mode 100644 toolchain/Config.in create mode 100644 toolchain/Makefile create mode 100644 toolchain/binutils/Config.in create mode 100644 toolchain/binutils/Config.version create mode 100644 toolchain/binutils/Makefile create mode 100644 toolchain/binutils/patches/2.37/300-001_ld_makefile_patch.patch create mode 100644 toolchain/binutils/patches/2.37/400-mips_no_dynamic_linking_sym.patch create mode 100644 toolchain/binutils/patches/2.37/500-Change-default-emulation-for-mips64-linux.patch create mode 100644 toolchain/binutils/patches/2.37/600-Close_the_file_descriptor.patch create mode 100644 toolchain/binutils/patches/2.38/300-001_ld_makefile_patch.patch create mode 100644 toolchain/binutils/patches/2.38/400-mips_no_dynamic_linking_sym.patch create mode 100644 toolchain/binutils/patches/2.38/500-Change-default-emulation-for-mips64-linux.patch create mode 100644 toolchain/build_version create mode 100644 toolchain/fortify-headers/Makefile create mode 100644 toolchain/gcc/Config.in create mode 100644 toolchain/gcc/Config.version create mode 100644 toolchain/gcc/common.mk create mode 100644 toolchain/gcc/exclude-testsuite create mode 100644 toolchain/gcc/files/alternate-arch-cc.in create mode 100644 toolchain/gcc/final/Makefile create mode 100644 toolchain/gcc/initial/Makefile create mode 100644 toolchain/gcc/minimal/Makefile create mode 100644 toolchain/gcc/patches/10.3.0/002-case_insensitive.patch create mode 100644 toolchain/gcc/patches/10.3.0/010-documentation.patch create mode 100644 toolchain/gcc/patches/10.3.0/110-Fix-MIPS-PR-84790.patch create mode 100644 toolchain/gcc/patches/10.3.0/230-musl_libssp.patch create mode 100644 toolchain/gcc/patches/10.3.0/300-mips_Os_cpu_rtx_cost_model.patch create mode 100644 toolchain/gcc/patches/10.3.0/810-arm-softfloat-libgcc.patch create mode 100644 toolchain/gcc/patches/10.3.0/820-libgcc_pic.patch create mode 100644 toolchain/gcc/patches/10.3.0/840-armv4_pass_fix-v4bx_to_ld.patch create mode 100644 toolchain/gcc/patches/10.3.0/850-use_shared_libgcc.patch create mode 100644 toolchain/gcc/patches/10.3.0/851-libgcc_no_compat.patch create mode 100644 toolchain/gcc/patches/10.3.0/870-ppc_no_crtsavres.patch create mode 100644 toolchain/gcc/patches/10.3.0/881-no_tm_section.patch create mode 100644 toolchain/gcc/patches/10.3.0/900-bad-mips16-crt.patch create mode 100644 toolchain/gcc/patches/10.3.0/910-mbsd_multi.patch create mode 100644 toolchain/gcc/patches/10.3.0/920-specs_nonfatal_getenv.patch create mode 100644 toolchain/gcc/patches/10.3.0/930-fix-mips-noexecstack.patch create mode 100644 toolchain/gcc/patches/10.3.0/931-libffi-fix-MIPS-softfloat-build-issue.patch create mode 100644 toolchain/gcc/patches/10.3.0/960-gotools-fix-compilation-when-making-cross-compiler.patch create mode 100644 toolchain/gcc/patches/11.2.0/001-v11.3.0-ranger-Fix-up-fold_using_range-range_of_address-PR10.patch create mode 100644 toolchain/gcc/patches/11.2.0/002-case_insensitive.patch create mode 100644 toolchain/gcc/patches/11.2.0/010-documentation.patch create mode 100644 toolchain/gcc/patches/11.2.0/011-v12-configure-define-TARGET_LIBC_GNUSTACK-on-musl.patch create mode 100644 toolchain/gcc/patches/11.2.0/110-Fix-MIPS-PR-84790.patch create mode 100644 toolchain/gcc/patches/11.2.0/230-musl_libssp.patch create mode 100644 toolchain/gcc/patches/11.2.0/300-mips_Os_cpu_rtx_cost_model.patch create mode 100644 toolchain/gcc/patches/11.2.0/810-arm-softfloat-libgcc.patch create mode 100644 toolchain/gcc/patches/11.2.0/820-libgcc_pic.patch create mode 100644 toolchain/gcc/patches/11.2.0/840-armv4_pass_fix-v4bx_to_ld.patch create mode 100644 toolchain/gcc/patches/11.2.0/850-use_shared_libgcc.patch create mode 100644 toolchain/gcc/patches/11.2.0/851-libgcc_no_compat.patch create mode 100644 toolchain/gcc/patches/11.2.0/870-ppc_no_crtsavres.patch create mode 100644 toolchain/gcc/patches/11.2.0/881-no_tm_section.patch create mode 100644 toolchain/gcc/patches/11.2.0/900-bad-mips16-crt.patch create mode 100644 toolchain/gcc/patches/11.2.0/910-mbsd_multi.patch create mode 100644 toolchain/gcc/patches/11.2.0/920-specs_nonfatal_getenv.patch create mode 100644 toolchain/gcc/patches/11.2.0/931-libffi-fix-MIPS-softfloat-build-issue.patch create mode 100644 toolchain/gcc/patches/11.2.0/960-gotools-fix-compilation-when-making-cross-compiler.patch create mode 100644 toolchain/gcc/patches/11.2.0/970-macos_arm64-building-fix.patch create mode 100644 toolchain/gcc/patches/8.4.0/002-case_insensitive.patch create mode 100644 toolchain/gcc/patches/8.4.0/010-documentation.patch create mode 100644 toolchain/gcc/patches/8.4.0/110-Fix-MIPS-PR-84790.patch create mode 100644 toolchain/gcc/patches/8.4.0/230-musl_libssp.patch create mode 100644 toolchain/gcc/patches/8.4.0/300-mips_Os_cpu_rtx_cost_model.patch create mode 100644 toolchain/gcc/patches/8.4.0/800-arm_v5te_no_ldrd_strd.patch create mode 100644 toolchain/gcc/patches/8.4.0/810-arm-softfloat-libgcc.patch create mode 100644 toolchain/gcc/patches/8.4.0/820-libgcc_pic.patch create mode 100644 toolchain/gcc/patches/8.4.0/840-armv4_pass_fix-v4bx_to_ld.patch create mode 100644 toolchain/gcc/patches/8.4.0/850-use_shared_libgcc.patch create mode 100644 toolchain/gcc/patches/8.4.0/851-libgcc_no_compat.patch create mode 100644 toolchain/gcc/patches/8.4.0/870-ppc_no_crtsavres.patch create mode 100644 toolchain/gcc/patches/8.4.0/881-no_tm_section.patch create mode 100644 toolchain/gcc/patches/8.4.0/900-bad-mips16-crt.patch create mode 100644 toolchain/gcc/patches/8.4.0/910-mbsd_multi.patch create mode 100644 toolchain/gcc/patches/8.4.0/920-specs_nonfatal_getenv.patch create mode 100644 toolchain/gcc/patches/8.4.0/930-fix-mips-noexecstack.patch create mode 100644 toolchain/gcc/patches/8.4.0/931-libffi-fix-MIPS-softfloat-build-issue.patch create mode 100644 toolchain/gcc/patches/8.4.0/960-gotools-fix-compilation-when-making-cross-compiler.patch create mode 100644 toolchain/gdb/Makefile create mode 100644 toolchain/gdb/patches/120-fix-compile-flag-mismatch.patch create mode 100644 toolchain/glibc/Makefile create mode 100644 toolchain/glibc/common.mk create mode 100644 toolchain/glibc/headers/Makefile create mode 100644 toolchain/glibc/include/libintl.h create mode 100644 toolchain/glibc/patches/050-Revert-Disallow-use-of-DES-encryption-functions-in-n.patch create mode 100644 toolchain/glibc/patches/100-fix_cross_rpcgen.patch create mode 100644 toolchain/glibc/patches/200-add-dl-search-paths.patch create mode 100644 toolchain/info.mk create mode 100644 toolchain/kernel-headers/Makefile create mode 100644 toolchain/musl/Config.in create mode 100644 toolchain/musl/Makefile create mode 100644 toolchain/musl/common.mk create mode 100644 toolchain/musl/include/sys/queue.h create mode 100644 toolchain/musl/patches/110-read_timezone_from_fs.patch create mode 100644 toolchain/musl/patches/200-add_libssp_nonshared.patch create mode 100644 toolchain/musl/patches/300-relative.patch create mode 100644 toolchain/musl/patches/600-nftw-support-common-gnu-extension.patch create mode 100644 toolchain/musl/patches/900-iconv_size_hack.patch create mode 100644 toolchain/musl/patches/901-crypt_size_hack.patch create mode 100644 toolchain/nasm/Makefile create mode 100644 toolchain/wrapper/Makefile create mode 100644 tools/Makefile create mode 100644 tools/autoconf-archive/Makefile create mode 100644 tools/autoconf/Makefile create mode 100644 tools/autoconf/patches/000-relocatable.patch create mode 100644 tools/autoconf/patches/001-no_emacs_lib.patch create mode 100644 tools/autoconf/patches/002-musl_host_fixup.patch create mode 100644 tools/automake/Makefile create mode 100755 tools/automake/files/aclocal create mode 100644 tools/automake/patches/000-relocatable.patch create mode 100644 tools/automake/patches/100-aclocal-skip-not-existing-directories.patch create mode 100644 tools/bash/Makefile create mode 100644 tools/bc/Makefile create mode 100644 tools/bc/patches/001-no_doc.patch create mode 100644 tools/bison/Makefile create mode 100755 tools/bison/scripts/yacc create mode 100644 tools/cbootimage-configs/Makefile create mode 100644 tools/cbootimage/Makefile create mode 100644 tools/ccache/Makefile create mode 100755 tools/ccache/files/ccache_cc create mode 100755 tools/ccache/files/ccache_cxx create mode 100644 tools/ccache/patches/100-honour-copts.patch create mode 100644 tools/cmake/Makefile create mode 100644 tools/cmake/patches/100-no-testing.patch create mode 100644 tools/cmake/patches/120-curl-fix-libressl-linking.patch create mode 100644 tools/cmake/patches/130-bootstrap_parallel_make_flag.patch create mode 100644 tools/coreutils/Makefile create mode 100644 tools/cpio/Makefile create mode 100644 tools/cpio/patches/001-duplicate-program-name.patch create mode 100644 tools/cpio/patches/010-clang.patch create mode 100644 tools/dosfstools/Makefile create mode 100644 tools/e2fsprogs/Makefile create mode 100644 tools/e2fsprogs/patches/001-exit_0_on_corrected_errors.patch create mode 100644 tools/e2fsprogs/patches/002-dont-build-e4defrag.patch create mode 100644 tools/e2fsprogs/patches/003-no-crond.patch create mode 100644 tools/e2fsprogs/patches/004-CVE-2022-1304-libext2fs-add-sanity-check-to-extent-manipulation.patch create mode 100644 tools/elftosb/Makefile create mode 100644 tools/elftosb/patches/001-libm.patch create mode 100644 tools/elftosb/patches/002-fix-header-path.patch create mode 100644 tools/elftosb/patches/003-use-ldflags.patch create mode 100644 tools/expat/Makefile create mode 100644 tools/fakeroot/Makefile create mode 100644 tools/fakeroot/patches/000-relocatable.patch create mode 100644 tools/fakeroot/patches/200-disable-doc.patch create mode 100644 tools/fakeroot/patches/400-alpine-libc.musl-fix.patch create mode 100644 tools/fakeroot/patches/600-macOS.patch create mode 100644 tools/findutils/Makefile create mode 100644 tools/findutils/patches/010-endpwent.patch create mode 100644 tools/firmware-utils/Makefile create mode 100644 tools/flex/Makefile create mode 100644 tools/flex/patches/100-disable-tests-docs.patch create mode 100644 tools/flex/patches/200-build-AC_USE_SYSTEM_EXTENSIONS-in-configure.ac.patch create mode 100644 tools/flock/Makefile create mode 100644 tools/flock/src/flock.c create mode 100644 tools/genext2fs/Makefile create mode 100644 tools/genext2fs/patches/100-c99_scanf.patch create mode 100644 tools/genext2fs/patches/200-autoconf.patch create mode 100644 tools/genext2fs/patches/300-blocksize-creator.patch create mode 100644 tools/genext2fs/patches/400-byteswap_fix.patch create mode 100644 tools/gengetopt/Makefile create mode 100644 tools/gengetopt/patches/100-no-tests-docs.patch create mode 100644 tools/gmp/Makefile create mode 100644 tools/include/asm/types.h create mode 100644 tools/include/byteswap.h create mode 100644 tools/include/elf.h create mode 100644 tools/include/endian.h create mode 100644 tools/include/sys/sysmacros.h create mode 100644 tools/isl/Makefile create mode 100644 tools/kernel2minor/Makefile create mode 100644 tools/libressl/Makefile create mode 100644 tools/libtool/Makefile create mode 100644 tools/libtool/files/libtool-v1.5.patch create mode 100644 tools/libtool/files/libtool-v2.2.patch create mode 100644 tools/libtool/files/libtool-v2.4.patch create mode 100644 tools/libtool/patches/000-relocatable.patch create mode 100644 tools/libtool/patches/100-libdir-fixes.patch create mode 100644 tools/libtool/patches/110-dont-use-target-dir-for-relinking.patch create mode 100644 tools/libtool/patches/120-strip-unsafe-dirs-for-relinking.patch create mode 100644 tools/libtool/patches/150-trailingslash.patch create mode 100644 tools/libtool/patches/160-passthrough-ssp.patch create mode 100644 tools/libtool/patches/200-openwrt-branding.patch create mode 100644 tools/llvm-bpf/Makefile create mode 100644 tools/lzma-old/Makefile create mode 100644 tools/lzma-old/patches/100-lzma_zlib.patch create mode 100644 tools/lzma-old/patches/110-ranlib.patch create mode 100644 tools/lzma-old/patches/120-add-cflags.patch create mode 100644 tools/lzma/Makefile create mode 100644 tools/lzma/patches/001-large_files.patch create mode 100644 tools/lzma/patches/002-lzmp.patch create mode 100644 tools/lzma/patches/003-compile_fixes.patch create mode 100644 tools/lzma/patches/100-static_library.patch create mode 100644 tools/lzma/patches/101-move-copyright-to-usage-info.patch create mode 100644 tools/m4/Makefile create mode 100644 tools/make-ext4fs/Makefile create mode 100644 tools/meson/Makefile create mode 100644 tools/meson/files/librecmc-cross.txt.in create mode 100644 tools/meson/files/librecmc-native.txt.in create mode 100644 tools/meson/patches/010-wsl2.patch create mode 100644 tools/missing-macros/Makefile create mode 100644 tools/missing-macros/src/README create mode 100755 tools/missing-macros/src/bin/help2man create mode 100755 tools/missing-macros/src/bin/makeinfo create mode 100644 tools/missing-macros/src/m4/as-ac-expand.m4 create mode 100644 tools/missing-macros/src/m4/as-compiler-flag.m4 create mode 100644 tools/missing-macros/src/m4/as-unaligned-access.m4 create mode 100644 tools/missing-macros/src/m4/as-version.m4 create mode 100644 tools/missing-macros/src/m4/dnet.m4 create mode 100644 tools/missing-macros/src/m4/fake-gtk-doc-check.m4 create mode 100644 tools/missing-macros/src/m4/fake-intltool.m4 create mode 100644 tools/missing-macros/src/m4/glibc2.m4 create mode 100644 tools/missing-macros/src/m4/glibc21.m4 create mode 100644 tools/missing-macros/src/m4/intdiv0.m4 create mode 100644 tools/missing-macros/src/m4/intmax.m4 create mode 100644 tools/missing-macros/src/m4/inttypes-pri.m4 create mode 100644 tools/missing-macros/src/m4/inttypes_h.m4 create mode 100644 tools/missing-macros/src/m4/lib-ld.m4 create mode 100644 tools/missing-macros/src/m4/lib-link.m4 create mode 100644 tools/missing-macros/src/m4/lib-prefix.m4 create mode 100644 tools/missing-macros/src/m4/mfx_acc.m4 create mode 100644 tools/missing-macros/src/m4/mfx_cppflags.m4 create mode 100644 tools/missing-macros/src/m4/mfx_limits.m4 create mode 100644 tools/missing-macros/src/m4/progtest.m4 create mode 100644 tools/missing-macros/src/m4/stdint_h.m4 create mode 100644 tools/missing-macros/src/m4/uintmax_t.m4 create mode 100644 tools/missing-macros/src/m4/va_copy.m4 create mode 100644 tools/missing-macros/src/m4/wint_t.m4 create mode 100644 tools/mkimage/Makefile create mode 100644 tools/mkimage/patches/030-allow-to-use-different-magic.patch create mode 100644 tools/mkimage/patches/050-Add-compatibility-with-non-Linux-hosts.patch create mode 100644 tools/mkimage/patches/090-macos-arm64-builing-fix.patch create mode 100644 tools/mkimage/patches/095-tools-disable-TOOLS_FIT_FULL_CHECK.patch create mode 100644 tools/mkimage/patches/100-increase-tmpfile-name-length-limit.patch create mode 100644 tools/mklibs/Makefile create mode 100644 tools/mklibs/include/elf.h create mode 100644 tools/mklibs/patches/001-compile.patch create mode 100644 tools/mklibs/patches/002-disable_symbol_checks.patch create mode 100644 tools/mklibs/patches/003-no_copy.patch create mode 100644 tools/mklibs/patches/004-libpthread_link.patch create mode 100644 tools/mklibs/patches/005-duplicate_syms.patch create mode 100644 tools/mklibs/patches/007-gc_sections.patch create mode 100644 tools/mklibs/patches/008-uclibc_libgcc_link.patch create mode 100644 tools/mklibs/patches/010-remove_STT_GNU_IFUNC.patch create mode 100644 tools/mklibs/patches/011-remove_multiarch.patch create mode 100644 tools/mklibs/patches/100-apply-2to3.patch create mode 100644 tools/mpc/Makefile create mode 100644 tools/mpfr/Makefile create mode 100644 tools/mpfr/patches/001-only_src.patch create mode 100644 tools/mpfr/patches/100-freebsd-compat.patch create mode 100644 tools/mtd-utils/Makefile create mode 100644 tools/mtd-utils/include/fls.h create mode 100644 tools/mtd-utils/include/linux/types.h create mode 100644 tools/mtd-utils/patches/100-sscanf_fix.patch create mode 100644 tools/mtd-utils/patches/110-portability.patch create mode 100644 tools/mtd-utils/patches/130-lzma_jffs2.patch create mode 100644 tools/mtd-utils/patches/134-freebsd_loff_t.patch create mode 100644 tools/mtd-utils/patches/200-libubigen-add-ubigen_write_terminator-function.patch create mode 100644 tools/mtd-utils/patches/201-ubinize-add-terminator-support.patch create mode 100644 tools/mtd-utils/patches/320-mkfs.jffs2-SOURCE_DATE_EPOCH.patch create mode 100644 tools/mtools/Makefile create mode 100644 tools/ninja/Makefile create mode 100644 tools/ninja/patches/100-make_jobserver_support.patch create mode 100644 tools/padjffs2/Makefile create mode 100644 tools/padjffs2/src/Makefile create mode 100644 tools/padjffs2/src/padjffs2.c create mode 100644 tools/patch-image/Makefile create mode 100644 tools/patch-image/src/patch-cmdline.c create mode 100644 tools/patch-image/src/patch-dtb.c create mode 100644 tools/patch/Makefile create mode 100644 tools/patch/patches/010-CVE-2018-6951.patch create mode 100644 tools/patch/patches/020-CVE-2018-1000156.patch create mode 100644 tools/patch/patches/030-CVE-2018-6952.patch create mode 100644 tools/patch/patches/040-Fix-error-handling-with-git-style-patches.patch create mode 100644 tools/patch/patches/050-CVE-2019-13636.patch create mode 100644 tools/patch/patches/060-CVE-2019-13638.patch create mode 100644 tools/patch/patches/070-don-t-fail-hard-on-EACCES-when-copying-xattrs.patch create mode 100644 tools/patchelf/Makefile create mode 100644 tools/pkgconf/Makefile create mode 100755 tools/pkgconf/files/pkg-config create mode 100644 tools/quilt/Makefile create mode 100644 tools/quilt/patches/000-relocatable.patch create mode 100644 tools/quilt/patches/001-fix_compile.patch create mode 100644 tools/sdimage/Makefile create mode 100644 tools/sdimage/patches/100-deactivate-ufb.patch create mode 100644 tools/sed/Makefile create mode 100644 tools/sparse/Makefile create mode 100644 tools/squashfs/Makefile create mode 100644 tools/squashfs/patches/100-lzma.patch create mode 100644 tools/squashfs/patches/110-no_nonstatic_inline.patch create mode 100644 tools/squashfs/patches/120-add-fixed-timestamp-support.patch create mode 100644 tools/squashfs/patches/130-include_sysmacros.patch create mode 100644 tools/squashfs/patches/140-gcc-10-fix.patch create mode 100644 tools/squashfskit4/Makefile create mode 100644 tools/squashfskit4/patches/0001-fix-version.sh.patch create mode 100644 tools/squashfskit4/patches/0002-fix-build-failure-against-gcc-10.patch create mode 100644 tools/squashfskit4/patches/0010-portability.patch create mode 100644 tools/squashfskit4/patches/0020-big-endian.patch create mode 100644 tools/sstrip/Makefile create mode 100644 tools/sstrip/patches/001-disable-elftoc-compilation.patch create mode 100644 tools/tar/Makefile create mode 100644 tools/tar/patches/100-symlink-force-root-name.patch create mode 100644 tools/tar/patches/110-symlink-force-permissions.patch create mode 100644 tools/xz/Makefile create mode 100644 tools/zip/Makefile create mode 100644 tools/zip/patches/001-unix-configure-borrow-the-LFS-test-from-autotools.patch create mode 100644 tools/zip/patches/004-do-not-set-unwanted-cflags.patch create mode 100644 tools/zip/patches/006-stack-markings-to-avoid-executable-stack.patch create mode 100644 tools/zip/patches/007-fclose-in-file-not-fclose-x.patch create mode 100644 tools/zip/patches/008-hardening-build-fix-1.patch create mode 100644 tools/zip/patches/009-hardening-build-fix-2.patch create mode 100644 tools/zip/patches/010-remove-build-date.patch create mode 100644 tools/zip/patches/011-reproducible-mtime.patch create mode 100644 tools/zip/patches/012-make-encrypted-archives-reproducible.patch create mode 100644 tools/zlib/Makefile create mode 100644 tools/zlib/patches/006-fix-compressor-crash-on-certain-inputs.patch create mode 100644 tools/zlib/patches/900-overridable-pc-exec-prefix.patch create mode 100644 tools/zstd/Makefile diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..fa1385d99a --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..7025757407 --- /dev/null +++ b/.gitignore @@ -0,0 +1,34 @@ +*.o +.DS_Store +.*.swp +/env +/dl +/.config +/.config.old +/bin +/build_dir +/staging_dir +/tmp +/logs +/feeds +/feeds.conf +/files +/overlay +/package/feeds +/package/openwrt-packages +/*.patch +key-build* +*.orig +*.rej +*~ +.#* +*# +.emacs.desktop* +TAGS*~ +git-src +*.o +*.so +*.swp +*.po~ +/package/luci/modules/luci-base/src/po2lmo +/package/luci/modules/luci-base/src/jsmin diff --git a/BSDmakefile b/BSDmakefile new file mode 100644 index 0000000000..66fe08858f --- /dev/null +++ b/BSDmakefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006 OpenWrt.org + +world ${.TARGETS}: + @gmake $@ diff --git a/COPYING b/COPYING new file mode 100644 index 0000000000..5bd44c1f27 --- /dev/null +++ b/COPYING @@ -0,0 +1,12 @@ +libreCMC is provided under: + + SPDX-License-Identifier: GPL-2.0-only + +Being under the terms of the GNU General Public License version 2 only, +according with: + + LICENSES/GPL-2.0 + +In addition, other licenses may also apply. + +All contributions to libreCMC are subject to this COPYING file. diff --git a/Config.in b/Config.in new file mode 100644 index 0000000000..e5adbb2258 --- /dev/null +++ b/Config.in @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2013 OpenWrt.org + +mainmenu "libreCMC Configuration" + +config MODULES + modules + bool + default y + +config HAVE_DOT_CONFIG + bool + default y + +HOST_OS := $(shell, uname) + +config HOST_OS_LINUX + def_bool $(shell, ./config/check-uname.sh Linux) + +config HOST_OS_MACOS + def_bool $(shell, ./config/check-uname.sh Darwin) + +source "target/Config.in" + +source "config/Config-images.in" + +source "config/Config-build.in" + +source "config/Config-devel.in" + +source "toolchain/Config.in" + +source "target/imagebuilder/Config.in" + +source "target/sdk/Config.in" + +source "target/toolchain/Config.in" + +source "tmp/.config-package.in" diff --git a/LICENSES/BSD-2-Clause b/LICENSES/BSD-2-Clause new file mode 100644 index 0000000000..da366e2ce5 --- /dev/null +++ b/LICENSES/BSD-2-Clause @@ -0,0 +1,32 @@ +Valid-License-Identifier: BSD-2-Clause +SPDX-URL: https://spdx.org/licenses/BSD-2-Clause.html +Usage-Guide: + To use the BSD 2-clause "Simplified" License put the following SPDX + tag/value pair into a comment according to the placement guidelines in + the licensing rules documentation: + SPDX-License-Identifier: BSD-2-Clause +License-Text: + +Copyright (c) . All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/LICENSES/BSD-3-Clause b/LICENSES/BSD-3-Clause new file mode 100644 index 0000000000..34c7f057c8 --- /dev/null +++ b/LICENSES/BSD-3-Clause @@ -0,0 +1,36 @@ +Valid-License-Identifier: BSD-3-Clause +SPDX-URL: https://spdx.org/licenses/BSD-3-Clause.html +Usage-Guide: + To use the BSD 3-clause "New" or "Revised" License put the following SPDX + tag/value pair into a comment according to the placement guidelines in + the licensing rules documentation: + SPDX-License-Identifier: BSD-3-Clause +License-Text: + +Copyright (c) . All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/LICENSES/GPL-1.0 b/LICENSES/GPL-1.0 new file mode 100644 index 0000000000..1c50e3b839 --- /dev/null +++ b/LICENSES/GPL-1.0 @@ -0,0 +1,261 @@ +Valid-License-Identifier: GPL-1.0-or-later +Valid-License-Identifier: GPL-1.0+ +SPDX-URL: https://spdx.org/licenses/GPL-1.0.html +Usage-Guide: + The GNU General Public License (GPL) version 1 should not be used in new + code. For existing kernel code the 'or any later version' option is + required to be compatible with the general license of the project: GPLv2. + To use the license in source code, put the following SPDX tag/value pair + into a comment according to the placement guidelines in the licensing + rules documentation: + SPDX-License-Identifier: GPL-1.0-or-later +License-Text: + + GNU GENERAL PUBLIC LICENSE + Version 1, February 1989 + + Copyright (C) 1989 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The license agreements of most software companies try to keep users +at the mercy of those companies. By contrast, our General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. The +General Public License applies to the Free Software Foundation's +software and to any other program whose authors commit to using it. +You can use it for your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Specifically, the General Public License is designed to make +sure that you have the freedom to give away or sell copies of free +software, that you receive source code or can get it if you want it, +that you can change the software or use pieces of it in new free +programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of a such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must tell them their rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any program or other work which +contains a notice placed by the copyright holder saying it may be +distributed under the terms of this General Public License. The +"Program", below, refers to any such program or work, and a "work based +on the Program" means either the Program or any work containing the +Program or a portion of it, either verbatim or with modifications. Each +licensee is addressed as "you". + + 1. You may copy and distribute verbatim copies of the Program's source +code as you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this +General Public License and to the absence of any warranty; and give any +other recipients of the Program a copy of this General Public License +along with the Program. You may charge a fee for the physical act of +transferring a copy. + + 2. You may modify your copy or copies of the Program or any portion of +it, and copy and distribute such modifications under the terms of Paragraph +1 above, provided that you also do the following: + + a) cause the modified files to carry prominent notices stating that + you changed the files and the date of any change; and + + b) cause the whole of any work that you distribute or publish, that + in whole or in part contains the Program or any part thereof, either + with or without modifications, to be licensed at no charge to all + third parties under the terms of this General Public License (except + that you may choose to grant warranty protection to some or all + third parties, at your option). + + c) If the modified program normally reads commands interactively when + run, you must cause it, when started running for such interactive use + in the simplest and most usual way, to print or display an + announcement including an appropriate copyright notice and a notice + that there is no warranty (or else, saying that you provide a + warranty) and that users may redistribute the program under these + conditions, and telling the user how to view a copy of this General + Public License. + + d) You may charge a fee for the physical act of transferring a + copy, and you may at your option offer warranty protection in + exchange for a fee. + +Mere aggregation of another independent work with the Program (or its +derivative) on a volume of a storage or distribution medium does not bring +the other work under the scope of these terms. + + 3. You may copy and distribute the Program (or a portion or derivative of +it, under Paragraph 2) in object code or executable form under the terms of +Paragraphs 1 and 2 above provided that you also do one of the following: + + a) accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of + Paragraphs 1 and 2 above; or, + + b) accompany it with a written offer, valid for at least three + years, to give any third party free (except for a nominal charge + for the cost of distribution) a complete machine-readable copy of the + corresponding source code, to be distributed under the terms of + Paragraphs 1 and 2 above; or, + + c) accompany it with the information you received as to where the + corresponding source code may be obtained. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form alone.) + +Source code for a work means the preferred form of the work for making +modifications to it. For an executable file, complete source code means +all the source code for all modules it contains; but, as a special +exception, it need not include source code for modules which are standard +libraries that accompany the operating system on which the executable +file runs, or for standard header files or definitions files that +accompany that operating system. + + 4. You may not copy, modify, sublicense, distribute or transfer the +Program except as expressly provided under this General Public License. +Any attempt otherwise to copy, modify, sublicense, distribute or transfer +the Program is void, and will automatically terminate your rights to use +the Program under this License. However, parties who have received +copies, or rights to use copies, from you under this General Public +License will not have their licenses terminated so long as such parties +remain in full compliance. + + 5. By copying, distributing or modifying the Program (or any work based +on the Program) you indicate your acceptance of this license to do so, +and all its terms and conditions. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the original +licensor to copy, distribute or modify the Program subject to these +terms and conditions. You may not impose any further restrictions on the +recipients' exercise of the rights granted herein. + + 7. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of the license which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +the license, you may choose any version ever published by the Free Software +Foundation. + + 8. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + Appendix: How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to humanity, the best way to achieve this is to make it +free software which everyone can redistribute and change under these +terms. + + To do so, attach the following notices to the program. It is safest to +attach them to the start of each source file to most effectively convey +the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 1, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19xx name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the +appropriate parts of the General Public License. Of course, the +commands you use may be called something other than `show w' and `show +c'; they could even be mouse-clicks or menu items--whatever suits your +program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + program `Gnomovision' (a program to direct compilers to make passes + at assemblers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/LICENSES/GPL-2.0 b/LICENSES/GPL-2.0 new file mode 100644 index 0000000000..4d90dc142d --- /dev/null +++ b/LICENSES/GPL-2.0 @@ -0,0 +1,355 @@ +Valid-License-Identifier: GPL-2.0-only +Valid-License-Identifier: GPL-2.0 +Valid-License-Identifier: GPL-2.0-or-later +Valid-License-Identifier: GPL-2.0+ +SPDX-URL: https://spdx.org/licenses/GPL-2.0.html +Usage-Guide: + To use this license in source code, put one of the following SPDX + tag/value pairs into a comment according to the placement + guidelines in the licensing rules documentation. + For 'GNU General Public License (GPL) version 2 only' use: + SPDX-License-Identifier: GPL-2.0-only + For 'GNU General Public License (GPL) version 2 or any later version' use: + SPDX-License-Identifier: GPL-2.0-or-later +License-Text: + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/LICENSES/ISC b/LICENSES/ISC new file mode 100644 index 0000000000..8953c31420 --- /dev/null +++ b/LICENSES/ISC @@ -0,0 +1,24 @@ +Valid-License-Identifier: ISC +SPDX-URL: https://spdx.org/licenses/ISC.html +Usage-Guide: + To use the ISC License put the following SPDX tag/value pair into a + comment according to the placement guidelines in the licensing rules + documentation: + SPDX-License-Identifier: ISC +License-Text: + +ISC License + +Copyright (c) + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/LICENSES/Linux-syscall-note b/LICENSES/Linux-syscall-note new file mode 100644 index 0000000000..eb170681ba --- /dev/null +++ b/LICENSES/Linux-syscall-note @@ -0,0 +1,25 @@ +SPDX-Exception-Identifier: Linux-syscall-note +SPDX-URL: https://spdx.org/licenses/Linux-syscall-note.html +SPDX-Licenses: GPL-2.0-only, GPL-2.0, GPL-2.0-or-later, GPL-2.0+, GPL-1.0-or-later, GPL-1.0+, LGPL-2.0, LGPL-2.0+, LGPL-2.1, LGPL-2.1+ +Usage-Guide: + This exception is used together with one of the above SPDX-Licenses + to mark user space API (uapi) header files so they can be included + into non GPL compliant user space application code. + To use this exception add it with the keyword WITH to one of the + identifiers in the SPDX-Licenses tag: + SPDX-License-Identifier: WITH Linux-syscall-note +License-Text: + + NOTE! This copyright does *not* cover user programs that use kernel + services by normal system calls - this is merely considered normal use + of the kernel, and does *not* fall under the heading of "derived work". + Also note that the GPL below is copyrighted by the Free Software + Foundation, but the instance of code that it refers to (the Linux + kernel) is copyrighted by me and others who actually wrote it. + + Also note that the only valid version of the GPL as far as the kernel + is concerned is _this_ particular version of the license (ie v2, not + v2.2 or v3.x or whatever), unless explicitly otherwise stated. + + Linus Torvalds + diff --git a/LICENSES/MIT b/LICENSES/MIT new file mode 100644 index 0000000000..f33a68ceb3 --- /dev/null +++ b/LICENSES/MIT @@ -0,0 +1,30 @@ +Valid-License-Identifier: MIT +SPDX-URL: https://spdx.org/licenses/MIT.html +Usage-Guide: + To use the MIT License put the following SPDX tag/value pair into a + comment according to the placement guidelines in the licensing rules + documentation: + SPDX-License-Identifier: MIT +License-Text: + +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..9d980ec95a --- /dev/null +++ b/Makefile @@ -0,0 +1,138 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2007 OpenWrt.org + +TOPDIR:=${CURDIR} +LC_ALL:=C +LANG:=C +TZ:=UTC +export TOPDIR LC_ALL LANG TZ + +empty:= +space:= $(empty) $(empty) +$(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the libreCMC directory must not include any spaces)) + +world: + +DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep '/usr' | head -n 1) +export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH) + +ifneq ($(LIBRECMC_BUILD),1) + _SINGLE=export MAKEFLAGS=$(space); + + override LIBRECMC_BUILD=1 + export LIBRECMC_BUILD + GREP_OPTIONS= + export GREP_OPTIONS + CDPATH= + export CDPATH + include $(TOPDIR)/include/debug.mk + include $(TOPDIR)/include/depends.mk + include $(TOPDIR)/include/toplevel.mk +else + include rules.mk + include $(INCLUDE_DIR)/depends.mk + include $(INCLUDE_DIR)/subdir.mk + include target/Makefile + include package/Makefile + include tools/Makefile + include toolchain/Makefile + +$(toolchain/stamp-compile): $(tools/stamp-compile) $(if $(CONFIG_BUILDBOT),toolchain_rebuild_check) +$(target/stamp-compile): $(toolchain/stamp-compile) $(tools/stamp-compile) $(BUILD_DIR)/.prepared +$(package/stamp-compile): $(target/stamp-compile) $(package/stamp-cleanup) +$(package/stamp-install): $(package/stamp-compile) +$(target/stamp-install): $(package/stamp-compile) $(package/stamp-install) +check: $(tools/stamp-check) $(toolchain/stamp-check) $(package/stamp-check) + +printdb: + @true + +prepare: $(target/stamp-compile) + +_clean: FORCE + rm -rf $(BUILD_DIR) $(STAGING_DIR) $(BIN_DIR) $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES) $(TOPDIR)/staging_dir/packages + +clean: _clean + rm -rf $(BUILD_LOG_DIR) + +targetclean: _clean + rm -rf $(TOOLCHAIN_DIR) $(BUILD_DIR_BASE)/hostpkg $(BUILD_DIR_TOOLCHAIN) + +dirclean: targetclean clean + rm -rf $(STAGING_DIR_HOST) $(STAGING_DIR_HOSTPKG) $(BUILD_DIR_BASE)/host + rm -rf $(TMP_DIR) + $(MAKE) -C $(TOPDIR)/scripts/config clean + +toolchain_rebuild_check: + $(SCRIPT_DIR)/check-toolchain-clean.sh + +cacheclean: +ifneq ($(CONFIG_CCACHE),) + $(STAGING_DIR_HOST)/bin/ccache -C +endif + +ifndef DUMP_TARGET_DB +$(BUILD_DIR)/.prepared: Makefile + @mkdir -p $$(dirname $@) + @touch $@ + +tmp/.prereq_packages: .config + unset ERROR; \ + for package in $(sort $(prereq-y) $(prereq-m)); do \ + $(_SINGLE)$(NO_TRACE_MAKE) -s -r -C package/$$package prereq || ERROR=1; \ + done; \ + if [ -n "$$ERROR" ]; then \ + echo "Package prerequisite check failed."; \ + false; \ + fi + touch $@ +endif + +# check prerequisites before starting to build +prereq: $(target/stamp-prereq) tmp/.prereq_packages + @if [ ! -f "$(INCLUDE_DIR)/site/$(ARCH)" ]; then \ + echo 'ERROR: Missing site config for architecture "$(ARCH)" !'; \ + echo ' The missing file will cause configure scripts to fail during compilation.'; \ + echo ' Please provide a "$(INCLUDE_DIR)/site/$(ARCH)" file and restart the build.'; \ + exit 1; \ + fi + +$(BIN_DIR)/profiles.json: FORCE + $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \ + WORK_DIR=$(BUILD_DIR)/json_info_files \ + $(SCRIPT_DIR)/json_overview_image_info.py $@ \ + ) + +json_overview_image_info: $(BIN_DIR)/profiles.json + +checksum: FORCE + $(call sha256sums,$(BIN_DIR),$(CONFIG_BUILDBOT)) + +buildversion: FORCE + $(SCRIPT_DIR)/getver.sh > $(BIN_DIR)/version.buildinfo + +feedsversion: FORCE + $(SCRIPT_DIR)/feeds list -fs > $(BIN_DIR)/feeds.buildinfo + +diffconfig: FORCE + mkdir -p $(BIN_DIR) + $(SCRIPT_DIR)/diffconfig.sh > $(BIN_DIR)/config.buildinfo + +buildinfo: FORCE + $(_SINGLE)$(SUBMAKE) -r diffconfig buildversion feedsversion + +prepare: .config $(tools/stamp-compile) $(toolchain/stamp-compile) + $(_SINGLE)$(SUBMAKE) -r buildinfo + +world: prepare $(target/stamp-compile) $(package/stamp-compile) $(package/stamp-install) $(target/stamp-install) FORCE + $(_SINGLE)$(SUBMAKE) -r package/index + $(_SINGLE)$(SUBMAKE) -r json_overview_image_info + $(_SINGLE)$(SUBMAKE) -r checksum +ifneq ($(CONFIG_CCACHE),) + $(STAGING_DIR_HOST)/bin/ccache -s +endif + +.PHONY: clean dirclean prereq prepare world package/symlinks package/symlinks-install package/symlinks-clean + +endif diff --git a/config/Config-build.in b/config/Config-build.in new file mode 100644 index 0000000000..7db4aa1f05 --- /dev/null +++ b/config/Config-build.in @@ -0,0 +1,390 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2013 OpenWrt.org +# Copyright (C) 2016 LEDE Project + +config EXPERIMENTAL + bool "Enable experimental features by default" + default n + help + Set this option to build with latest bleeding edge features + which may or may not work as expected. + If you would like to help the development of libreCMC, you are + encouraged to set this option and provide feedback (both + positive and negative). But do so only if you know how to + recover your device in case of flashing potentially non-working + firmware. + + If you plan to use this build in production, say NO! + +menu "Global build settings" + + config JSON_OVERVIEW_IMAGE_INFO + bool "Create JSON info file overview per target" + default y + help + Create a JSON info file called profiles.json in the target + directory containing machine readable list of built profiles + and resulting images. + + config ALL_NONSHARED + bool "Select all target specific packages by default" + select ALL_KMODS + default BUILDBOT + + config ALL_KMODS + bool "Select all kernel module packages by default" + + config ALL + bool "Select all userspace packages by default" + select ALL_KMODS + select ALL_NONSHARED + + config BUILDBOT + bool "Set build defaults for automatic builds (e.g. via buildbot)" + default n + help + This option changes several defaults to be more suitable for + automatic builds. This includes the following changes: + - Deleting build directories after compiling (to save space) + - Enabling per-device rootfs support + ... + + config SIGNED_PACKAGES + bool "Cryptographically signed package lists" + default y + + config SIGNATURE_CHECK + bool "Enable signature checking in opkg" + default SIGNED_PACKAGES + + config DOWNLOAD_CHECK_CERTIFICATE + bool "Enable TLS certificate verification during package download" + default y + + comment "General build options" + + config TESTING_KERNEL + bool "Use the testing kernel version" + depends on HAS_TESTING_KERNEL + default EXPERIMENTAL + help + If the target supports a newer kernel version than the default, + you can use this config option to enable it + + + config DISPLAY_SUPPORT + bool "Show packages that require graphics support (local or remote)" + default n + + config BUILD_PATENTED + default n + bool "Compile with support for patented functionality" + help + When this option is disabled, software which provides patented functionality + will not be built. In case software provides optional support for patented + functionality, this optional support will get disabled for this package. + + config BUILD_NLS + default n + bool "Compile with full language support" + help + When this option is enabled, packages are built with the full versions of + iconv and GNU gettext instead of the default libreCMC stubs. If uClibc is + used, it is also built with locale support. + + config SHADOW_PASSWORDS + bool + default y + + config CLEAN_IPKG + bool + prompt "Remove ipkg/opkg status data files in final images" + default n + help + This removes all ipkg/opkg status data files from the target directory + before building the root filesystem. + + config IPK_FILES_CHECKSUMS + bool + prompt "Record files checksums in package metadata" + default n + help + This makes file checksums part of package metadata. It increases size + but provides you with pkg_check command to check for flash corruptions. + + config INCLUDE_CONFIG + bool "Include build configuration in firmware" if DEVEL + default n + help + If enabled, buildinfo files will be stored in /etc/build.* of firmware. + + config REPRODUCIBLE_DEBUG_INFO + bool "Make debug information reproducible" + default BUILDBOT + help + This strips the local build path out of debug information. This has the + advantage of making it reproducible, but the disadvantage of making local + debugging using ./scripts/remote-gdb harder, since the debug data will + no longer point to the full path on the build host. + + config COLLECT_KERNEL_DEBUG + bool + prompt "Collect kernel debug information" + select KERNEL_DEBUG_INFO + default BUILDBOT + help + This collects debugging symbols from the kernel and all compiled modules. + Useful for release builds, so that kernel issues can be debugged offline + later. + + menu "Kernel build options" + + source "config/Config-kernel.in" + + endmenu + + comment "Package build options" + + config DEBUG + bool + prompt "Compile packages with debugging info" + default n + help + Adds -g3 to the CFLAGS. + + config IPV6 + bool + prompt "Enable IPv6 support in packages" + default y + help + Enables IPv6 support in kernel (builtin) and packages. + + comment "Stripping options" + + choice + prompt "Binary stripping method" + default USE_STRIP if USE_GLIBC + default USE_SSTRIP + help + Select the binary stripping method you wish to use. + + config NO_STRIP + bool "none" + help + This will install unstripped binaries (useful for native + compiling/debugging). + + config USE_STRIP + bool "strip" + help + This will install binaries stripped using strip from binutils. + + + config USE_SSTRIP + bool "sstrip" + depends on !USE_GLIBC + help + This will install binaries stripped using sstrip. + endchoice + + config STRIP_ARGS + string + prompt "Strip arguments" + depends on USE_STRIP + default "--strip-unneeded --remove-section=.comment --remove-section=.note" if DEBUG + default "--strip-all" + help + Specifies arguments passed to the strip command when stripping binaries. + + config SSTRIP_ARGS + string + prompt "Sstrip arguments" + depends on USE_SSTRIP + default "-z" + help + Specifies arguments passed to the sstrip command when stripping binaries. + + config STRIP_KERNEL_EXPORTS + bool "Strip unnecessary exports from the kernel image" + help + Reduces kernel size by stripping unused kernel exports from the kernel + image. Note that this might make the kernel incompatible with any kernel + modules that were not selected at the time the kernel image was created. + + config USE_MKLIBS + bool "Strip unnecessary functions from libraries" + help + Reduces libraries to only those functions that are necessary for using all + selected packages (including those selected as ). Note that this will + make the system libraries incompatible with most of the packages that are + not selected during the build process. + + comment "Hardening build options" + + config PKG_CHECK_FORMAT_SECURITY + bool + prompt "Enable gcc format-security" + default y + help + Add -Wformat -Werror=format-security to the CFLAGS. You can disable + this per package by adding PKG_CHECK_FORMAT_SECURITY:=0 in the package + Makefile. + + choice + prompt "User space ASLR PIE compilation" + default PKG_ASLR_PIE_NONE if ((SMALL_FLASH || LOW_MEMORY_FOOTPRINT) && !SDK) + default PKG_ASLR_PIE_REGULAR + help + Add -fPIC to CFLAGS and -specs=hardened-build-ld to LDFLAGS. + This enables package build as Position Independent Executables (PIE) + to protect against "return-to-text" attacks. This belongs to the + feature of Address Space Layout Randomisation (ASLR), which is + implemented by the kernel and the ELF loader by randomising the + location of memory allocations. This makes memory addresses harder + to predict when an attacker is attempting a memory-corruption exploit. + You can disable this per package by adding PKG_ASLR_PIE:=0 in the package + Makefile. + Be ware that ASLR increases the binary size. + config PKG_ASLR_PIE_NONE + bool "None" + help + PIE is deactivated for all applications + config PKG_ASLR_PIE_REGULAR + bool "Regular" + help + PIE is activated for some binaries, mostly network exposed applications + config PKG_ASLR_PIE_ALL + bool "All" + select BUSYBOX_DEFAULT_PIE + help + PIE is activated for all applications + endchoice + + choice + prompt "User space Stack-Smashing Protection" + default PKG_CC_STACKPROTECTOR_REGULAR + help + Enable GCC Stack Smashing Protection (SSP) for userspace applications + config PKG_CC_STACKPROTECTOR_NONE + bool "None" + config PKG_CC_STACKPROTECTOR_REGULAR + bool "Regular" + config PKG_CC_STACKPROTECTOR_STRONG + bool "Strong" + endchoice + + choice + prompt "Kernel space Stack-Smashing Protection" + default KERNEL_CC_STACKPROTECTOR_REGULAR + help + Enable GCC Stack-Smashing Protection (SSP) for the kernel + config KERNEL_CC_STACKPROTECTOR_NONE + bool "None" + config KERNEL_CC_STACKPROTECTOR_REGULAR + bool "Regular" + config KERNEL_CC_STACKPROTECTOR_STRONG + bool "Strong" + endchoice + + config KERNEL_STACKPROTECTOR + bool + default KERNEL_CC_STACKPROTECTOR_REGULAR || KERNEL_CC_STACKPROTECTOR_STRONG + + config KERNEL_STACKPROTECTOR_STRONG + bool + default KERNEL_CC_STACKPROTECTOR_STRONG + + choice + prompt "Enable buffer-overflows detection (FORTIFY_SOURCE)" + default PKG_FORTIFY_SOURCE_1 + help + Enable the _FORTIFY_SOURCE macro which introduces additional + checks to detect buffer-overflows in the following standard library + functions: memcpy, mempcpy, memmove, memset, strcpy, stpcpy, + strncpy, strcat, strncat, sprintf, vsprintf, snprintf, vsnprintf, + gets. "Conservative" (_FORTIFY_SOURCE set to 1) only introduces + checks that shouldn't change the behavior of conforming programs, + while "aggressive" (_FORTIFY_SOURCES set to 2) some more checking is + added, but some conforming programs might fail. + config PKG_FORTIFY_SOURCE_NONE + bool "None" + config PKG_FORTIFY_SOURCE_1 + bool "Conservative" + config PKG_FORTIFY_SOURCE_2 + bool "Aggressive" + endchoice + + choice + prompt "Enable RELRO protection" + default PKG_RELRO_FULL + help + Enable a link-time protection known as RELRO (Relocation Read Only) + which helps to protect from certain type of exploitation techniques + altering the content of some ELF sections. "Partial" RELRO makes the + .dynamic section not writeable after initialization, introducing + almost no performance penalty, while "full" RELRO also marks the GOT + as read-only at the cost of initializing all of it at startup. + config PKG_RELRO_NONE + bool "None" + config PKG_RELRO_PARTIAL + bool "Partial" + config PKG_RELRO_FULL + bool "Full" + endchoice + + config TARGET_ROOTFS_SECURITY_LABELS + bool + select KERNEL_SQUASHFS_XATTR + select KERNEL_EXT4_FS_SECURITY + select KERNEL_F2FS_FS_SECURITY + select KERNEL_UBIFS_FS_SECURITY + select KERNEL_JFFS2_FS_SECURITY + + config SELINUX + bool "Enable SELinux" + select KERNEL_SECURITY_SELINUX + select TARGET_ROOTFS_SECURITY_LABELS + select PACKAGE_procd-selinux + select PACKAGE_busybox-selinux + help + This option enables SELinux kernel features, applies security labels + in squashfs rootfs and selects the selinux-variants of busybox and procd. + + Selecting this option results in about 0.5MiB of additional flash space + usage accounting for increased kernel and rootfs size. + + choice + prompt "default SELinux type" + depends on TARGET_ROOTFS_SECURITY_LABELS + default SELINUXTYPE_dssp + help + Select SELinux policy to be installed and used for applying rootfs labels. + + config SELINUXTYPE_targeted + bool "targeted" + select PACKAGE_refpolicy + help + SELinux Reference Policy (refpolicy) + + config SELINUXTYPE_dssp + bool "dssp" + select PACKAGE_selinux-policy + help + Defensec SELinux Security Policy -- libreCMC edition + + endchoice + + config SECCOMP + bool "Enable SECCOMP" + select KERNEL_SECCOMP + select PACKAGE_procd-seccomp + depends on (aarch64 || arm || armeb || mips || mipsel || mips64 || mips64el || i386 || powerpc || x86_64) + depends on !TARGET_uml + default y + help + This option enables seccomp kernel features to safely + execute untrusted bytecode and selects the seccomp-variants + of procd + +endmenu diff --git a/config/Config-devel.in b/config/Config-devel.in new file mode 100644 index 0000000000..738048a708 --- /dev/null +++ b/config/Config-devel.in @@ -0,0 +1,143 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2013 OpenWrt.org + +menuconfig DEVEL + bool "Advanced configuration options (for developers)" + default n + + config BROKEN + bool "Show broken platforms / packages / devices" if DEVEL + default n + + config BINARY_FOLDER + string "Binary folder" if DEVEL + default "" + help + Store built firmware images and filesystem images in this directory. + If not set, uses './bin/$(BOARD)' + + config DOWNLOAD_FOLDER + string "Download folder" if DEVEL + default "" + help + Store downloaded source bundles in this directory. + If not set then defaults to './dl', which is removed by operations such as + 'git clean -xdf' or 'make distclean'. + This option is useful if you have a low bandwidth Internet connection, and by + setting a path outside the libreCMC tree downloads will be saved. + + config LOCALMIRROR + string "Local mirror for source packages" if DEVEL + default "" + + config AUTOREBUILD + bool "Automatic rebuild of packages" if DEVEL + default y + help + Automatically rebuild packages when their files change. + + config AUTOREMOVE + bool "Automatic removal of build directories" if DEVEL + default n + help + Automatically delete build directories after make target completed. + This allows you to symlink build_dir into a scratch location, e.g. a ramdisk, + which does not have enough space to keep a complete build_dir. + + config BUILD_SUFFIX + string "Build suffix to append to the target BUILD_DIR variable" if DEVEL + default "" + help + Build suffix to append to the BUILD_DIR variable, i.e: './build_dir/{target-build-dir}_$(BUILD_SUFFIX)'. + This allows you to switch to a different .config whilst retaining all the build + objects generated by the first .config + + config TARGET_ROOTFS_DIR + string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL + default "" + help + Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with + custom path. Use this option to re-define the location of the target + root filesystem directory. + + config CCACHE + bool "Use ccache" if DEVEL + default n + help + Compiler cache; see https://ccache.samba.org/ + + config CCACHE_DIR + string "Set ccache directory" if CCACHE + default "" + help + Store ccache in this directory. + If not set, uses './.ccache' + + config KERNEL_CFLAGS + string "Kernel extra CFLAGS" if DEVEL + default "-falign-functions=32" if TARGET_bcm53xx + default "" + + config EXTERNAL_KERNEL_TREE + string "Use external kernel tree" if DEVEL + default "" + + config KERNEL_GIT_CLONE_URI + string "Enter git repository to clone" if DEVEL + default "" + help + Enter the full git repository path i.e.: + git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git + This will create a git clone of the kernel in your build directory. + + config KERNEL_GIT_LOCAL_REPOSITORY + string "Enter path to local reference repository" if DEVEL + depends on (KERNEL_GIT_CLONE_URI != "") + default "" + help + Enter a full pathname to a local reference git repository. + In this instance, the --reference option of git clone will + be used thus creating a quick local clone of your repo. + + config KERNEL_GIT_REF + string "Enter git ref at which to checkout" if DEVEL + depends on (KERNEL_GIT_CLONE_URI != "") + default "" + help + Enter the git ref at which to checkout the git repository + after it is cloned, and before making it a tar-ball. + It can be a git hash or a branch name. + If unused, the clone's repository HEAD will be checked-out. + + config KERNEL_GIT_MIRROR_HASH + string "Enter hash of Git kernel tree source checkout tarball" if DEVEL + depends on (KERNEL_GIT_CLONE_URI != "") + default "" + + config BUILD_LOG + bool "Enable log files during build process" if DEVEL + help + If enabled, log files will be written to the ./log directory. + + config BUILD_LOG_DIR + string "Log folder" if DEVEL + default "" + help + Store build logs in this directory. + If not set, uses './logs' + + config SRC_TREE_OVERRIDE + bool "Enable package source tree override" if DEVEL + help + If enabled, you can force a package to use a git tree as source + code instead of the normal tarball. Create a symlink 'git-src' + in the package directory, pointing to the .git tree that you want + to pull the source code from. + + config EXTRA_OPTIMIZATION + string "Additional compiler options" if DEVEL + default "-fno-caller-saves -fno-plt" if !CONFIG_EXTERNAL_TOOLCHAIN && !arc + default "-fno-caller-saves" + help + Extra target-independent optimizations to use when building for the target. diff --git a/config/Config-images.in b/config/Config-images.in new file mode 100644 index 0000000000..62b448c686 --- /dev/null +++ b/config/Config-images.in @@ -0,0 +1,320 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2013 OpenWrt.org + +menu "Target Images" + + menuconfig TARGET_ROOTFS_INITRAMFS + bool "ramdisk" + default y if USES_INITRAMFS + help + Embed the root filesystem into the kernel (initramfs). + + choice + prompt "Compression" + default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_apm821xx + default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ath79_mikrotik + default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_lantiq + default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_mpc85xx + default TARGET_INITRAMFS_COMPRESSION_LZMA if TARGET_ramips + default TARGET_INITRAMFS_COMPRESSION_XZ if USES_SEPARATE_INITRAMFS + default TARGET_INITRAMFS_COMPRESSION_NONE + depends on TARGET_ROOTFS_INITRAMFS + help + Select ramdisk compression. + + config TARGET_INITRAMFS_COMPRESSION_NONE + bool "none" + + config TARGET_INITRAMFS_COMPRESSION_GZIP + bool "gzip" + + config TARGET_INITRAMFS_COMPRESSION_BZIP2 + bool "bzip2" + + config TARGET_INITRAMFS_COMPRESSION_LZMA + bool "lzma" + + config TARGET_INITRAMFS_COMPRESSION_LZO + depends on !TARGET_ROOTFS_INITRAMFS_SEPARATE + bool "lzo" + + config TARGET_INITRAMFS_COMPRESSION_LZ4 + depends on !TARGET_ROOTFS_INITRAMFS_SEPARATE + bool "lz4" + + config TARGET_INITRAMFS_COMPRESSION_XZ + bool "xz" + + config TARGET_INITRAMFS_COMPRESSION_ZSTD + depends on !LINUX_5_4 && !LINUX_4_19 + bool "zstd" + endchoice + + config EXTERNAL_CPIO + string + prompt "Use external cpio" if TARGET_ROOTFS_INITRAMFS + default "" + help + Kernel uses specified external cpio as INITRAMFS_SOURCE. + + config TARGET_INITRAMFS_FORCE + bool "Force" + depends on TARGET_ROOTFS_INITRAMFS + default n + help + Ignore the initramfs passed by the bootloader. + + config TARGET_ROOTFS_INITRAMFS_SEPARATE + bool "separate ramdisk" + depends on USES_SEPARATE_INITRAMFS && TARGET_ROOTFS_INITRAMFS && !TARGET_INITRAMFS_FORCE + default y if USES_SEPARATE_INITRAMFS + help + Generate separate initrd.cpio instead of embedding it. + This is useful for generating images with a dedicated + ramdisk e.g. in U-Boot's uImage and uImage.FIT formats. + + comment "Root filesystem archives" + + config TARGET_ROOTFS_CPIOGZ + bool "cpio.gz" + default y if USES_CPIOGZ + help + Build a compressed cpio archive of the root filesystem. + + config TARGET_ROOTFS_TARGZ + bool "tar.gz" + default y if USES_TARGZ + help + Build a compressed tar archive of the root filesystem. + + comment "Root filesystem images" + + menuconfig TARGET_ROOTFS_EXT4FS + bool "ext4" + default y if USES_EXT4 + help + Build an ext4 root filesystem. + + config TARGET_EXT4_RESERVED_PCT + int "Percentage of reserved blocks in root filesystem" + depends on TARGET_ROOTFS_EXT4FS + default 0 + help + Select the percentage of reserved blocks in the root filesystem. + + choice + prompt "Root filesystem block size" + default TARGET_EXT4_BLOCKSIZE_4K + depends on TARGET_ROOTFS_EXT4FS + help + Select the block size of the root filesystem. + + config TARGET_EXT4_BLOCKSIZE_4K + bool "4k" + + config TARGET_EXT4_BLOCKSIZE_2K + bool "2k" + + config TARGET_EXT4_BLOCKSIZE_1K + bool "1k" + endchoice + + config TARGET_EXT4_BLOCKSIZE + int + default 4096 if TARGET_EXT4_BLOCKSIZE_4K + default 2048 if TARGET_EXT4_BLOCKSIZE_2K + default 1024 if TARGET_EXT4_BLOCKSIZE_1K + depends on TARGET_ROOTFS_EXT4FS + + config TARGET_EXT4_JOURNAL + bool "Create a journaling filesystem" + depends on TARGET_ROOTFS_EXT4FS + default n + help + Create an ext4 filesystem with a journal. + + config TARGET_ROOTFS_JFFS2 + bool "jffs2" + depends on USES_JFFS2 + help + Build a JFFS2 root filesystem. + + config TARGET_ROOTFS_JFFS2_NAND + bool "jffs2 for NAND" + default y if USES_JFFS2_NAND + depends on USES_JFFS2_NAND + help + Build a JFFS2 root filesystem for NAND flash. + + menuconfig TARGET_ROOTFS_SQUASHFS + bool "squashfs" + default y if USES_SQUASHFS + help + Build a squashfs-lzma root filesystem. + + config TARGET_SQUASHFS_BLOCK_SIZE + int "Block size (in KiB)" + depends on TARGET_ROOTFS_SQUASHFS + default 64 if LOW_MEMORY_FOOTPRINT + default 1024 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT) + default 256 + + menuconfig TARGET_ROOTFS_UBIFS + bool "ubifs" + default y if USES_UBIFS + depends on USES_UBIFS + help + Build a UBIFS root filesystem. + + choice + prompt "compression" + default TARGET_UBIFS_COMPRESSION_ZLIB + depends on TARGET_ROOTFS_UBIFS + help + Select compression type + + config TARGET_UBIFS_COMPRESSION_NONE + bool "none" + + config TARGET_UBIFS_COMPRESSION_LZO + bool "lzo" + + config TARGET_UBIFS_COMPRESSION_ZLIB + bool "zlib" + endchoice + + config TARGET_UBIFS_FREE_SPACE_FIXUP + bool "free space fixup" if TARGET_ROOTFS_UBIFS + default y + help + The filesystem free space has to be fixed up on first mount. + + config TARGET_UBIFS_JOURNAL_SIZE + string + prompt "journal size" if TARGET_ROOTFS_UBIFS + default "" + + config GRUB_IMAGES + bool "Build GRUB images (Linux x86 or x86_64 host only)" + depends on TARGET_x86 + depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS + select PACKAGE_grub2 + select PACKAGE_grub2-bios-setup + default y + + config GRUB_EFI_IMAGES + bool "Build GRUB EFI images (Linux x86 or x86_64 host only)" + depends on TARGET_x86 + depends on TARGET_ROOTFS_EXT4FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS + select PACKAGE_grub2 + select PACKAGE_grub2-efi + select PACKAGE_grub2-bios-setup + select PACKAGE_kmod-fs-vfat + default y + + config GRUB_CONSOLE + bool "Use Console Terminal (in addition to Serial)" + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + default y + + config GRUB_SERIAL + string "Serial port device" + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + default "ttyS0" + + config GRUB_BAUDRATE + int "Serial port baud rate" + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + default 38400 if TARGET_x86_generic + default 115200 + + config GRUB_FLOWCONTROL + bool "Use RTE/CTS on serial console" + depends on GRUB_SERIAL != "" + default n + + config GRUB_BOOTOPTS + string "Extra kernel boot options" + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + help + If you don't know, just leave it blank. + + config GRUB_TIMEOUT + string "Seconds to wait before booting the default entry" + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + default "5" + help + If you don't know, 5 seconds is a reasonable default. + + config GRUB_TITLE + string "Title for the menu entry in GRUB" + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + default "libreCMC" + help + This is the title of the GRUB menu entry. + If unspecified, it defaults to libreCMC. + + config ISO_IMAGES + bool "Build LiveCD image (ISO)" + depends on TARGET_x86 + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + + config VDI_IMAGES + bool "Build VirtualBox image files (VDI)" + depends on TARGET_x86 + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + select PACKAGE_kmod-e1000 + + config VMDK_IMAGES + bool "Build VMware image files (VMDK)" + depends on TARGET_x86 + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + select PACKAGE_kmod-e1000 + + config VHDX_IMAGES + bool "Build Hyper-V image files (VHDX)" + depends on TARGET_x86 + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + select PACKAGE_kmod-e1000 + + config TARGET_IMAGES_GZIP + bool "GZip images" + depends on TARGET_ROOTFS_EXT4FS || TARGET_x86 || TARGET_armvirt || TARGET_malta + default y + + comment "Image Options" + + source "target/linux/*/image/Config.in" + + config TARGET_KERNEL_PARTSIZE + int "Kernel partition size (in MiB)" + depends on USES_BOOT_PART + default 8 if TARGET_apm821xx_sata + default 64 if TARGET_bcm27xx + default 16 + + config TARGET_ROOTFS_PARTSIZE + int "Root filesystem partition size (in MiB)" + depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS + default 104 + help + Select the root filesystem partition size. + + config TARGET_ROOTFS_PARTNAME + string "Root partition on target device" + depends on GRUB_IMAGES || GRUB_EFI_IMAGES + help + Override the root partition on the final device. If left empty, + it will be mounted by PARTUUID which makes the kernel find the + appropriate disk automatically. + + config TARGET_ROOTFS_PERSIST_VAR + bool "Make /var persistent" + default n + help + Do not symlink /var to /tmp, so that its content will persist + across reboots. When enabled, /var/run will still be linked + to /tmp/run. + +endmenu diff --git a/config/Config-kernel.in b/config/Config-kernel.in new file mode 100644 index 0000000000..f44b3d0a29 --- /dev/null +++ b/config/Config-kernel.in @@ -0,0 +1,1280 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2014 OpenWrt.org + +config KERNEL_BUILD_USER + string "Custom Kernel Build User Name" + default "builder" if BUILDBOT + default "" + help + Sets the Kernel build user string, which for example will be returned + by 'uname -a' on running systems. + If not set, uses system user at build time. + +config KERNEL_BUILD_DOMAIN + string "Custom Kernel Build Domain Name" + default "buildhost" if BUILDBOT + default "" + help + Sets the Kernel build domain string, which for example will be + returned by 'uname -a' on running systems. + If not set, uses system hostname at build time. + +config KERNEL_PRINTK + bool "Enable support for printk" + default y + +config KERNEL_SWAP + bool "Support for paging of anonymous memory (swap)" + default y if !SMALL_FLASH + +config KERNEL_PROC_STRIPPED + bool "Strip non-essential /proc functionality to reduce code size" + default y if SMALL_FLASH + +config KERNEL_DEBUG_FS + bool "Compile the kernel with debug filesystem enabled" + default y + help + debugfs is a virtual file system that kernel developers use to put + debugging files into. Enable this option to be able to read and + write to these files. Many common debugging facilities, such as + ftrace, require the existence of debugfs. + +config KERNEL_MIPS_FP_SUPPORT + bool + default y if TARGET_pistachio + +config KERNEL_ARM_PMU + bool + default n + depends on (arm || aarch64) + +config KERNEL_X86_VSYSCALL_EMULATION + bool "Enable vsyscall emulation" + default n + depends on x86_64 + help + This enables emulation of the legacy vsyscall page. Disabling + it is roughly equivalent to booting with vsyscall=none, except + that it will also disable the helpful warning if a program + tries to use a vsyscall. With this option set to N, offending + programs will just segfault, citing addresses of the form + 0xffffffffff600?00. + + This option is required by many programs built before 2013, and + care should be used even with newer programs if set to N. + + Disabling this option saves about 7K of kernel size and + possibly 4K of additional runtime pagetable memory. + +config KERNEL_PERF_EVENTS + bool "Compile the kernel with performance events and counters" + default n + select KERNEL_ARM_PMU if (arm || aarch64) + +config KERNEL_PROFILING + bool "Compile the kernel with profiling enabled" + default n + select KERNEL_PERF_EVENTS + help + Enable the extended profiling support mechanisms used by profilers such + as OProfile. + +config KERNEL_UBSAN + bool "Compile the kernel with undefined behaviour sanity checker" + help + This option enables undefined behaviour sanity checker + Compile-time instrumentation is used to detect various undefined + behaviours in runtime. Various types of checks may be enabled + via boot parameter ubsan_handle + (see: Documentation/dev-tools/ubsan.rst). + +config KERNEL_UBSAN_SANITIZE_ALL + bool "Enable instrumentation for the entire kernel" + depends on KERNEL_UBSAN + default y + help + This option activates instrumentation for the entire kernel. + If you don't enable this option, you have to explicitly specify + UBSAN_SANITIZE := y for the files/directories you want to check for UB. + Enabling this option will get kernel image size increased + significantly. + +config KERNEL_UBSAN_ALIGNMENT + bool "Enable checking of pointers alignment" + depends on KERNEL_UBSAN + help + This option enables detection of unaligned memory accesses. + Enabling this option on architectures that support unaligned + accesses may produce a lot of false positives. + +config KERNEL_UBSAN_BOUNDS + bool "Perform array index bounds checking" + depends on KERNEL_UBSAN + help + This option enables detection of directly indexed out of bounds array + accesses, where the array size is known at compile time. Note that + this does not protect array overflows via bad calls to the + {str,mem}*cpy() family of functions (that is addressed by + FORTIFY_SOURCE). + +config KERNEL_UBSAN_NULL + bool "Enable checking of null pointers" + depends on KERNEL_UBSAN + help + This option enables detection of memory accesses via a + null pointer. + +config KERNEL_UBSAN_TRAP + bool "On Sanitizer warnings, abort the running kernel code" + depends on KERNEL_UBSAN + help + Building kernels with Sanitizer features enabled tends to grow the + kernel size by around 5%, due to adding all the debugging text on + failure paths. To avoid this, Sanitizer instrumentation can just + issue a trap. This reduces the kernel size overhead but turns all + warnings (including potentially harmless conditions) into full + exceptions that abort the running kernel code (regardless of context, + locks held, etc), which may destabilize the system. For some system + builders this is an acceptable trade-off. + +config KERNEL_KASAN + bool "Compile the kernel with KASan: runtime memory debugger" + select KERNEL_SLUB_DEBUG + depends on (x86_64 || aarch64) + help + Enables kernel address sanitizer - runtime memory debugger, + designed to find out-of-bounds accesses and use-after-free bugs. + This is strictly a debugging feature and it requires a gcc version + of 4.9.2 or later. Detection of out of bounds accesses to stack or + global variables requires gcc 5.0 or later. + This feature consumes about 1/8 of available memory and brings about + ~x3 performance slowdown. + For better error detection enable CONFIG_STACKTRACE. + Currently CONFIG_KASAN doesn't work with CONFIG_DEBUG_SLAB + (the resulting kernel does not boot). + +config KERNEL_KASAN_EXTRA + bool "KAsan: extra checks" + depends on KERNEL_KASAN && KERNEL_DEBUG_KERNEL + help + This enables further checks in the kernel address sanitizer, for now + it only includes the address-use-after-scope check that can lead + to excessive kernel stack usage, frame size warnings and longer + compile time. + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more + +config KERNEL_KASAN_VMALLOC + bool "Back mappings in vmalloc space with real shadow memory" + depends on KERNEL_KASAN + help + By default, the shadow region for vmalloc space is the read-only + zero page. This means that KASAN cannot detect errors involving + vmalloc space. + + Enabling this option will hook in to vmap/vmalloc and back those + mappings with real shadow memory allocated on demand. This allows + for KASAN to detect more sorts of errors (and to support vmapped + stacks), but at the cost of higher memory usage. + + This option depends on HAVE_ARCH_KASAN_VMALLOC, but we can't + depend on that in here, so it is possible that enabling this + will have no effect. + +if KERNEL_KASAN + config KERNEL_KASAN_GENERIC + def_bool y + + config KERNEL_KASAN_SW_TAGS + def_bool n +endif + +choice + prompt "Instrumentation type" + depends on KERNEL_KASAN + default KERNEL_KASAN_OUTLINE + +config KERNEL_KASAN_OUTLINE + bool "Outline instrumentation" + help + Before every memory access compiler insert function call + __asan_load*/__asan_store*. These functions performs check + of shadow memory. This is slower than inline instrumentation, + however it doesn't bloat size of kernel's .text section so + much as inline does. + +config KERNEL_KASAN_INLINE + bool "Inline instrumentation" + help + Compiler directly inserts code checking shadow memory before + memory accesses. This is faster than outline (in some workloads + it gives about x2 boost over outline instrumentation), but + make kernel's .text size much bigger. + This requires a gcc version of 5.0 or later. + +endchoice + +config KERNEL_KCOV + bool "Compile the kernel with code coverage for fuzzing" + select KERNEL_DEBUG_FS + help + KCOV exposes kernel code coverage information in a form suitable + for coverage-guided fuzzing (randomized testing). + + If RANDOMIZE_BASE is enabled, PC values will not be stable across + different machines and across reboots. If you need stable PC values, + disable RANDOMIZE_BASE. + + For more details, see Documentation/kcov.txt. + +config KERNEL_KCOV_ENABLE_COMPARISONS + bool "Enable comparison operands collection by KCOV" + depends on KERNEL_KCOV + help + KCOV also exposes operands of every comparison in the instrumented + code along with operand sizes and PCs of the comparison instructions. + These operands can be used by fuzzing engines to improve the quality + of fuzzing coverage. + +config KERNEL_KCOV_INSTRUMENT_ALL + bool "Instrument all code by default" + depends on KERNEL_KCOV + default y if KERNEL_KCOV + help + If you are doing generic system call fuzzing (like e.g. syzkaller), + then you will want to instrument the whole kernel and you should + say y here. If you are doing more targeted fuzzing (like e.g. + filesystem fuzzing with AFL) then you will want to enable coverage + for more specific subsets of files, and should say n here. + +config KERNEL_TASKSTATS + bool "Compile the kernel with task resource/io statistics and accounting" + default n + help + Enable the collection and publishing of task/io statistics and + accounting. Enable this option to enable i/o monitoring in system + monitors. + +if KERNEL_TASKSTATS + + config KERNEL_TASK_DELAY_ACCT + def_bool y + + config KERNEL_TASK_IO_ACCOUNTING + def_bool y + + config KERNEL_TASK_XACCT + def_bool y + +endif + +config KERNEL_KALLSYMS + bool "Compile the kernel with symbol table information" + default y if !SMALL_FLASH + help + This will give you more information in stack traces from kernel oopses. + +config KERNEL_FTRACE + bool "Compile the kernel with tracing support" + depends on !TARGET_uml + default n + +config KERNEL_FTRACE_SYSCALLS + bool "Trace system calls" + depends on KERNEL_FTRACE + default n + +config KERNEL_ENABLE_DEFAULT_TRACERS + bool "Trace process context switches and events" + depends on KERNEL_FTRACE + default n + +config KERNEL_FUNCTION_TRACER + bool "Function tracer" + depends on KERNEL_FTRACE + default n + +config KERNEL_FUNCTION_GRAPH_TRACER + bool "Function graph tracer" + depends on KERNEL_FUNCTION_TRACER + default n + +config KERNEL_DYNAMIC_FTRACE + bool "Enable/disable function tracing dynamically" + depends on KERNEL_FUNCTION_TRACER + default n + +config KERNEL_FUNCTION_PROFILER + bool "Function profiler" + depends on KERNEL_FUNCTION_TRACER + default n + +config KERNEL_IRQSOFF_TRACER + bool "Interrupts-off Latency Tracer" + depends on KERNEL_FTRACE + help + This option measures the time spent in irqs-off critical + sections, with microsecond accuracy. + + The default measurement method is a maximum search, which is + disabled by default and can be runtime (re-)started + via: + + echo 0 > /sys/kernel/debug/tracing/tracing_max_latency + + (Note that kernel size and overhead increase with this option + enabled. This option and the preempt-off timing option can be + used together or separately.) + +config KERNEL_PREEMPT_TRACER + bool "Preemption-off Latency Tracer" + depends on KERNEL_FTRACE + help + This option measures the time spent in preemption-off critical + sections, with microsecond accuracy. + + The default measurement method is a maximum search, which is + disabled by default and can be runtime (re-)started + via: + + echo 0 > /sys/kernel/debug/tracing/tracing_max_latency + + (Note that kernel size and overhead increase with this option + enabled. This option and the irqs-off timing option can be + used together or separately.) + +config KERNEL_HIST_TRIGGERS + bool "Histogram triggers" + depends on KERNEL_FTRACE + help + Hist triggers allow one or more arbitrary trace event fields to be + aggregated into hash tables and dumped to stdout by reading a + debugfs/tracefs file. They're useful for gathering quick and dirty + (though precise) summaries of event activity as an initial guide for + further investigation using more advanced tools. + + Inter-event tracing of quantities such as latencies is also + supported using hist triggers under this option. + +config KERNEL_DEBUG_KERNEL + bool + default n + +config KERNEL_DEBUG_INFO + bool "Compile the kernel with debug information" + default y if !SMALL_FLASH + select KERNEL_DEBUG_KERNEL + help + This will compile your kernel and modules with debug information. + +config KERNEL_DEBUG_LL_UART_NONE + bool + default n + depends on arm + +config KERNEL_DEBUG_LL + bool + default n + depends on arm + select KERNEL_DEBUG_LL_UART_NONE + help + ARM low level debugging. + +config KERNEL_DYNAMIC_DEBUG + bool "Compile the kernel with dynamic printk" + select KERNEL_DEBUG_FS + default n + help + Compiles debug level messages into the kernel, which would not + otherwise be available at runtime. These messages can then be + enabled/disabled based on various levels of scope - per source file, + function, module, format string, and line number. This mechanism + implicitly compiles in all pr_debug() and dev_dbg() calls, which + enlarges the kernel text size by about 2%. + +config KERNEL_EARLY_PRINTK + bool "Compile the kernel with early printk" + default y if TARGET_bcm53xx + default n + depends on arm + select KERNEL_DEBUG_KERNEL + select KERNEL_DEBUG_LL if arm + help + Compile the kernel with early printk support. This is only useful for + debugging purposes to send messages over the serial console in early boot. + Enable this to debug early boot problems. + +config KERNEL_KPROBES + bool "Compile the kernel with kprobes support" + default n + select KERNEL_FTRACE + select KERNEL_PERF_EVENTS + help + Compiles the kernel with KPROBES support, which allows you to trap + at almost any kernel address and execute a callback function. + register_kprobe() establishes a probepoint and specifies the + callback. Kprobes is useful for kernel debugging, non-intrusive + instrumentation and testing. + If in doubt, say "N". + +config KERNEL_KPROBE_EVENTS + bool + default y if KERNEL_KPROBES + +config KERNEL_BPF_KPROBE_OVERRIDE + bool + depends on KERNEL_KPROBES + default n + +config KERNEL_AIO + bool "Compile the kernel with asynchronous IO support" + default y if !SMALL_FLASH + +config KERNEL_IO_URING + bool "Compile the kernel with io_uring support" + default y if !SMALL_FLASH + +config KERNEL_FHANDLE + bool "Compile the kernel with support for fhandle syscalls" + default y if !SMALL_FLASH + +config KERNEL_FANOTIFY + bool "Compile the kernel with modern file notification support" + default y if !SMALL_FLASH + +config KERNEL_BLK_DEV_BSG + bool "Compile the kernel with SCSI generic v4 support for any block device" + default n + +config KERNEL_TRANSPARENT_HUGEPAGE + bool + +choice + prompt "Transparent Hugepage Support sysfs defaults" + depends on KERNEL_TRANSPARENT_HUGEPAGE + default KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS + + config KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS + bool "always" + + config KERNEL_TRANSPARENT_HUGEPAGE_MADVISE + bool "madvise" +endchoice + +config KERNEL_HUGETLBFS + bool + +config KERNEL_HUGETLB_PAGE + bool "Compile the kernel with HugeTLB support" + select KERNEL_TRANSPARENT_HUGEPAGE + select KERNEL_HUGETLBFS + default n + +config KERNEL_MAGIC_SYSRQ + bool "Compile the kernel with SysRq support" + default y + +config KERNEL_DEBUG_PINCTRL + bool "Compile the kernel with pinctrl debugging" + select KERNEL_DEBUG_KERNEL + +config KERNEL_DEBUG_GPIO + bool "Compile the kernel with gpio debugging" + select KERNEL_DEBUG_KERNEL + +config KERNEL_COREDUMP + bool + +config KERNEL_ELF_CORE + bool "Enable process core dump support" + select KERNEL_COREDUMP + default y if !SMALL_FLASH + +config KERNEL_PROVE_LOCKING + bool "Enable kernel lock checking" + select KERNEL_DEBUG_KERNEL + default n + +config KERNEL_SOFTLOCKUP_DETECTOR + bool "Compile the kernel with detect Soft Lockups" + depends on KERNEL_DEBUG_KERNEL + help + Say Y here to enable the kernel to act as a watchdog to detect + soft lockups. + + Softlockups are bugs that cause the kernel to loop in kernel + mode for more than 20 seconds, without giving other tasks a + chance to run. The current stack trace is displayed upon + detection and the system will stay locked up. + +config KERNEL_DETECT_HUNG_TASK + bool "Compile the kernel with detect Hung Tasks" + depends on KERNEL_DEBUG_KERNEL + default KERNEL_SOFTLOCKUP_DETECTOR + help + Say Y here to enable the kernel to detect "hung tasks", + which are bugs that cause the task to be stuck in + uninterruptible "D" state indefinitely. + + When a hung task is detected, the kernel will print the + current stack trace (which you should report), but the + task will stay in uninterruptible state. If lockdep is + enabled then all held locks will also be reported. This + feature has negligible overhead. + +config KERNEL_WQ_WATCHDOG + bool "Compile the kernel with detect Workqueue Stalls" + depends on KERNEL_DEBUG_KERNEL + help + Say Y here to enable stall detection on workqueues. If a + worker pool doesn't make forward progress on a pending work + item for over a given amount of time, 30s by default, a + warning message is printed along with dump of workqueue + state. This can be configured through kernel parameter + "workqueue.watchdog_thresh" and its sysfs counterpart. + +config KERNEL_DEBUG_ATOMIC_SLEEP + bool "Compile the kernel with sleep inside atomic section checking" + depends on KERNEL_DEBUG_KERNEL + help + If you say Y here, various routines which may sleep will become very + noisy if they are called inside atomic sections: when a spinlock is + held, inside an rcu read side critical section, inside preempt disabled + sections, inside an interrupt, etc... + +config KERNEL_DEBUG_VM + bool "Compile the kernel with debug VM" + depends on KERNEL_DEBUG_KERNEL + help + Enable this to turn on extended checks in the virtual-memory system + that may impact performance. + + If unsure, say N. + +config KERNEL_PRINTK_TIME + bool "Enable printk timestamps" + default y + +config KERNEL_SLUB_DEBUG + bool + +config KERNEL_SLUB_DEBUG_ON + bool + +config KERNEL_SLABINFO + select KERNEL_SLUB_DEBUG + select KERNEL_SLUB_DEBUG_ON + bool "Enable /proc slab debug info" + +config KERNEL_PROC_PAGE_MONITOR + bool "Enable /proc page monitoring" + +config KERNEL_RELAY + bool + +config KERNEL_KEXEC + bool "Enable kexec support" + +config KERNEL_PROC_VMCORE + bool + +config KERNEL_PROC_KCORE + bool + +config KERNEL_CRASH_DUMP + depends on i386 || x86_64 || arm || armeb + select KERNEL_KEXEC + select KERNEL_PROC_VMCORE + select KERNEL_PROC_KCORE + bool "Enable support for kexec crashdump" + default y + +config USE_RFKILL + bool "Enable rfkill support" + default RFKILL_SUPPORT + +config USE_SPARSE + bool "Enable sparse check during kernel build" + default n + +config KERNEL_DEVTMPFS + bool "Compile the kernel with device tmpfs enabled" + default n + help + devtmpfs is a simple, kernel-managed /dev filesystem. The kernel creates + devices nodes for all registered devices to simplify boot, but leaves more + complex tasks to userspace (e.g. udev). + +if KERNEL_DEVTMPFS + + config KERNEL_DEVTMPFS_MOUNT + bool "Automatically mount devtmpfs after root filesystem is mounted" + default n + +endif + +config KERNEL_KEYS + bool "Enable kernel access key retention support" + default !SMALL_FLASH + +config KERNEL_PERSISTENT_KEYRINGS + bool "Enable kernel persistent keyrings" + depends on KERNEL_KEYS + default n + +config KERNEL_KEYS_REQUEST_CACHE + bool "Enable temporary caching of the last request_key() result" + depends on KERNEL_KEYS + default n + +config KERNEL_BIG_KEYS + bool "Enable large payload keys on kernel keyrings" + depends on KERNEL_KEYS + default n + +# +# CGROUP support symbols +# + +config KERNEL_CGROUPS + bool "Enable kernel cgroups" + default y if !SMALL_FLASH + +if KERNEL_CGROUPS + + config KERNEL_CGROUP_DEBUG + bool "Example debug cgroup subsystem" + default n + help + This option enables a simple cgroup subsystem that + exports useful debugging information about the cgroups + framework. + + config KERNEL_FREEZER + bool + + config KERNEL_CGROUP_FREEZER + bool "legacy Freezer cgroup subsystem" + default n + select KERNEL_FREEZER + help + Provides a way to freeze and unfreeze all tasks in a + cgroup. + (legacy cgroup1-only controller, in cgroup2 freezer + is integrated in the Memory controller) + + config KERNEL_CGROUP_DEVICE + bool "legacy Device controller for cgroups" + default n + help + Provides a cgroup implementing whitelists for devices which + a process in the cgroup can mknod or open. + (legacy cgroup1-only controller) + + config KERNEL_CGROUP_HUGETLB + bool "HugeTLB controller" + default n + select KERNEL_HUGETLB_PAGE + + config KERNEL_CGROUP_PIDS + bool "PIDs cgroup subsystem" + default y + help + Provides enforcement of process number limits in the scope of a + cgroup. + + config KERNEL_CGROUP_RDMA + bool "RDMA controller for cgroups" + default y + + config KERNEL_CGROUP_BPF + bool "Support for eBPF programs attached to cgroups" + default y + + config KERNEL_CPUSETS + bool "Cpuset support" + default y + help + This option will let you create and manage CPUSETs which + allow dynamically partitioning a system into sets of CPUs and + Memory Nodes and assigning tasks to run only within those sets. + This is primarily useful on large SMP or NUMA systems. + + config KERNEL_PROC_PID_CPUSET + bool "Include legacy /proc//cpuset file" + default n + depends on KERNEL_CPUSETS + + config KERNEL_CGROUP_CPUACCT + bool "Simple CPU accounting cgroup subsystem" + default y + help + Provides a simple Resource Controller for monitoring the + total CPU consumed by the tasks in a cgroup. + + config KERNEL_RESOURCE_COUNTERS + bool "Resource counters" + default y + help + This option enables controller independent resource accounting + infrastructure that works with cgroups. + + config KERNEL_MM_OWNER + bool + default y if KERNEL_MEMCG + + config KERNEL_MEMCG + bool "Memory Resource Controller for Control Groups" + default y + select KERNEL_FREEZER + depends on KERNEL_RESOURCE_COUNTERS || !LINUX_3_18 + help + Provides a memory resource controller that manages both anonymous + memory and page cache. (See Documentation/cgroups/memory.txt) + + Note that setting this option increases fixed memory overhead + associated with each page of memory in the system. By this, + 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory + usage tracking struct at boot. Total amount of this is printed out + at boot. + + Only enable when you're ok with these tradeoffs and really + sure you need the memory resource controller. Even when you enable + this, you can set "cgroup_disable=memory" at your boot option to + disable memory resource controller and you can avoid overheads + (but lose benefits of memory resource controller). + + This config option also selects MM_OWNER config option, which + could in turn add some fork/exit overhead. + + config KERNEL_MEMCG_SWAP + bool "Memory Resource Controller Swap Extension" + default y + depends on KERNEL_MEMCG + help + Add swap management feature to memory resource controller. When you + enable this, you can limit mem+swap usage per cgroup. In other words, + when you disable this, memory resource controller has no cares to + usage of swap...a process can exhaust all of the swap. This extension + is useful when you want to avoid exhaustion swap but this itself + adds more overheads and consumes memory for remembering information. + Especially if you use 32bit system or small memory system, please + be careful about enabling this. When memory resource controller + is disabled by boot option, this will be automatically disabled and + there will be no overhead from this. Even when you set this config=y, + if boot option "swapaccount=0" is set, swap will not be accounted. + Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page + size is 4096bytes, 512k per 1Gbytes of swap. + + config KERNEL_MEMCG_SWAP_ENABLED + bool "Memory Resource Controller Swap Extension enabled by default" + default n + depends on KERNEL_MEMCG_SWAP + help + Memory Resource Controller Swap Extension comes with its price in + a bigger memory consumption. General purpose distribution kernels + which want to enable the feature but keep it disabled by default + and let the user enable it by swapaccount boot command line + parameter should have this option unselected. + + Those who want to have the feature enabled by default should + select this option (if, for some reason, they need to disable it, + then swapaccount=0 does the trick). + + + config KERNEL_MEMCG_KMEM + bool "Memory Resource Controller Kernel Memory accounting (EXPERIMENTAL)" + default y + depends on KERNEL_MEMCG + help + The Kernel Memory extension for Memory Resource Controller can limit + the amount of memory used by kernel objects in the system. Those are + fundamentally different from the entities handled by the standard + Memory Controller, which are page-based, and can be swapped. Users of + the kmem extension can use it to guarantee that no group of processes + will ever exhaust kernel resources alone. + + config KERNEL_CGROUP_PERF + bool "Enable perf_event per-cpu per-container group (cgroup) monitoring" + select KERNEL_PERF_EVENTS + default n + help + This option extends the per-cpu mode to restrict monitoring to + threads which belong to the cgroup specified and run on the + designated cpu. + + menuconfig KERNEL_CGROUP_SCHED + bool "Group CPU scheduler" + default y + help + This feature lets CPU scheduler recognize task groups and control CPU + bandwidth allocation to such task groups. It uses cgroups to group + tasks. + + if KERNEL_CGROUP_SCHED + + config KERNEL_FAIR_GROUP_SCHED + bool "Group scheduling for SCHED_OTHER" + default y + + config KERNEL_CFS_BANDWIDTH + bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED" + default y + depends on KERNEL_FAIR_GROUP_SCHED + help + This option allows users to define CPU bandwidth rates (limits) for + tasks running within the fair group scheduler. Groups with no limit + set are considered to be unconstrained and will run with no + restriction. + See tip/Documentation/scheduler/sched-bwc.txt for more information. + + config KERNEL_RT_GROUP_SCHED + bool "Group scheduling for SCHED_RR/FIFO" + default y + help + This feature lets you explicitly allocate real CPU bandwidth + to task groups. If enabled, it will also make it impossible to + schedule realtime tasks for non-root users until you allocate + realtime bandwidth for them. + + endif + + config KERNEL_BLK_CGROUP + bool "Block IO controller" + default y + help + Generic block IO controller cgroup interface. This is the common + cgroup interface which should be used by various IO controlling + policies. + + Currently, CFQ IO scheduler uses it to recognize task groups and + control disk bandwidth allocation (proportional time slice allocation) + to such task groups. It is also used by bio throttling logic in + block layer to implement upper limit in IO rates on a device. + + This option only enables generic Block IO controller infrastructure. + One needs to also enable actual IO controlling logic/policy. For + enabling proportional weight division of disk bandwidth in CFQ, set + CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set + CONFIG_BLK_DEV_THROTTLING=y. + + if KERNEL_BLK_CGROUP + + config KERNEL_CFQ_GROUP_IOSCHED + bool "Proportional weight of disk bandwidth in CFQ" + + config KERNEL_BLK_DEV_THROTTLING + bool "Enable throttling policy" + default y + + config KERNEL_BLK_DEV_THROTTLING_LOW + bool "Block throttling .low limit interface support (EXPERIMENTAL)" + depends on KERNEL_BLK_DEV_THROTTLING + endif + + config KERNEL_DEBUG_BLK_CGROUP + bool "Enable Block IO controller debugging" + default n + depends on KERNEL_BLK_CGROUP + help + Enable some debugging help. Currently it exports additional stat + files in a cgroup which can be useful for debugging. + + config KERNEL_NET_CLS_CGROUP + bool "legacy Control Group Classifier" + default n + + config KERNEL_CGROUP_NET_CLASSID + bool "legacy Network classid cgroup" + default n + + config KERNEL_CGROUP_NET_PRIO + bool "legacy Network priority cgroup" + default n + +endif + +# +# Namespace support symbols +# + +config KERNEL_NAMESPACES + bool "Enable kernel namespaces" + default y if !SMALL_FLASH + +if KERNEL_NAMESPACES + + config KERNEL_UTS_NS + bool "UTS namespace" + default y + help + In this namespace, tasks see different info provided + with the uname() system call. + + config KERNEL_IPC_NS + bool "IPC namespace" + default y + help + In this namespace, tasks work with IPC ids which correspond to + different IPC objects in different namespaces. + + config KERNEL_USER_NS + bool "User namespace (EXPERIMENTAL)" + default y + help + This allows containers, i.e. vservers, to use user namespaces + to provide different user info for different servers. + + config KERNEL_PID_NS + bool "PID Namespaces" + default y + help + Support process id namespaces. This allows having multiple + processes with the same pid as long as they are in different + pid namespaces. This is a building block of containers. + + config KERNEL_NET_NS + bool "Network namespace" + default y + help + Allow user space to create what appear to be multiple instances + of the network stack. + +endif + +config KERNEL_DEVPTS_MULTIPLE_INSTANCES + bool "Support multiple instances of devpts" + default y if !SMALL_FLASH + help + Enable support for multiple instances of devpts filesystem. + If you want to have isolated PTY namespaces (eg: in containers), + say Y here. Otherwise, say N. If enabled, each mount of devpts + filesystem with the '-o newinstance' option will create an + independent PTY namespace. + +config KERNEL_POSIX_MQUEUE + bool "POSIX Message Queues" + default y if !SMALL_FLASH + help + POSIX variant of message queues is a part of IPC. In POSIX message + queues every message has a priority which decides about succession + of receiving it by a process. If you want to compile and run + programs written e.g. for Solaris with use of its POSIX message + queues (functions mq_*) say Y here. + + POSIX message queues are visible as a filesystem called 'mqueue' + and can be mounted somewhere if you want to do filesystem + operations on message queues. + + +config KERNEL_SECCOMP_FILTER + bool + default y if !SMALL_FLASH + +config KERNEL_SECCOMP + bool "Enable seccomp support" + depends on !(TARGET_uml) + select KERNEL_SECCOMP_FILTER + default y if !SMALL_FLASH + help + Build kernel with support for seccomp. + +# +# IPv4 configuration +# + +config KERNEL_IP_MROUTE + bool "Enable IPv4 multicast routing" + default y + help + Multicast routing requires a multicast routing daemon in + addition to kernel support. + +if KERNEL_IP_MROUTE + + config KERNEL_IP_MROUTE_MULTIPLE_TABLES + def_bool y + + config KERNEL_IP_PIMSM_V1 + def_bool y + + config KERNEL_IP_PIMSM_V2 + def_bool y + +endif + +# +# IPv6 configuration +# + +config KERNEL_IPV6 + def_bool IPV6 + +if KERNEL_IPV6 + + config KERNEL_IPV6_MULTIPLE_TABLES + def_bool y + + config KERNEL_IPV6_SUBTREES + def_bool y + + config KERNEL_IPV6_MROUTE + bool "Enable IPv6 multicast routing" + default y + help + Multicast routing requires a multicast routing daemon in + addition to kernel support. + + if KERNEL_IPV6_MROUTE + + config KERNEL_IPV6_MROUTE_MULTIPLE_TABLES + def_bool y + + config KERNEL_IPV6_PIMSM_V2 + def_bool y + + endif + + config KERNEL_IPV6_SEG6_LWTUNNEL + bool "Enable support for lightweight tunnels" + default y if !SMALL_FLASH + help + Using lwtunnel (needed for IPv6 segment routing) requires ip-full package. + + config KERNEL_LWTUNNEL_BPF + def_bool n + +endif + +# +# Miscellaneous network configuration +# + +config KERNEL_NET_L3_MASTER_DEV + bool "L3 Master device support" + help + This module provides glue between core networking code and device + drivers to support L3 master devices like VRF. + +# +# NFS related symbols +# +config KERNEL_IP_PNP + bool "Compile the kernel with rootfs on NFS" + help + If you want to make your kernel boot off a NFS server as root + filesystem, select Y here. + +if KERNEL_IP_PNP + + config KERNEL_IP_PNP_DHCP + def_bool y + + config KERNEL_IP_PNP_BOOTP + def_bool n + + config KERNEL_IP_PNP_RARP + def_bool n + + config KERNEL_NFS_FS + def_bool y + + config KERNEL_NFS_V2 + def_bool y + + config KERNEL_NFS_V3 + def_bool y + + config KERNEL_ROOT_NFS + def_bool y + +endif + +menu "Filesystem ACL and attr support options" + config USE_FS_ACL_ATTR + bool "Use filesystem ACL and attr support by default" + default n + help + Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default + for kernel and packages, except tmpfs, flash filesystems, + and old NFS. Also enable userspace extended attribute support + by default. (libreCMC already has an expection it will be + present in the kernel). + + config KERNEL_FS_POSIX_ACL + bool "Enable POSIX ACL support" + default y if USE_FS_ACL_ATTR + + config KERNEL_BTRFS_FS_POSIX_ACL + bool "Enable POSIX ACL for BtrFS Filesystems" + select KERNEL_FS_POSIX_ACL + default y if USE_FS_ACL_ATTR + + config KERNEL_EXT4_FS_POSIX_ACL + bool "Enable POSIX ACL for Ext4 Filesystems" + select KERNEL_FS_POSIX_ACL + default y if USE_FS_ACL_ATTR + + config KERNEL_F2FS_FS_POSIX_ACL + bool "Enable POSIX ACL for F2FS Filesystems" + select KERNEL_FS_POSIX_ACL + default n + + config KERNEL_JFFS2_FS_POSIX_ACL + bool "Enable POSIX ACL for JFFS2 Filesystems" + select KERNEL_FS_POSIX_ACL + default n + + config KERNEL_TMPFS_POSIX_ACL + bool "Enable POSIX ACL for TMPFS Filesystems" + select KERNEL_FS_POSIX_ACL + default n + + config KERNEL_CIFS_ACL + bool "Enable CIFS ACLs" + select KERNEL_FS_POSIX_ACL + default y if USE_FS_ACL_ATTR + + config KERNEL_HFS_FS_POSIX_ACL + bool "Enable POSIX ACL for HFS Filesystems" + select KERNEL_FS_POSIX_ACL + default y if USE_FS_ACL_ATTR + + config KERNEL_HFSPLUS_FS_POSIX_ACL + bool "Enable POSIX ACL for HFS+ Filesystems" + select KERNEL_FS_POSIX_ACL + default y if USE_FS_ACL_ATTR + + config KERNEL_NFS_ACL_SUPPORT + bool "Enable ACLs for NFS" + default y if USE_FS_ACL_ATTR + + config KERNEL_NFS_V3_ACL_SUPPORT + bool "Enable ACLs for NFSv3" + default n + + config KERNEL_NFSD_V2_ACL_SUPPORT + bool "Enable ACLs for NFSDv2" + default n + + config KERNEL_NFSD_V3_ACL_SUPPORT + bool "Enable ACLs for NFSDv3" + default n + + config KERNEL_REISER_FS_POSIX_ACL + bool "Enable POSIX ACLs for ReiserFS" + select KERNEL_FS_POSIX_ACL + default y if USE_FS_ACL_ATTR + + config KERNEL_XFS_POSIX_ACL + bool "Enable POSIX ACLs for XFS" + select KERNEL_FS_POSIX_ACL + default y if USE_FS_ACL_ATTR + + config KERNEL_JFS_POSIX_ACL + bool "Enable POSIX ACLs for JFS" + select KERNEL_FS_POSIX_ACL + default y if USE_FS_ACL_ATTR + +endmenu + +config KERNEL_DEVMEM + bool "/dev/mem virtual device support" + help + Say Y here if you want to support the /dev/mem device. + The /dev/mem device is used to access areas of physical + memory. + +config KERNEL_DEVKMEM + bool "/dev/kmem virtual device support" + help + Say Y here if you want to support the /dev/kmem device. The + /dev/kmem device is rarely used, but can be used for certain + kind of kernel debugging operations. + +config KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE + int "Number of squashfs fragments cached" + default 2 if (SMALL_FLASH && !LOW_MEMORY_FOOTPRINT) + default 3 + +config KERNEL_SQUASHFS_XATTR + bool "Squashfs XATTR support" + +# +# compile optimization setting +# +choice + prompt "Compiler optimization level" + default KERNEL_CC_OPTIMIZE_FOR_SIZE if SMALL_FLASH + +config KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE + bool "Optimize for performance" + help + This is the default optimization level for the kernel, building + with the "-O2" compiler flag for best performance and most + helpful compile-time warnings. + +config KERNEL_CC_OPTIMIZE_FOR_SIZE + bool "Optimize for size" + help + Enabling this option will pass "-Os" instead of "-O2" to + your compiler resulting in a smaller kernel. + +endchoice + +config KERNEL_AUDIT + bool "Auditing support" + +config KERNEL_SECURITY + bool "Enable different security models" + +config KERNEL_SECURITY_NETWORK + bool "Socket and Networking Security Hooks" + select KERNEL_SECURITY + +config KERNEL_SECURITY_SELINUX + bool "NSA SELinux Support" + select KERNEL_SECURITY_NETWORK + select KERNEL_AUDIT + +config KERNEL_SECURITY_SELINUX_BOOTPARAM + bool "NSA SELinux boot parameter" + depends on KERNEL_SECURITY_SELINUX + default y + +config KERNEL_SECURITY_SELINUX_DISABLE + bool "NSA SELinux runtime disable" + depends on KERNEL_SECURITY_SELINUX + +config KERNEL_SECURITY_SELINUX_DEVELOP + bool "NSA SELinux Development Support" + depends on KERNEL_SECURITY_SELINUX + default y + +config KERNEL_SECURITY_SELINUX_SIDTAB_HASH_BITS + int + depends on KERNEL_SECURITY_SELINUX + default 9 + +config KERNEL_SECURITY_SELINUX_SID2STR_CACHE_SIZE + int + depends on KERNEL_SECURITY_SELINUX + default 256 + +config KERNEL_LSM + string + default "lockdown,yama,loadpin,safesetid,integrity,selinux" + depends on KERNEL_SECURITY_SELINUX + +config KERNEL_EXT4_FS_SECURITY + bool "Ext4 Security Labels" + +config KERNEL_F2FS_FS_SECURITY + bool "F2FS Security Labels" + +config KERNEL_UBIFS_FS_SECURITY + bool "UBIFS Security Labels" + +config KERNEL_JFFS2_FS_SECURITY + bool "JFFS2 Security Labels" diff --git a/config/check-uname.sh b/config/check-uname.sh new file mode 100755 index 0000000000..1f1bf9ee07 --- /dev/null +++ b/config/check-uname.sh @@ -0,0 +1 @@ +[ "$(uname)" = "$1" ] && echo y || echo n diff --git a/feeds.conf.default b/feeds.conf.default new file mode 100644 index 0000000000..bc1ff677cf --- /dev/null +++ b/feeds.conf.default @@ -0,0 +1 @@ +src-git packages https://gogs.librecmc.org/librecmc/package-feed.git;librecmc-v6.0 diff --git a/include/autotools.mk b/include/autotools.mk new file mode 100644 index 0000000000..e9a7a82248 --- /dev/null +++ b/include/autotools.mk @@ -0,0 +1,180 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2007-2020 OpenWrt.org + +ifneq ($(__autotools_inc),1) +__autotools_inc=1 + +autoconf_bool = $(patsubst %,$(if $($(1)),--enable,--disable)-%,$(2)) + +# delete *.la-files from staging_dir - we can not yet remove respective lines within all package +# Makefiles, since backfire still uses libtool v1.5.x which (may) require those files +define libtool_remove_files + find $(1) -name '*.la' | $(XARGS) rm -f; +endef + + +AM_TOOL_PATHS:= \ + AUTOM4TE=$(STAGING_DIR_HOST)/bin/autom4te \ + AUTOCONF=$(STAGING_DIR_HOST)/bin/autoconf \ + AUTOMAKE=$(STAGING_DIR_HOST)/bin/automake \ + ACLOCAL=$(STAGING_DIR_HOST)/bin/aclocal \ + AUTOHEADER=$(STAGING_DIR_HOST)/bin/autoheader \ + LIBTOOLIZE=$(STAGING_DIR_HOST)/bin/libtoolize \ + LIBTOOL=$(STAGING_DIR_HOST)/bin/libtool \ + M4=$(STAGING_DIR_HOST)/bin/m4 \ + AUTOPOINT=true + +# 1: build dir +# 2: remove files +# 3: automake paths +# 4: libtool paths +# 5: extra m4 dirs +define autoreconf + (cd $(1); \ + $(patsubst %,rm -f %;,$(2)) \ + $(foreach p,$(3), \ + if [ -f $(p)/configure.ac ] || [ -f $(p)/configure.in ]; then \ + [ -d $(p)/autom4te.cache ] && rm -rf $(p)/autom4te.cache; \ + [ -e $(p)/config.rpath ] || \ + ln -s $(SCRIPT_DIR)/config.rpath $(p)/config.rpath; \ + touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; \ + $(AM_TOOL_PATHS) \ + LIBTOOLIZE='$(STAGING_DIR_HOST)/bin/libtoolize --install' \ + $(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \ + $(if $(word 2,$(3)),--no-recursive) \ + -B $(STAGING_DIR_HOST)/share/aclocal \ + $(patsubst %,-I %,$(5)) \ + $(patsubst %,-I %,$(4)) $(p) || true; \ + fi; \ + ) \ + ); +endef + +# 1: build dir +define patch_libtool + @(cd $(1); \ + for lt in $$$$($$(STAGING_DIR_HOST)/bin/find . -name ltmain.sh); do \ + lt_version="$$$$($$(STAGING_DIR_HOST)/bin/sed -ne 's,^[[:space:]]*VERSION="\?\([0-9]\.[0-9]\+\).*,\1,p' $$$$lt)"; \ + case "$$$$lt_version" in \ + 1.5|2.2|2.4) echo "autotools.mk: Found libtool v$$$$lt_version - applying patch to $$$$lt"; \ + (cd $$$$(dirname $$$$lt) && $$(PATCH) -N -s -p1 < $$(TOPDIR)/tools/libtool/files/libtool-v$$$$lt_version.patch || true) ;; \ + *) echo "autotools.mk: error: Unsupported libtool version v$$$$lt_version - cannot patch $$$$lt"; exit 1 ;; \ + esac; \ + done; \ + ); +endef + +define set_libtool_abiver + sed -i \ + -e 's,^soname_spec=.*,soname_spec="\\$$$${libname}\\$$$${shared_ext}.$(PKG_ABI_VERSION)",' \ + -e 's,^library_names_spec=.*,library_names_spec="\\$$$${libname}\\$$$${shared_ext}.$(PKG_ABI_VERSION) \\$$$${libname}\\$$$${shared_ext}",' \ + $(PKG_BUILD_DIR)/libtool +endef + +PKG_LIBTOOL_PATHS?=$(CONFIGURE_PATH) +PKG_AUTOMAKE_PATHS?=$(CONFIGURE_PATH) +PKG_MACRO_PATHS?=m4 +PKG_REMOVE_FILES?=aclocal.m4 + +Hooks/InstallDev/Post += libtool_remove_files + +define autoreconf_target + $(strip $(call autoreconf, \ + $(PKG_BUILD_DIR), $(PKG_REMOVE_FILES), \ + $(PKG_AUTOMAKE_PATHS), $(PKG_LIBTOOL_PATHS), \ + $(STAGING_DIR)/host/share/aclocal $(STAGING_DIR_HOSTPKG)/share/aclocal $(STAGING_DIR)/usr/share/aclocal $(PKG_MACRO_PATHS))) +endef + +define patch_libtool_target + $(strip $(call patch_libtool, \ + $(PKG_BUILD_DIR))) +endef + +define gettext_version_target + (cd $(PKG_BUILD_DIR) && \ + GETTEXT_VERSION=$(shell $(STAGING_DIR_HOSTPKG)/bin/gettext -V | $(STAGING_DIR_HOST)/bin/sed -rne '1s/.*\b([0-9]\.[0-9]+(\.[0-9]+)?)\b.*/\1/p' ) && \ + $(STAGING_DIR_HOST)/bin/sed \ + -i $(PKG_BUILD_DIR)/configure.ac \ + -e "s/AM_GNU_GETTEXT_VERSION(.*)/AM_GNU_GETTEXT_VERSION(\[$$$$GETTEXT_VERSION\])/g" && \ + $(STAGING_DIR_HOSTPKG)/bin/autopoint --force \ + ); +endef + +ifneq ($(filter gettext-version,$(PKG_FIXUP)),) + Hooks/Configure/Pre += gettext_version_target + ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),) + Hooks/Configure/Pre += autoreconf_target + endif +endif + +ifneq ($(filter patch-libtool,$(PKG_FIXUP)),) + Hooks/Configure/Pre += patch_libtool_target +endif + +ifneq ($(filter libtool,$(PKG_FIXUP)),) + PKG_BUILD_DEPENDS += libtool libiconv + ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),) + Hooks/Configure/Pre += autoreconf_target + endif +endif + +ifneq ($(filter libtool-abiver,$(PKG_FIXUP)),) + Hooks/Configure/Post += set_libtool_abiver +endif + +ifneq ($(filter libtool-ucxx,$(PKG_FIXUP)),) + PKG_BUILD_DEPENDS += libtool libiconv + ifeq ($(filter no-autoreconf,$(PKG_FIXUP)),) + Hooks/Configure/Pre += autoreconf_target + endif +endif + +ifneq ($(filter autoreconf,$(PKG_FIXUP)),) + ifeq ($(filter autoreconf,$(Hooks/Configure/Pre)),) + Hooks/Configure/Pre += autoreconf_target + endif +endif + + +HOST_FIXUP?=$(PKG_FIXUP) +HOST_LIBTOOL_PATHS?=$(if $(PKG_LIBTOOL_PATHS),$(PKG_LIBTOOL_PATHS),.) +HOST_AUTOMAKE_PATHS?=$(if $(PKG_AUTOMAKE_PATHS),$(PKG_AUTOMAKE_PATHS),.) +HOST_MACRO_PATHS?=$(if $(PKG_MACRO_PATHS),$(PKG_MACRO_PATHS),m4) +HOST_REMOVE_FILES?=$(PKG_REMOVE_FILES) + +define autoreconf_host + $(strip $(call autoreconf, \ + $(HOST_BUILD_DIR), $(HOST_REMOVE_FILES), \ + $(HOST_AUTOMAKE_PATHS), $(HOST_LIBTOOL_PATHS), \ + $(HOST_MACRO_PATHS))) +endef + +define patch_libtool_host + $(strip $(call patch_libtool, \ + $(HOST_BUILD_DIR))) +endef + +ifneq ($(filter patch-libtool,$(HOST_FIXUP)),) + Hooks/HostConfigure/Pre += patch_libtool_host +endif + +ifneq ($(filter libtool,$(HOST_FIXUP)),) + ifeq ($(filter no-autoreconf,$(HOST_FIXUP)),) + Hooks/HostConfigure/Pre += autoreconf_host + endif +endif + +ifneq ($(filter libtool-ucxx,$(HOST_FIXUP)),) + ifeq ($(filter no-autoreconf,$(HOST_FIXUP)),) + Hooks/HostConfigure/Pre += autoreconf_host + endif +endif + +ifneq ($(filter autoreconf,$(HOST_FIXUP)),) + ifeq ($(filter autoreconf,$(Hooks/HostConfigure/Pre)),) + Hooks/HostConfigure/Pre += autoreconf_host + endif +endif + +endif #__autotools_inc diff --git a/include/bpf.mk b/include/bpf.mk new file mode 100644 index 0000000000..7d0cfbd76d --- /dev/null +++ b/include/bpf.mk @@ -0,0 +1,83 @@ +BPF_DEPENDS := @HAS_BPF_TOOLCHAIN +LLVM_VER:= + +CLANG_MIN_VER:=12 + +ifneq ($(CONFIG_USE_LLVM_HOST),) + BPF_TOOLCHAIN_HOST_PATH:=$(call qstrip,$(CONFIG_BPF_TOOLCHAIN_HOST_PATH)) + ifneq ($(BPF_TOOLCHAIN_HOST_PATH),) + BPF_PATH:=$(BPF_TOOLCHAIN_HOST_PATH)/bin:$(PATH) + else + BPF_PATH:=$(PATH) + endif + CLANG:=$(firstword $(shell PATH='$(BPF_PATH)' command -v clang clang-13 clang-12 clang-11)) + LLVM_VER:=$(subst clang,,$(notdir $(CLANG))) +endif +ifneq ($(CONFIG_USE_LLVM_PREBUILT),) + CLANG:=$(TOPDIR)/llvm-bpf/bin/clang +endif +ifneq ($(CONFIG_USE_LLVM_BUILD),) + CLANG:=$(STAGING_DIR_HOST)/llvm-bpf/bin/clang +endif + +LLVM_PATH:=$(dir $(CLANG)) +LLVM_LLC:=$(LLVM_PATH)/llc$(LLVM_VER) +LLVM_DIS:=$(LLVM_PATH)/llvm-dis$(LLVM_VER) +LLVM_OPT:=$(LLVM_PATH)/opt$(LLVM_VER) +LLVM_STRIP:=$(LLVM_PATH)/llvm-strip$(LLVM_VER) + +BPF_KARCH:=mips +BPF_ARCH:=mips$(if $(CONFIG_ARCH_64BIT),64)$(if $(CONFIG_BIG_ENDIAN),,el) +BPF_TARGET:=bpf$(if $(CONFIG_BIG_ENDIAN),eb,el) + +BPF_HEADERS_DIR:=$(STAGING_DIR)/bpf-headers + +BPF_KERNEL_INCLUDE := \ + -nostdinc -isystem $(TOOLCHAIN_DIR)/include \ + -I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include \ + -I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include/asm/mach-generic \ + -I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include/generated \ + -I$(BPF_HEADERS_DIR)/include \ + -I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include/uapi \ + -I$(BPF_HEADERS_DIR)/arch/$(BPF_KARCH)/include/generated/uapi \ + -I$(BPF_HEADERS_DIR)/include/uapi \ + -I$(BPF_HEADERS_DIR)/include/generated/uapi \ + -I$(BPF_HEADERS_DIR)/tools/lib \ + -I$(BPF_HEADERS_DIR)/tools/testing/selftests \ + -I$(BPF_HEADERS_DIR)/samples/bpf \ + -include linux/kconfig.h -include asm_goto_workaround.h + +BPF_CFLAGS := \ + $(BPF_KERNEL_INCLUDE) -I$(PKG_BUILD_DIR) \ + -D__KERNEL__ -D__BPF_TRACING__ -DCONFIG_GENERIC_CSUM \ + -D__TARGET_ARCH_${BPF_KARCH} \ + -m$(if $(CONFIG_BIG_ENDIAN),big,little)-endian \ + -fno-stack-protector -Wall \ + -Wno-unused-value -Wno-pointer-sign \ + -Wno-compare-distinct-pointer-types \ + -Wno-gnu-variable-sized-type-not-at-end \ + -Wno-address-of-packed-member -Wno-tautological-compare \ + -Wno-unknown-warning-option \ + -fno-asynchronous-unwind-tables \ + -Wno-uninitialized -Wno-unused-variable \ + -Wno-unused-label \ + -O2 -emit-llvm -Xclang -disable-llvm-passes + +ifeq ($(DUMP),) + CLANG_VER:=$(shell $(CLANG) -dM -E - < /dev/null | grep __clang_major__ | cut -d' ' -f3) + CLANG_VER_VALID:=$(shell [ "$(CLANG_VER)" -ge "$(CLANG_MIN_VER)" ] && echo 1 ) + ifeq ($(CLANG_VER_VALID),) + $(error ERROR: LLVM/clang version too old. Minimum required: $(CLANG_MIN_VER), found: $(CLANG_VER)) + endif +endif + +define CompileBPF + $(CLANG) -g -target $(BPF_ARCH)-linux-gnu $(BPF_CFLAGS) $(2) \ + -c $(1) -o $(patsubst %.c,%.bc,$(1)) + $(LLVM_OPT) -O2 -mtriple=$(BPF_TARGET) < $(patsubst %.c,%.bc,$(1)) > $(patsubst %.c,%.opt,$(1)) + $(LLVM_DIS) < $(patsubst %.c,%.opt,$(1)) > $(patsubst %.c,%.S,$(1)) + $(LLVM_LLC) -march=$(BPF_TARGET) -mcpu=v3 -filetype=obj -o $(patsubst %.c,%.o,$(1)) < $(patsubst %.c,%.S,$(1)) + $(CP) $(patsubst %.c,%.o,$(1)) $(patsubst %.c,%.debug.o,$(1)) + $(LLVM_STRIP) --strip-debug $(patsubst %.c,%.o,$(1)) +endef + diff --git a/include/cmake.mk b/include/cmake.mk new file mode 100644 index 0000000000..bfd767592a --- /dev/null +++ b/include/cmake.mk @@ -0,0 +1,178 @@ +cmake_bool = $(patsubst %,-D%:BOOL=$(if $($(1)),ON,OFF),$(2)) + +PKG_USE_NINJA ?= 1 +HOST_USE_NINJA ?= 1 +ifeq ($(PKG_USE_NINJA),1) + PKG_BUILD_PARALLEL ?= 1 +endif +ifeq ($(HOST_USE_NINJA),1) + HOST_BUILD_PARALLEL ?= 1 +endif +PKG_INSTALL:=1 + +ifneq ($(findstring c,$(LIBRECMC_VERBOSE)),) + MAKE_FLAGS+=VERBOSE=1 + HOST_MAKE_FLAGS+=VERBOSE=1 +endif + +CMAKE_BINARY_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_BINARY_SUBDIR),/$(CMAKE_BINARY_SUBDIR)) +CMAKE_SOURCE_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_SOURCE_SUBDIR),/$(CMAKE_SOURCE_SUBDIR)) +HOST_CMAKE_SOURCE_DIR = $(HOST_BUILD_DIR)$(if $(CMAKE_SOURCE_SUBDIR),/$(CMAKE_SOURCE_SUBDIR)) +HOST_CMAKE_BINARY_DIR = $(HOST_BUILD_DIR)$(if $(CMAKE_BINARY_SUBDIR),/$(CMAKE_BINARY_SUBDIR)) +MAKE_PATH = $(firstword $(CMAKE_BINARY_SUBDIR) .) + +ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) + cmake_tool=$(TOOLCHAIN_DIR)/bin/$(1) +else + cmake_tool=$(shell command -v $(1)) +endif + +ifeq ($(CONFIG_CCACHE),) + CMAKE_C_COMPILER_LAUNCHER:= + CMAKE_CXX_COMPILER_LAUNCHER:= + CMAKE_C_COMPILER:=$(call cmake_tool,$(TARGET_CC)) + CMAKE_CXX_COMPILER:=$(call cmake_tool,$(TARGET_CXX)) + + CMAKE_HOST_C_COMPILER:=$(HOSTCC) + CMAKE_HOST_CXX_COMPILER:=$(HOSTCXX) +else + CCACHE:=$(STAGING_DIR_HOST)/bin/ccache + CMAKE_C_COMPILER_LAUNCHER:=$(CCACHE) + CMAKE_CXX_COMPILER_LAUNCHER:=$(CCACHE) + CMAKE_C_COMPILER:=$(TARGET_CC_NOCACHE) + CMAKE_CXX_COMPILER:=$(TARGET_CXX_NOCACHE) + + CMAKE_HOST_C_COMPILER:=$(HOSTCC_NOCACHE) + CMAKE_HOST_CXX_COMPILER:=$(HOSTCXX_NOCACHE) +endif +CMAKE_AR:=$(call cmake_tool,$(TARGET_AR)) +CMAKE_NM:=$(call cmake_tool,$(TARGET_NM)) +CMAKE_RANLIB:=$(call cmake_tool,$(TARGET_RANLIB)) + +CMAKE_FIND_ROOT_PATH:=$(STAGING_DIR)/usr;$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT)) +CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR)/host;$(STAGING_DIR_HOSTPKG);$(STAGING_DIR_HOST) +CMAKE_SHARED_LDFLAGS:=-Wl,-Bsymbolic-functions +CMAKE_HOST_INSTALL_PREFIX = $(HOST_BUILD_PREFIX) + +ifeq ($(HOST_USE_NINJA),1) + CMAKE_HOST_OPTIONS += -DCMAKE_GENERATOR="Ninja" + + define Host/Compile/Default + +$(NINJA) -C $(HOST_CMAKE_BINARY_DIR) $(1) + endef + + define Host/Install/Default + +$(NINJA) -C $(HOST_CMAKE_BINARY_DIR) install + endef + + define Host/Uninstall/Default + +$(NINJA) -C $(HOST_CMAKE_BINARY_DIR) uninstall + endef +endif + +ifeq ($(PKG_USE_NINJA),1) + CMAKE_OPTIONS += -DCMAKE_GENERATOR="Ninja" + + define Build/Compile/Default + +$(NINJA) -C $(CMAKE_BINARY_DIR) $(1) + endef + + define Build/Install/Default + +DESTDIR="$(PKG_INSTALL_DIR)" $(NINJA) -C $(CMAKE_BINARY_DIR) install + endef +endif + +define Build/Configure/Default + mkdir -p $(CMAKE_BINARY_DIR) + (cd $(CMAKE_BINARY_DIR); \ + CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ + CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \ + cmake \ + -DCMAKE_SYSTEM_NAME=Linux \ + -DCMAKE_SYSTEM_VERSION=1 \ + -DCMAKE_SYSTEM_PROCESSOR=$(ARCH) \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \ + -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \ + -DCMAKE_C_COMPILER_LAUNCHER="$(CMAKE_C_COMPILER_LAUNCHER)" \ + -DCMAKE_C_COMPILER="$(CMAKE_C_COMPILER)" \ + -DCMAKE_CXX_COMPILER_LAUNCHER="$(CMAKE_CXX_COMPILER_LAUNCHER)" \ + -DCMAKE_CXX_COMPILER="$(CMAKE_CXX_COMPILER)" \ + -DCMAKE_ASM_COMPILER_LAUNCHER="$(CMAKE_C_COMPILER_LAUNCHER)" \ + -DCMAKE_ASM_COMPILER="$(CMAKE_C_COMPILER)" \ + -DCMAKE_EXE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \ + -DCMAKE_MODULE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS) $(CMAKE_SHARED_LDFLAGS)" \ + -DCMAKE_SHARED_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS) $(CMAKE_SHARED_LDFLAGS)" \ + -DCMAKE_AR="$(CMAKE_AR)" \ + -DCMAKE_NM="$(CMAKE_NM)" \ + -DCMAKE_RANLIB="$(CMAKE_RANLIB)" \ + -DCMAKE_FIND_ROOT_PATH="$(CMAKE_FIND_ROOT_PATH)" \ + -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH \ + -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ + -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ + -DCMAKE_STRIP=: \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DDL_LIBRARY=$(STAGING_DIR) \ + -DCMAKE_PREFIX_PATH=$(STAGING_DIR) \ + -DCMAKE_SKIP_RPATH=TRUE \ + -DCMAKE_EXPORT_PACKAGE_REGISTRY=FALSE \ + -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE \ + -DCMAKE_FIND_USE_PACKAGE_REGISTRY=FALSE \ + -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=TRUE \ + -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=FALSE \ + -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=TRUE \ + $(CMAKE_OPTIONS) \ + $(CMAKE_SOURCE_DIR) \ + ) +endef + +define Build/InstallDev/cmake + $(INSTALL_DIR) $(1) + $(CP) $(PKG_INSTALL_DIR)/* $(1)/ +endef + +Build/InstallDev = $(if $(CMAKE_INSTALL),$(Build/InstallDev/cmake)) + +define Host/Configure/Default + mkdir -p "$(HOST_CMAKE_BINARY_DIR)" + (cd $(HOST_CMAKE_BINARY_DIR); \ + CFLAGS="$(HOST_CFLAGS)" \ + CXXFLAGS="$(HOST_CFLAGS)" \ + LDFLAGS="$(HOST_LDFLAGS)" \ + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER_LAUNCHER="$(CMAKE_C_COMPILER_LAUNCHER)" \ + -DCMAKE_C_COMPILER="$(CMAKE_HOST_C_COMPILER)" \ + -DCMAKE_CXX_COMPILER_LAUNCHER="$(CMAKE_CXX_COMPILER_LAUNCHER)" \ + -DCMAKE_CXX_COMPILER="$(CMAKE_HOST_CXX_COMPILER)" \ + -DCMAKE_ASM_COMPILER_LAUNCHER="$(CMAKE_C_COMPILER_LAUNCHER)" \ + -DCMAKE_ASM_COMPILER="$(CMAKE_HOST_C_COMPILER)" \ + -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \ + -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \ + -DCMAKE_EXE_LINKER_FLAGS:STRING="$(HOST_LDFLAGS)" \ + -DCMAKE_MODULE_LINKER_FLAGS:STRING="$(HOST_LDFLAGS)" \ + -DCMAKE_SHARED_LINKER_FLAGS:STRING="$(HOST_LDFLAGS)" \ + -DCMAKE_FIND_ROOT_PATH="$(CMAKE_HOST_FIND_ROOT_PATH)" \ + -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH \ + -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ + -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ + -DCMAKE_STRIP=: \ + -DCMAKE_INSTALL_PREFIX=$(CMAKE_HOST_INSTALL_PREFIX) \ + -DCMAKE_PREFIX_PATH=$(HOST_BUILD_PREFIX) \ + -DCMAKE_SKIP_RPATH=TRUE \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_EXPORT_PACKAGE_REGISTRY=FALSE \ + -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE \ + -DCMAKE_FIND_USE_PACKAGE_REGISTRY=FALSE \ + -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=TRUE \ + -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=FALSE \ + -DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=TRUE \ + $(CMAKE_HOST_OPTIONS) \ + $(HOST_CMAKE_SOURCE_DIR) \ + ) +endef + +MAKE_FLAGS += \ + CMAKE_COMMAND='$$(if $$(CMAKE_DISABLE_$$@),:,$(STAGING_DIR_HOST)/bin/cmake)' \ + CMAKE_DISABLE_cmake_check_build_system=1 diff --git a/include/debug.mk b/include/debug.mk new file mode 100644 index 0000000000..98a1d6e889 --- /dev/null +++ b/include/debug.mk @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2007-2020 OpenWrt.org + +# debug flags: +# +# d: show subdirectory tree +# t: show added targets +# l: show legacy targets +# r: show autorebuild messages +# v: verbose (no .SILENCE for common targets) + +ifeq ($(DUMP),) + ifeq ($(DEBUG),all) + build_debug:=dltvr + else + build_debug:=$(DEBUG) + endif +endif + +ifneq ($(DEBUG),) + +define debug +$$(findstring $(2),$$(if $$(DEBUG_SCOPE_DIR),$$(if $$(filter $$(DEBUG_SCOPE_DIR)%,$(1)),$(build_debug)),$(build_debug))) +endef + +define warn +$$(if $(call debug,$(1),$(2)),$$(warning $(3))) +endef + +define debug_eval +$$(if $(call debug,$(1),$(2)),$(3)) +endef + +define warn_eval +$(call warn,$(1),$(2),$(3) $(4)) +$(4) +endef + +else + +debug:= +warn:= +debug_eval:= +warn_eval = $(4) + +endif + diff --git a/include/depends.mk b/include/depends.mk new file mode 100644 index 0000000000..8ab80daf39 --- /dev/null +++ b/include/depends.mk @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2007-2020 OpenWrt.org + +# define a dependency on a subtree +# parameters: +# 1: directories/files +# 2: directory dependency +# 3: tempfile for file listings +# 4: find options + +DEP_FINDPARAMS := -x "*/.svn*" -x ".*" -x "*:*" -x "*\!*" -x "* *" -x "*\\\#*" -x "*/.*_check" -x "*/.*.swp" -x "*/.pkgdir*" + +find_md5=find $(wildcard $(1)) -type f $(patsubst -x,-and -not -path,$(DEP_FINDPARAMS) $(2)) -printf "%p%T@\n" | sort | $(MKHASH) md5 +find_md5_reproducible=find $(wildcard $(1)) -type f $(patsubst -x,-and -not -path,$(DEP_FINDPARAMS) $(2)) -print0 | xargs -0 $(MKHASH) md5 | sort | $(MKHASH) md5 + +define rdep + .PRECIOUS: $(2) + .SILENT: $(2)_check + + $(2): $(2)_check + check-depends: $(2)_check + +ifneq ($(wildcard $(2)),) + $(2)_check:: + $(if $(3), \ + $(call find_md5,$(1),$(4)) > $(3).1; \ + { [ \! -f "$(3)" ] || diff $(3) $(3).1 >/dev/null; } && \ + ) \ + { \ + [ -f "$(2)_check.1" ] && mv "$(2)_check.1"; \ + $(TOPDIR)/scripts/timestamp.pl $(DEP_FINDPARAMS) $(4) -n $(2) $(1) && { \ + $(call debug_eval,$(SUBDIR),r,echo "No need to rebuild $(2)";) \ + touch -r "$(2)" "$(2)_check"; \ + } \ + } || { \ + $(call debug_eval,$(SUBDIR),r,echo "Need to rebuild $(2)";) \ + touch "$(2)_check"; \ + } + $(if $(3), mv $(3).1 $(3)) +else + $(2)_check:: + $(if $(3), rm -f $(3) $(3).1) + $(call debug_eval,$(SUBDIR),r,echo "Target $(2) not built") +endif + +endef + +ifeq ($(filter .%,$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),$(MAKECMDGOALS),x)) + define rdep + $(2): $(2)_check + endef +endif diff --git a/include/device_table.txt b/include/device_table.txt new file mode 100644 index 0000000000..f9f167d6f5 --- /dev/null +++ b/include/device_table.txt @@ -0,0 +1,5 @@ +# minimal device table file for libreCMC + +# +/dev d 755 0 0 - - - - - +/dev/console c 600 0 0 5 1 0 0 - diff --git a/include/download.mk b/include/download.mk new file mode 100644 index 0000000000..2fa266888e --- /dev/null +++ b/include/download.mk @@ -0,0 +1,339 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2012 OpenWrt.org +# Copyright (C) 2016 LEDE project + +PROJECT_GIT = https://gogs.librecmc.org/OWEALs + +LIBRECMC_GIT = $(PROJECT_GIT) +LEDE_GIT = $(PROJECT_GIT) + +ifdef PKG_SOURCE_VERSION + ifndef PKG_VERSION + PKG_VERSION := $(if $(PKG_SOURCE_DATE),$(PKG_SOURCE_DATE)-)$(call version_abbrev,$(PKG_SOURCE_VERSION)) + endif + PKG_SOURCE_SUBDIR ?= $(PKG_NAME)-$(PKG_VERSION) + PKG_SOURCE ?= $(PKG_SOURCE_SUBDIR).tar.xz +endif + +DOWNLOAD_RDEP=$(STAMP_PREPARED) $(HOST_STAMP_PREPARED) + +define dl_method_git +$(if $(filter https://github.com/% git://github.com/%,$(1)),github_archive,git) +endef + +# Try to guess the download method from the URL +define dl_method +$(strip \ + $(if $(filter git,$(2)),$(call dl_method_git,$(1),$(2)), + $(if $(2),$(2), \ + $(if $(filter @LIBRECMC @APACHE/% @DEBIAN/% @GITHUB/% @GNOME/% @GNU/% @KERNEL_LIBRE/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \ + $(if $(filter git://%,$(1)),$(call dl_method_git,$(1),$(2)), \ + $(if $(filter svn://%,$(1)),svn, \ + $(if $(filter cvs://%,$(1)),cvs, \ + $(if $(filter hg://%,$(1)),hg, \ + $(if $(filter sftp://%,$(1)),bzr, \ + unknown \ + ) \ + ) \ + ) \ + ) \ + ) \ + ) \ + ) \ + ) \ +) +endef + +# code for creating tarballs from cvs/svn/git/bzr/hg/darcs checkouts - useful for mirror support +dl_pack/bz2=bzip2 -c > $(1) +dl_pack/gz=gzip -nc > $(1) +dl_pack/xz=xz -zc -7e > $(1) +dl_pack/zst=zstd -T0 --ultra -20 -c > $(1) +dl_pack/unknown=$(error ERROR: Unknown pack format for file $(1)) +define dl_pack + $(if $(dl_pack/$(call ext,$(1))),$(dl_pack/$(call ext,$(1))),$(dl_pack/unknown)) +endef +define dl_tar_pack + $(TAR) --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name \ + $$$${TAR_TIMESTAMP:+--mtime="$$$$TAR_TIMESTAMP"} -c $(2) | $(call dl_pack,$(1)) +endef + +gen_sha256sum = $(shell $(MKHASH) sha256 $(DL_DIR)/$(1)) + +# Used in Build/CoreTargets and HostBuild/Core as an integrity check for +# downloaded files. It will add a FORCE rule if the sha256 hash does not +# match, so that the download can be more thoroughly handled by download.pl. +define check_download_integrity + expected_hash:=$(strip $(if $(filter-out x,$(HASH)),$(HASH),$(MIRROR_HASH))) + $$(if $$(and $(FILE),$$(wildcard $(DL_DIR)/$(FILE)), \ + $$(filter undefined,$$(flavor DownloadChecked/$(FILE)))), \ + $$(eval DownloadChecked/$(FILE):=1) \ + $$(if $$(filter-out $$(call gen_sha256sum,$(FILE)),$$(expected_hash)), \ + $(DL_DIR)/$(FILE): FORCE) \ + ) +endef + +ifdef CHECK +check_escape=$(subst ','\'',$(1)) +#') + +# $(1): suffix of the F_, C_ variables, e.g. hash_deprecated, hash_mismatch, etc. +# $(2): filename +# $(3): expected hash value +# $(4): var name of the the form: {PKG_,Download/:}{,MIRROR_}{HASH,MIRROR_HASH} +check_warn_nofix = $(info $(shell printf "$(_R)WARNING: %s$(_N)" '$(call check_escape,$(call C_$(1),$(2),$(3),$(4)))')) +ifndef FIXUP + check_warn = $(check_warn_nofix) +else + check_warn = $(if $(filter-out undefined,$(origin F_$(1))),$(filter ,$(shell $(call F_$(1),$(2),$(3),$(4)) >&2)),$(check_warn_nofix)) +endif + +ifdef FIXUP +F_hash_deprecated = $(SCRIPT_DIR)/fixup-makefile.pl $(CURDIR)/Makefile fix-hash $(3) $(call gen_sha256sum,$(1)) $(2) +F_hash_mismatch = $(F_hash_deprecated) +F_hash_missing = $(SCRIPT_DIR)/fixup-makefile.pl $(CURDIR)/Makefile add-hash $(3) $(call gen_sha256sum,$(1)) +endif + +# $(1): filename +# $(2): expected hash value +# $(3): var name of the the form: {PKG_,Download/:}{,MIRROR_}{HASH,MIRROR_HASH} +C_download_missing = $(1) is missing, please run make download before re-running this check +C_hash_mismatch = $(3) does not match $(1) hash $(call gen_sha256sum,$(1)) +C_hash_deprecated = $(3) uses deprecated hash, set to $(call gen_sha256sum,$(1)) +C_hash_missing = $(3) is missing, set to $(call gen_sha256sum,$(1)) + +# $(1): filename +# $(2): expected hash value +# $(3): var name of the the form: {PKG_,Download/:}{,MIRROR_}{HASH,MIRROR_HASH} +check_hash = \ + $(if $(wildcard $(DL_DIR)/$(1)), \ + $(if $(filter-out x,$(2)), \ + $(if $(filter 64,$(shell printf '%s' '$(2)' | wc -c)), \ + $(if $(filter $(2),$(call gen_sha256sum,$(1))),, \ + $(call check_warn,hash_mismatch,$(1),$(2),$(3)) \ + ), \ + $(call check_warn,hash_deprecated,$(1),$(2),$(3)), \ + ), \ + $(call check_warn,hash_missing,$(1),$(2),$(3)) \ + ), \ + $(call check_warn,download_missing,$(1),$(2),$(3)) \ + ) + +ifdef FIXUP +F_md5_deprecated = $(SCRIPT_DIR)/fixup-makefile.pl $(CURDIR)/Makefile rename-var $(2) $(3) +endif + +C_md5_deprecated = Use of $(2) is deprecated, switch to $(3) + +check_md5 = \ + $(if $(filter-out x,$(1)), \ + $(call check_warn,md5_deprecated,$(1),$(2),$(3)) \ + ) + +hash_var = $(if $(filter-out x,$(1)),MD5SUM,HASH) +endif + +define DownloadMethod/unknown + echo "ERROR: No download method available"; false +endef + +define DownloadMethod/default + $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(HASH)" "$(URL_FILE)" $(foreach url,$(URL),"$(url)") \ + $(if $(filter check,$(1)), \ + $(call check_hash,$(FILE),$(HASH),$(2)$(call hash_var,$(MD5SUM))) \ + $(call check_md5,$(MD5SUM),$(2)MD5SUM,$(2)HASH) \ + ) +endef + +# $(1): "check" +# $(2): "PKG_" if as in Download/ is "default", otherwise "Download/:" +# $(3): shell command sequence to do the download +define wrap_mirror +$(if $(if $(MIRROR),$(filter-out x,$(MIRROR_HASH))),$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_HASH)" "" || ( $(3) ),$(3)) \ +$(if $(filter check,$(1)), \ + $(call check_hash,$(FILE),$(MIRROR_HASH),$(2)MIRROR_$(call hash_var,$(MIRROR_MD5SUM))) \ + $(call check_md5,$(MIRROR_MD5SUM),$(2)MIRROR_MD5SUM,$(2)MIRROR_HASH) \ +) +endef + +define DownloadMethod/cvs + $(call wrap_mirror,$(1),$(2), \ + echo "Checking out files from the cvs repository..."; \ + mkdir -p $(TMP_DIR)/dl && \ + cd $(TMP_DIR)/dl && \ + rm -rf $(SUBDIR) && \ + [ \! -d $(SUBDIR) ] && \ + cvs -d $(URL) export $(VERSION) $(SUBDIR) && \ + echo "Packing checkout..." && \ + $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ + mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ + rm -rf $(SUBDIR); \ + ) +endef + +define DownloadMethod/svn + $(call wrap_mirror,$(1),$(2), \ + echo "Checking out files from the svn repository..."; \ + mkdir -p $(TMP_DIR)/dl && \ + cd $(TMP_DIR)/dl && \ + rm -rf $(SUBDIR) && \ + [ \! -d $(SUBDIR) ] && \ + ( svn help export | grep -q trust-server-cert && \ + svn export --non-interactive --trust-server-cert -r$(VERSION) $(URL) $(SUBDIR) || \ + svn export --non-interactive -r$(VERSION) $(URL) $(SUBDIR) ) && \ + echo "Packing checkout..." && \ + export TAR_TIMESTAMP="" && \ + $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ + mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ + rm -rf $(SUBDIR); \ + ) +endef + +define DownloadMethod/git + $(call wrap_mirror,$(1),$(2), \ + $(call DownloadMethod/rawgit) \ + ) +endef + +define DownloadMethod/github_archive + $(call wrap_mirror,$(1),$(2), \ + $(SCRIPT_DIR)/dl_github_archive.py \ + --dl-dir="$(DL_DIR)" \ + --url="$(URL)" \ + --version="$(VERSION)" \ + --subdir="$(SUBDIR)" \ + --source="$(FILE)" \ + --hash="$(MIRROR_HASH)" \ + || ( $(call DownloadMethod/rawgit) ); \ + ) +endef + +# Only intends to be called as a submethod from other DownloadMethod +define DownloadMethod/rawgit + echo "Checking out files from the git repository..."; \ + mkdir -p $(TMP_DIR)/dl && \ + cd $(TMP_DIR)/dl && \ + rm -rf $(SUBDIR) && \ + [ \! -d $(SUBDIR) ] && \ + git clone $(OPTS) $(URL) $(SUBDIR) && \ + (cd $(SUBDIR) && git checkout $(VERSION) && \ + git submodule update --init --recursive) && \ + echo "Packing checkout..." && \ + export TAR_TIMESTAMP=`cd $(SUBDIR) && git log -1 --format='@%ct'` && \ + rm -rf $(SUBDIR)/.git && \ + $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ + mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ + rm -rf $(SUBDIR); +endef + +define DownloadMethod/bzr + $(call wrap_mirror,$(1),$(2), \ + echo "Checking out files from the bzr repository..."; \ + mkdir -p $(TMP_DIR)/dl && \ + cd $(TMP_DIR)/dl && \ + rm -rf $(SUBDIR) && \ + [ \! -d $(SUBDIR) ] && \ + bzr export --per-file-timestamps -r$(VERSION) $(SUBDIR) $(URL) && \ + echo "Packing checkout..." && \ + export TAR_TIMESTAMP="" && \ + $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ + mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ + rm -rf $(SUBDIR); \ + ) +endef + +define DownloadMethod/hg + $(call wrap_mirror,$(1),$(2), \ + echo "Checking out files from the hg repository..."; \ + mkdir -p $(TMP_DIR)/dl && \ + cd $(TMP_DIR)/dl && \ + rm -rf $(SUBDIR) && \ + [ \! -d $(SUBDIR) ] && \ + hg clone -r $(VERSION) $(URL) $(SUBDIR) && \ + export TAR_TIMESTAMP=`cd $(SUBDIR) && hg log --template '@{date}' -l 1` && \ + find $(SUBDIR) -name .hg | xargs rm -rf && \ + echo "Packing checkout..." && \ + $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ + mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ + rm -rf $(SUBDIR); \ + ) +endef + +define DownloadMethod/darcs + $(call wrap_mirror, $(1), $(2), \ + echo "Checking out files from the darcs repository..."; \ + mkdir -p $(TMP_DIR)/dl && \ + cd $(TMP_DIR)/dl && \ + rm -rf $(SUBDIR) && \ + [ \! -d $(SUBDIR) ] && \ + darcs get -t $(VERSION) $(URL) $(SUBDIR) && \ + export TAR_TIMESTAMP=`cd $(SUBDIR) && LC_ALL=C darcs log --last 1 | sed -ne 's!^Date: \+!!p'` && \ + find $(SUBDIR) -name _darcs | xargs rm -rf && \ + echo "Packing checkout..." && \ + $(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ + mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \ + rm -rf $(SUBDIR); \ + ) +endef + +Validate/cvs=VERSION SUBDIR +Validate/svn=VERSION SUBDIR +Validate/git=VERSION SUBDIR +Validate/bzr=VERSION SUBDIR +Validate/hg=VERSION SUBDIR +Validate/darcs=VERSION SUBDIR + +define Download/Defaults + URL:= + FILE:= + URL_FILE:= + PROTO:= + HASH=$$(MD5SUM) + MD5SUM:=x + SUBDIR:= + MIRROR:=1 + MIRROR_HASH=$$(MIRROR_MD5SUM) + MIRROR_MD5SUM:=x + VERSION:= + OPTS:= +endef + +define Download/default + FILE:=$(PKG_SOURCE) + URL:=$(PKG_SOURCE_URL) + URL_FILE:=$(PKG_SOURCE_URL_FILE) + SUBDIR:=$(PKG_SOURCE_SUBDIR) + PROTO:=$(PKG_SOURCE_PROTO) + $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR))) + $(if $(PKG_MIRROR_MD5SUM),MIRROR_MD5SUM:=$(PKG_MIRROR_MD5SUM)) + $(if $(PKG_MIRROR_HASH),MIRROR_HASH:=$(PKG_MIRROR_HASH)) + VERSION:=$(PKG_SOURCE_VERSION) + $(if $(PKG_MD5SUM),MD5SUM:=$(PKG_MD5SUM)) + $(if $(PKG_HASH),HASH:=$(PKG_HASH)) +endef + +define Download + $(eval $(Download/Defaults)) + $(eval $(Download/$(1))) + $(foreach FIELD,URL FILE $(Validate/$(call dl_method,$(URL),$(PROTO))), + ifeq ($($(FIELD)),) + $$(error Download/$(1) is missing the $(FIELD) field.) + endif + ) + + $(foreach dep,$(DOWNLOAD_RDEP), + $(dep): $(DL_DIR)/$(FILE) + ) + download: $(DL_DIR)/$(FILE) + + $(DL_DIR)/$(FILE): + mkdir -p $(DL_DIR) + $(call locked, \ + $(if $(DownloadMethod/$(call dl_method,$(URL),$(PROTO))), \ + $(call DownloadMethod/$(call dl_method,$(URL),$(PROTO)),check,$(if $(filter default,$(1)),PKG_,Download/$(1):)), \ + $(DownloadMethod/unknown) \ + ),\ + $(FILE)) + +endef diff --git a/include/feeds.mk b/include/feeds.mk new file mode 100644 index 0000000000..632fecb4a3 --- /dev/null +++ b/include/feeds.mk @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2014 OpenWrt.org +# Copyright (C) 2016 LEDE Project + +-include $(TMP_DIR)/.packageauxvars + +FEEDS_INSTALLED:=$(notdir $(wildcard $(TOPDIR)/package/feeds/*)) +FEEDS_AVAILABLE:=$(sort $(FEEDS_INSTALLED) $(shell $(SCRIPT_DIR)/feeds list -n 2>/dev/null)) + +PACKAGE_SUBDIRS=$(PACKAGE_DIR) +ifneq ($(CONFIG_PER_FEED_REPO),) + PACKAGE_SUBDIRS += $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES)/base + PACKAGE_SUBDIRS += $(foreach FEED,$(FEEDS_AVAILABLE),$(OUTPUT_DIR)/packages/$(ARCH_PACKAGES)/$(FEED)) +endif + +opkg_package_files = $(wildcard \ + $(foreach dir,$(PACKAGE_SUBDIRS), \ + $(foreach pkg,$(1), $(dir)/$(pkg)_*.ipk))) + +# 1: package name +define FeedPackageDir +$(strip $(if $(CONFIG_PER_FEED_REPO), \ + $(if $(Package/$(1)/subdir), \ + $(abspath $(OUTPUT_DIR)/packages/$(ARCH_PACKAGES)/$(Package/$(1)/subdir)), \ + $(PACKAGE_DIR)), \ + $(PACKAGE_DIR))) +endef + +# 1: destination file +define FeedSourcesAppend +( \ + echo 'src/gz %d_core %U/targets/%S/packages'; \ + $(strip $(if $(CONFIG_PER_FEED_REPO), \ + echo 'src/gz %d_base %U/packages/%A/base'; \ + $(if $(filter %SNAPSHOT-y,$(VERSION_NUMBER)-$(CONFIG_BUILDBOT)), \ + echo 'src/gz %d_kmods %U/targets/%S/kmods/$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)';) \ + $(foreach feed,$(FEEDS_AVAILABLE), \ + $(if $(CONFIG_FEED_$(feed)), \ + echo '$(if $(filter m,$(CONFIG_FEED_$(feed))),# )src/gz %d_$(feed) %U/packages/%A/$(feed)';)))) \ +) >> $(1) +endef + +# 1: package name +define GetABISuffix +$(if $(ABIV_$(1)),$(ABIV_$(1)),$(call FormatABISuffix,$(1),$(foreach v,$(wildcard $(STAGING_DIR)/pkginfo/$(1).version),$(shell cat $(v))))) +endef + +# 1: package name +# 2: abi version +define FormatABISuffix +$(if $(filter-out kmod-%,$(1)),$(if $(2),$(if $(filter %0 %1 %2 %3 %4 %5 %6 %7 %8 %9,$(1)),-)$(2))) +endef diff --git a/include/hardened-ld-pie.specs b/include/hardened-ld-pie.specs new file mode 100644 index 0000000000..7317b19a17 --- /dev/null +++ b/include/hardened-ld-pie.specs @@ -0,0 +1,2 @@ +*self_spec: ++ %{no-pie|static|r|shared:;:-pie} diff --git a/include/hardening.mk b/include/hardening.mk new file mode 100644 index 0000000000..6acd862f5c --- /dev/null +++ b/include/hardening.mk @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2015-2020 OpenWrt.org + +PKG_CHECK_FORMAT_SECURITY ?= 1 +PKG_ASLR_PIE ?= 1 +PKG_ASLR_PIE_REGULAR ?= 0 +PKG_SSP ?= 1 +PKG_FORTIFY_SOURCE ?= 1 +PKG_RELRO ?= 1 + +ifdef CONFIG_PKG_CHECK_FORMAT_SECURITY + ifeq ($(strip $(PKG_CHECK_FORMAT_SECURITY)),1) + TARGET_CFLAGS += -Wformat -Werror=format-security + endif +endif +ifdef CONFIG_PKG_ASLR_PIE_ALL + ifeq ($(strip $(PKG_ASLR_PIE)),1) + TARGET_CFLAGS += $(FPIC) + TARGET_LDFLAGS += $(FPIC) -specs=$(INCLUDE_DIR)/hardened-ld-pie.specs + endif +endif +ifdef CONFIG_PKG_ASLR_PIE_REGULAR + ifeq ($(strip $(PKG_ASLR_PIE_REGULAR)),1) + TARGET_CFLAGS += $(FPIC) + TARGET_LDFLAGS += $(FPIC) -specs=$(INCLUDE_DIR)/hardened-ld-pie.specs + endif +endif +ifdef CONFIG_PKG_CC_STACKPROTECTOR_REGULAR + ifeq ($(strip $(PKG_SSP)),1) + TARGET_CFLAGS += -fstack-protector + endif +endif +ifdef CONFIG_PKG_CC_STACKPROTECTOR_STRONG + ifeq ($(strip $(PKG_SSP)),1) + TARGET_CFLAGS += -fstack-protector-strong + endif +endif +ifdef CONFIG_PKG_FORTIFY_SOURCE_1 + ifeq ($(strip $(PKG_FORTIFY_SOURCE)),1) + TARGET_CFLAGS += -D_FORTIFY_SOURCE=1 + endif +endif +ifdef CONFIG_PKG_FORTIFY_SOURCE_2 + ifeq ($(strip $(PKG_FORTIFY_SOURCE)),1) + TARGET_CFLAGS += -D_FORTIFY_SOURCE=2 + endif +endif +ifdef CONFIG_PKG_RELRO_PARTIAL + ifeq ($(strip $(PKG_RELRO)),1) + TARGET_CFLAGS += -Wl,-z,relro + TARGET_LDFLAGS += -zrelro + endif +endif +ifdef CONFIG_PKG_RELRO_FULL + ifeq ($(strip $(PKG_RELRO)),1) + TARGET_CFLAGS += -Wl,-z,now -Wl,-z,relro + TARGET_LDFLAGS += -znow -zrelro + endif +endif + diff --git a/include/host-build.mk b/include/host-build.mk new file mode 100644 index 0000000000..22fcc31f15 --- /dev/null +++ b/include/host-build.mk @@ -0,0 +1,210 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +include $(INCLUDE_DIR)/download.mk + +HOST_BUILD_DIR ?= $(BUILD_DIR_HOST)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) +HOST_INSTALL_DIR ?= $(HOST_BUILD_DIR)/host-install +HOST_BUILD_PARALLEL ?= + +HOST_MAKE_J:=$(if $(MAKE_JOBSERVER),$(MAKE_JOBSERVER) $(if $(filter 3.% 4.0 4.1,$(MAKE_VERSION)),-j)) + +ifeq ($(strip $(HOST_BUILD_PARALLEL)),0) +HOST_JOBS?=-j1 +else +HOST_JOBS?=$(if $(HOST_BUILD_PARALLEL),$(HOST_MAKE_J),-j1) +endif + +include $(INCLUDE_DIR)/unpack.mk +include $(INCLUDE_DIR)/depends.mk +include $(INCLUDE_DIR)/quilt.mk + +BUILD_TYPES += host +HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared$(if $(HOST_QUILT)$(DUMP),,$(shell $(call $(if $(CONFIG_AUTOREMOVE),find_md5_reproducible,find_md5),${CURDIR} $(PKG_FILE_DEPENDS),))_$(call confvar,CONFIG_AUTOREMOVE $(HOST_PREPARED_DEPENDS))) +HOST_STAMP_CONFIGURED:=$(HOST_BUILD_DIR)/.configured +HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.built +HOST_BUILD_PREFIX?=$(if $(IS_PACKAGE_BUILD),$(STAGING_DIR_HOSTPKG),$(STAGING_DIR_HOST)) +HOST_STAMP_INSTALLED:=$(HOST_BUILD_PREFIX)/stamp/.$(PKG_NAME)_installed + +override MAKEFLAGS= + +include $(INCLUDE_DIR)/autotools.mk + +_host_target:=$(if $(HOST_QUILT),,.) + +Host/Patch:=$(Host/Patch/Default) +ifneq ($(strip $(HOST_UNPACK)),) + define Host/Prepare/Default + $(HOST_UNPACK) + [ ! -d ./src/ ] || $(CP) ./src/* $(HOST_BUILD_DIR) + $(Host/Patch) + endef +endif + +define Host/Prepare + $(call Host/Prepare/Default) +endef + +HOST_CONFIGURE_VARS = \ + CC="$(HOSTCC)" \ + CFLAGS="$(HOST_CFLAGS)" \ + CXX="$(HOSTCXX)" \ + CPPFLAGS="$(HOST_CPPFLAGS)" \ + CXXFLAGS="$(HOST_CXXFLAGS)" \ + LDFLAGS="$(HOST_LDFLAGS)" \ + CONFIG_SHELL="$(SHELL)" + +HOST_CONFIGURE_ARGS = \ + --target=$(GNU_HOST_NAME) \ + --host=$(GNU_HOST_NAME) \ + --build=$(GNU_HOST_NAME) \ + --program-prefix="" \ + --program-suffix="" \ + --prefix=$(HOST_BUILD_PREFIX) \ + --exec-prefix=$(HOST_BUILD_PREFIX) \ + --sysconfdir=$(HOST_BUILD_PREFIX)/etc \ + --localstatedir=$(HOST_BUILD_PREFIX)/var \ + --sbindir=$(HOST_BUILD_PREFIX)/bin + +HOST_MAKE_VARS = \ + CFLAGS="$(HOST_CFLAGS)" \ + CPPFLAGS="$(HOST_CPPFLAGS)" \ + CXXFLAGS="$(HOST_CXXFLAGS)" \ + LDFLAGS="$(HOST_LDFLAGS)" + +HOST_MAKE_FLAGS = + +HOST_CONFIGURE_CMD = $(BASH) ./configure + +ifeq ($(HOST_OS),Darwin) + HOST_CONFIG_SITE:=$(INCLUDE_DIR)/site/darwin +endif + +define Host/Configure/Default + $(if $(HOST_CONFIGURE_PARALLEL),+)(cd $(HOST_BUILD_DIR)/$(3); \ + if [ -x configure ]; then \ + $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/$(3)/ && \ + $(HOST_CONFIGURE_VARS) \ + $(2) \ + $(HOST_CONFIGURE_CMD) \ + $(HOST_CONFIGURE_ARGS) \ + $(1); \ + fi \ + ) +endef + +define Host/Configure + $(call Host/Configure/Default) +endef + +define Host/Compile/Default + +$(HOST_MAKE_VARS) \ + $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \ + $(HOST_MAKE_FLAGS) \ + $(1) +endef + +define Host/Compile + $(call Host/Compile/Default) +endef + +define Host/Install/Default + $(call Host/Compile/Default,install) +endef + +define Host/Install + $(call Host/Install/Default,$(HOST_BUILD_PREFIX)) +endef + + +ifneq ($(if $(HOST_QUILT),,$(CONFIG_AUTOREBUILD)),) + define HostHost/Autoclean + $(call rdep,${CURDIR} $(PKG_FILE_DEPENDS),$(HOST_STAMP_PREPARED)) + $(if $(if $(Host/Compile),$(filter prepare,$(MAKECMDGOALS)),1),,$(call rdep,$(HOST_BUILD_DIR),$(HOST_STAMP_BUILT))) + endef +endif + +define Host/Exports/Default + $(1) : export ACLOCAL_INCLUDE=$$(foreach p,$$(wildcard $$(STAGING_DIR_HOST)/share/aclocal $$(STAGING_DIR_HOST)/share/aclocal-* $(if $(IS_PACKAGE_BUILD),$$(STAGING_DIR)/host/share/aclocal $$(STAGING_DIR_HOSTPKG)/share/aclocal $$(STAGING_DIR)/host/share/aclocal-*)),-I $$(p)) + $(1) : export STAGING_PREFIX=$$(HOST_BUILD_PREFIX) + $(1) : export PKG_CONFIG_PATH=$$(STAGING_DIR_HOST)/lib/pkgconfig:$$(HOST_BUILD_PREFIX)/lib/pkgconfig + $(1) : export PKG_CONFIG_LIBDIR=$$(HOST_BUILD_PREFIX)/lib/pkgconfig + $(if $(HOST_CONFIG_SITE),$(1) : export CONFIG_SITE:=$(HOST_CONFIG_SITE)) + $(if $(IS_PACKAGE_BUILD),$(1) : export PATH=$$(TARGET_PATH_PKG)) +endef +Host/Exports=$(Host/Exports/Default) + +.NOTPARALLEL: + +ifndef DUMP + define HostBuild/Core + $(if $(HOST_QUILT),$(Host/Quilt)) + $(if $(DUMP),,$(call HostHost/Autoclean)) + + $(HOST_STAMP_PREPARED): + @-rm -rf $(HOST_BUILD_DIR) + @mkdir -p $(HOST_BUILD_DIR) + $(foreach hook,$(Hooks/HostPrepare/Pre),$(call $(hook))$(sep)) + $(call Host/Prepare) + $(foreach hook,$(Hooks/HostPrepare/Post),$(call $(hook))$(sep)) + touch $$@ + + $(call Host/Exports,$(HOST_STAMP_CONFIGURED)) + $(HOST_STAMP_CONFIGURED): $(HOST_STAMP_PREPARED) + $(foreach hook,$(Hooks/HostConfigure/Pre),$(call $(hook))$(sep)) + $(call Host/Configure) + $(foreach hook,$(Hooks/HostConfigure/Post),$(call $(hook))$(sep)) + touch $$@ + + $(call Host/Exports,$(HOST_STAMP_BUILT)) + $(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED) + $(foreach hook,$(Hooks/HostCompile/Pre),$(call $(hook))$(sep)) + $(call Host/Compile) + $(foreach hook,$(Hooks/HostCompile/Post),$(call $(hook))$(sep)) + touch $$@ + + $(call Host/Exports,$(HOST_STAMP_INSTALLED)) + $(HOST_STAMP_INSTALLED): $(HOST_STAMP_BUILT) $(if $(FORCE_HOST_INSTALL),FORCE) + $(call Host/Install,$(HOST_BUILD_PREFIX)) + $(foreach hook,$(Hooks/HostInstall/Post),$(call $(hook))$(sep)) + mkdir -p $$(shell dirname $$@) + touch $(HOST_STAMP_BUILT) + touch $$@ + + $(call DefaultTargets,$(patsubst %,host-%,$(DEFAULT_SUBDIR_TARGETS))) + ifndef STAMP_BUILT + $(foreach t,$(DEFAULT_SUBDIR_TARGETS), + $(t): host-$(t) + .$(t): .host-$(t) + ) + clean-build: host-clean-build + endif + + $(call check_download_integrity) + + $(_host_target)host-prepare: $(HOST_STAMP_PREPARED) + $(_host_target)host-configure: $(HOST_STAMP_CONFIGURED) + $(_host_target)host-compile: $(HOST_STAMP_BUILT) $(HOST_STAMP_INSTALLED) + host-install: host-compile + + host-clean-build: FORCE + $(call Host/Uninstall) + rm -rf $(HOST_BUILD_DIR) $(HOST_STAMP_BUILT) + + host-clean: host-clean-build + $(call Host/Clean) + rm -rf $(HOST_STAMP_INSTALLED) + + ifneq ($(CONFIG_AUTOREMOVE),) + host-compile: + $(FIND) $(HOST_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -print0 | \ + $(XARGS) -0 rm -rf + endif + endef +endif + +define HostBuild + $(HostBuild/Core) + $(if $(if $(PKG_HOST_ONLY),,$(if $(and $(filter host-%,$(MAKECMDGOALS)),$(PKG_SKIP_DOWNLOAD)),,$(STAMP_PREPARED))),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default))) +endef diff --git a/include/image-commands.mk b/include/image-commands.mk new file mode 100644 index 0000000000..402e3d71ed --- /dev/null +++ b/include/image-commands.mk @@ -0,0 +1,592 @@ +# Build commands that can be called from Device/* templates + +IMAGE_KERNEL = $(word 1,$^) +IMAGE_ROOTFS = $(word 2,$^) + +define ModelNameLimit16 +$(shell expr substr "$(word 2, $(subst _, ,$(1)))" 1 16) +endef + +define rootfs_align +$(patsubst %-256k,0x40000,$(patsubst %-128k,0x20000,$(patsubst %-64k,0x10000,$(patsubst squashfs%,0x4,$(patsubst root.%,%,$(1)))))) +endef + + +define Build/append-dtb + cat $(KDIR)/image-$(firstword $(DEVICE_DTS)).dtb >> $@ +endef + +define Build/append-dtb-elf + $(TARGET_CROSS)objcopy \ + --set-section-flags=.appended_dtb=alloc,contents \ + --update-section \ + .appended_dtb=$(KDIR)/image-$(firstword $(DEVICE_DTS)).dtb $@ +endef + +define Build/append-kernel + dd if=$(IMAGE_KERNEL) >> $@ +endef + +define Build/package-kernel-ubifs + mkdir $@.kernelubifs + cp $@ $@.kernelubifs/kernel + $(STAGING_DIR_HOST)/bin/mkfs.ubifs \ + $(KERNEL_UBIFS_OPTS) \ + -r $@.kernelubifs $@ + rm -r $@.kernelubifs +endef + +define Build/append-image + cp "$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1)" "$@.stripmeta" + fwtool -s /dev/null -t "$@.stripmeta" || : + fwtool -i /dev/null -t "$@.stripmeta" || : + dd if="$@.stripmeta" >> "$@" + rm "$@.stripmeta" +endef + +ifdef IB +define Build/append-image-stage + dd if=$(STAGING_DIR_IMAGE)/$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))-$(DEVICE_NAME)-$(1) >> $@ +endef +else +define Build/append-image-stage + cp "$(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1)" "$@.stripmeta" + fwtool -s /dev/null -t "$@.stripmeta" || : + fwtool -i /dev/null -t "$@.stripmeta" || : + dd if="$@.stripmeta" of="$(STAGING_DIR_IMAGE)/$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))-$(DEVICE_NAME)-$(1)" + dd if="$@.stripmeta" >> "$@" + rm "$@.stripmeta" +endef +endif + + +compat_version=$(if $(DEVICE_COMPAT_VERSION),$(DEVICE_COMPAT_VERSION),1.0) +json_quote=$(subst ','\'',$(subst ",\",$(1))) +#")') + +legacy_supported_message=$(SUPPORTED_DEVICES) - Image version mismatch: image $(compat_version), \ + device 1.0. Please wipe config during upgrade (force required) or reinstall. \ + $(if $(DEVICE_COMPAT_MESSAGE),Reason: $(DEVICE_COMPAT_MESSAGE),Please check documentation ...) + +metadata_devices=$(if $(1),$(subst "$(space)","$(comma)",$(strip $(foreach v,$(1),"$(call json_quote,$(v))")))) +metadata_json = \ + '{ $(if $(IMAGE_METADATA),$(IMAGE_METADATA)$(comma)) \ + "metadata_version": "1.1", \ + "compat_version": "$(call json_quote,$(compat_version))", \ + $(if $(DEVICE_COMPAT_MESSAGE),"compat_message": "$(call json_quote,$(DEVICE_COMPAT_MESSAGE))"$(comma)) \ + $(if $(filter-out 1.0,$(compat_version)),"new_supported_devices": \ + [$(call metadata_devices,$(SUPPORTED_DEVICES))]$(comma) \ + "supported_devices": ["$(call json_quote,$(legacy_supported_message))"]$(comma)) \ + $(if $(filter 1.0,$(compat_version)),"supported_devices":[$(call metadata_devices,$(SUPPORTED_DEVICES))]$(comma)) \ + "version": { \ + "dist": "$(call json_quote,$(VERSION_DIST))", \ + "version": "$(call json_quote,$(VERSION_NUMBER))", \ + "revision": "$(call json_quote,$(REVISION))", \ + "target": "$(call json_quote,$(TARGETID))", \ + "board": "$(call json_quote,$(if $(BOARD_NAME),$(BOARD_NAME),$(DEVICE_NAME)))" \ + } \ + }' + +define Build/append-metadata + $(if $(SUPPORTED_DEVICES),-echo $(call metadata_json) | fwtool -I - $@) + sha256sum "$@" | cut -d" " -f1 > "$@.sha256sum" + [ ! -s "$(BUILD_KEY)" -o ! -s "$(BUILD_KEY).ucert" -o ! -s "$@" ] || { \ + cp "$(BUILD_KEY).ucert" "$@.ucert" ;\ + usign -S -m "$@" -s "$(BUILD_KEY)" -x "$@.sig" ;\ + ucert -A -c "$@.ucert" -x "$@.sig" ;\ + fwtool -S "$@.ucert" "$@" ;\ + } +endef + +define Build/append-rootfs + dd if=$(IMAGE_ROOTFS) >> $@ +endef + +define Build/append-squashfs-fakeroot-be + rm -rf $@.fakefs $@.fakesquashfs + mkdir $@.fakefs + $(STAGING_DIR_HOST)/bin/mksquashfs-lzma \ + $@.fakefs $@.fakesquashfs \ + -noappend -root-owned -be -nopad -b 65536 \ + $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH)) + cat $@.fakesquashfs >> $@ +endef + +define Build/append-squashfs4-fakeroot + rm -rf $@.fakefs $@.fakesquashfs + mkdir $@.fakefs + $(STAGING_DIR_HOST)/bin/mksquashfs4 \ + $@.fakefs $@.fakesquashfs \ + -nopad -noappend -root-owned + cat $@.fakesquashfs >> $@ +endef + +define Build/append-string + echo -n $(1) >> $@ +endef + +define Build/append-ubi + sh $(TOPDIR)/scripts/ubinize-image.sh \ + $(if $(UBOOTENV_IN_UBI),--uboot-env) \ + $(if $(KERNEL_IN_UBI),--kernel $(IMAGE_KERNEL)) \ + $(foreach part,$(UBINIZE_PARTS),--part $(part)) \ + --rootfs $(IMAGE_ROOTFS) \ + $@.tmp \ + -p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \ + $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \ + $(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \ + $(UBINIZE_OPTS) + cat $@.tmp >> $@ + rm $@.tmp +endef + +define Build/ubinize-kernel + cp $@ $@.tmp + sh $(TOPDIR)/scripts/ubinize-image.sh \ + --kernel $@.tmp \ + $@ \ + -p $(BLOCKSIZE:%k=%KiB) -m $(PAGESIZE) \ + $(if $(SUBPAGESIZE),-s $(SUBPAGESIZE)) \ + $(if $(VID_HDR_OFFSET),-O $(VID_HDR_OFFSET)) \ + $(UBINIZE_OPTS) + rm $@.tmp +endef + +define Build/append-uboot + dd if=$(UBOOT_PATH) >> $@ +endef + +# append a fake/empty uImage header, to fool bootloaders rootfs integrity check +# for example +define Build/append-uImage-fakehdr + $(eval type=$(word 1,$(1))) + $(eval magic=$(word 2,$(1))) + touch $@.fakehdr + $(STAGING_DIR_HOST)/bin/mkimage \ + -A $(LINUX_KARCH) -O linux -T $(type) -C none \ + -n '$(VERSION_DIST) fake $(type)' \ + $(if $(magic),-M $(magic)) \ + -d $@.fakehdr \ + -s \ + $@.fakehdr + cat $@.fakehdr >> $@ +endef + +define Build/buffalo-dhp-image + $(STAGING_DIR_HOST)/bin/mkdhpimg $@ $@.new + mv $@.new $@ +endef + +define Build/buffalo-enc + $(eval product=$(word 1,$(1))) + $(eval version=$(word 2,$(1))) + $(eval args=$(wordlist 3,$(words $(1)),$(1))) + $(STAGING_DIR_HOST)/bin/buffalo-enc \ + -p $(product) -v $(version) $(args) \ + -i $@ -o $@.new + mv $@.new $@ +endef + +define Build/buffalo-enc-tag + $(call Build/buffalo-enc,'' '' -S 152 $(1)) +endef + +define Build/buffalo-tag-dhp + $(eval product=$(word 1,$(1))) + $(eval region=$(word 2,$(1))) + $(eval language=$(word 3,$(1))) + $(STAGING_DIR_HOST)/bin/buffalo-tag \ + -d 0x01000000 -w 1 \ + -a $(BUFFALO_TAG_PLATFORM) \ + -v $(BUFFALO_TAG_VERSION) -m $(BUFFALO_TAG_MINOR) \ + -b $(product) -p $(product) \ + -r $(region) -r $(region) -l $(language) \ + -I $@ -o $@.new + mv $@.new $@ +endef + +define Build/check-size + @imagesize="$$(stat -c%s $@)"; \ + limitsize="$$(($(subst k,* 1024,$(subst m, * 1024k,$(if $(1),$(1),$(IMAGE_SIZE))))))"; \ + [ $$limitsize -ge $$imagesize ] || { \ + $(call ERROR_MESSAGE, WARNING: Image file $@ is too big: $$imagesize > $$limitsize); \ + rm -f $@; \ + } +endef + +define Build/copy-file + cat "$(1)" > "$@" +endef + +define Build/elecom-product-header + $(eval product=$(word 1,$(1))) + $(eval fw=$(if $(word 2,$(1)),$(word 2,$(1)),$@)) + + ( \ + echo -n -e "ELECOM\x00\x00$(product)" | dd bs=40 count=1 conv=sync; \ + echo -n "0.00" | dd bs=16 count=1 conv=sync; \ + dd if=$(fw); \ + ) > $(fw).new + mv $(fw).new $(fw) +endef + +define Build/elecom-wrc-gs-factory + $(eval product=$(word 1,$(1))) + $(eval version=$(word 2,$(1))) + $(eval hash_opt=$(word 3,$(1))) + $(MKHASH) md5 $(hash_opt) $@ >> $@ + ( \ + echo -n "ELECOM $(product) v$(version)" | \ + dd bs=32 count=1 conv=sync; \ + dd if=$@; \ + ) > $@.new + mv $@.new $@ +endef + +define Build/elx-header + $(eval hw_id=$(word 1,$(1))) + $(eval xor_pattern=$(word 2,$(1))) + ( \ + echo -ne "\x00\x00\x00\x00\x00\x00\x00\x03" | \ + dd bs=42 count=1 conv=sync; \ + hw_id="$(hw_id)"; \ + echo -ne "\x$${hw_id:0:2}\x$${hw_id:2:2}\x$${hw_id:4:2}\x$${hw_id:6:2}" | \ + dd bs=20 count=1 conv=sync; \ + echo -ne "$$(printf '%08x' $$(stat -c%s $@) | fold -s2 | xargs -I {} echo \\x{} | tr -d '\n')" | \ + dd bs=8 count=1 conv=sync; \ + echo -ne "$$($(MKHASH) md5 $@ | fold -s2 | xargs -I {} echo \\x{} | tr -d '\n')" | \ + dd bs=58 count=1 conv=sync; \ + ) > $(KDIR)/tmp/$(DEVICE_NAME).header + $(call Build/xor-image,-p $(xor_pattern) -x) + cat $(KDIR)/tmp/$(DEVICE_NAME).header $@ > $@.new + mv $@.new $@ + rm -rf $(KDIR)/tmp/$(DEVICE_NAME).header +endef + +define Build/eva-image + $(STAGING_DIR_HOST)/bin/lzma2eva $(KERNEL_LOADADDR) $(KERNEL_LOADADDR) $@ $@.new + mv $@.new $@ +endef + +define Build/initrd_compression + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2),.bzip2) \ + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP),.gzip) \ + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA),.lzma) \ + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),.xz) \ + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),.zstd) +endef + +define Build/fit + $(TOPDIR)/scripts/mkits.sh \ + -D $(DEVICE_NAME) -o $@.its -k $@ \ + -C $(word 1,$(1)) $(if $(word 2,$(1)),\ + $(if $(DEVICE_DTS_OVERLAY),-d $(KERNEL_BUILD_DIR)/image-$$(basename $(word 2,$(1))),\ + -d $(word 2,$(1)))) \ + $(if $(findstring with-rootfs,$(word 3,$(1))),-r $(IMAGE_ROOTFS)) \ + $(if $(findstring with-initrd,$(word 3,$(1))), \ + $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE), \ + -i $(KERNEL_BUILD_DIR)/initrd.cpio$(strip $(call Build/initrd_compression)))) \ + -a $(KERNEL_LOADADDR) -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + $(if $(DEVICE_FDT_NUM),-n $(DEVICE_FDT_NUM)) \ + $(if $(DEVICE_DTS_DELIMITER),-l $(DEVICE_DTS_DELIMITER)) \ + $(if $(DEVICE_DTS_OVERLAY),$(foreach dtso,$(DEVICE_DTS_OVERLAY), -O $(dtso):$(KERNEL_BUILD_DIR)/image-$(dtso).dtb)) \ + -c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config-1") \ + -A $(LINUX_KARCH) -v $(LINUX_VERSION) + PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage $(if $(findstring external,$(word 3,$(1))),\ + -E -B 0x1000 $(if $(findstring static,$(word 3,$(1))),-p 0x1000)) -f $@.its $@.new + @mv $@.new $@ +endef + +define Build/gzip + gzip -f -9n -c $@ $(1) > $@.new + @mv $@.new $@ +endef + +define Build/install-dtb + $(call locked, \ + $(foreach dts,$(DEVICE_DTS), \ + $(CP) \ + $(DTS_DIR)/$(dts).dtb \ + $(BIN_DIR)/$(IMG_PREFIX)-$(dts).dtb; \ + ), \ + install-dtb-$(IMG_PREFIX) \ + ) +endef + +define Build/iptime-crc32 + $(STAGING_DIR_HOST)/bin/iptime-crc32 $(1) $@ $@.new + mv $@.new $@ +endef + +define Build/iptime-naspkg + $(STAGING_DIR_HOST)/bin/iptime-naspkg $(1) $@ $@.new + mv $@.new $@ +endef + +define Build/jffs2 + rm -rf $(KDIR_TMP)/$(DEVICE_NAME)/jffs2 && \ + mkdir -p $(KDIR_TMP)/$(DEVICE_NAME)/jffs2/$$(dirname $(1)) && \ + cp $@ $(KDIR_TMP)/$(DEVICE_NAME)/jffs2/$(1) && \ + $(STAGING_DIR_HOST)/bin/mkfs.jffs2 --pad \ + $(if $(CONFIG_BIG_ENDIAN),--big-endian,--little-endian) \ + --squash-uids -v -e $(patsubst %k,%KiB,$(BLOCKSIZE)) \ + -o $@.new \ + -d $(KDIR_TMP)/$(DEVICE_NAME)/jffs2 \ + 2>&1 1>/dev/null | awk '/^.+$$$$/' && \ + $(STAGING_DIR_HOST)/bin/padjffs2 $@.new -J $(patsubst %k,,$(BLOCKSIZE)) + -rm -rf $(KDIR_TMP)/$(DEVICE_NAME)/jffs2/ + @mv $@.new $@ +endef + +define Build/kernel2minor + $(eval temp_file := $(shell mktemp)) + cp $@ $(temp_file) + kernel2minor -k $(temp_file) -r $(temp_file).new $(1) + mv $(temp_file).new $@ + rm -f $(temp_file) +endef + +define Build/kernel-bin + rm -f $@ + cp $< $@ +endef + +define Build/linksys-image + $(TOPDIR)/scripts/linksys-image.sh \ + "$(call param_get_default,type,$(1),$(DEVICE_NAME))" \ + $@ $@.new + mv $@.new $@ +endef + +define Build/lzma + $(call Build/lzma-no-dict,-lc1 -lp2 -pb2 $(1)) +endef + +define Build/lzma-no-dict + $(STAGING_DIR_HOST)/bin/lzma e $@ $(1) $@.new + @mv $@.new $@ +endef + +define Build/netgear-chk + $(STAGING_DIR_HOST)/bin/mkchkimg \ + -o $@.new \ + -k $@ \ + -b $(NETGEAR_BOARD_ID) \ + $(if $(NETGEAR_REGION),-r $(NETGEAR_REGION),) + mv $@.new $@ +endef + +define Build/netgear-dni + $(STAGING_DIR_HOST)/bin/mkdniimg \ + -B $(NETGEAR_BOARD_ID) -v $(VERSION_DIST).$(firstword $(subst -, ,$(REVISION))) \ + $(if $(NETGEAR_HW_ID),-H $(NETGEAR_HW_ID)) \ + -r "$(1)" \ + -i $@ -o $@.new + mv $@.new $@ +endef + +define Build/netgear-encrypted-factory + $(TOPDIR)/scripts/netgear-encrypted-factory.py \ + --input-file $@ \ + --output-file $@ \ + --model $(NETGEAR_ENC_MODEL) \ + --region $(NETGEAR_ENC_REGION) \ + --version V1.0.0.0.$(VERSION_DIST).$(firstword $(subst -, ,$(REVISION))) \ + --encryption-block-size 0x20000 \ + --openssl-bin "$(STAGING_DIR_HOST)/bin/openssl" \ + --key 6865392d342b4d212964363d6d7e7765312c7132613364316e26322a5a5e2538 \ + --iv 4a253169516c38243d6c6d2d3b384145 +endef + +define Build/openmesh-image + $(TOPDIR)/scripts/om-fwupgradecfg-gen.sh \ + "$(call param_get_default,ce_type,$(1),$(DEVICE_NAME))" \ + "$@-fwupgrade.cfg" \ + "$(call param_get_default,kernel,$(1),$(IMAGE_KERNEL))" \ + "$(call param_get_default,rootfs,$(1),$@)" + $(TOPDIR)/scripts/combined-ext-image.sh \ + "$(call param_get_default,ce_type,$(1),$(DEVICE_NAME))" "$@" \ + "$@-fwupgrade.cfg" "fwupgrade.cfg" \ + "$(call param_get_default,kernel,$(1),$(IMAGE_KERNEL))" "kernel" \ + "$(call param_get_default,rootfs,$(1),$@)" "rootfs" +endef + +define Build/pad-extra + dd if=/dev/zero bs=$(1) count=1 >> $@ +endef + +define Build/pad-offset + let \ + size="$$(stat -c%s $@)" \ + pad="$(subst k,* 1024,$(word 1, $(1)))" \ + offset="$(subst k,* 1024,$(word 2, $(1)))" \ + pad="(pad - ((size + offset) % pad)) % pad" \ + newsize='size + pad'; \ + dd if=$@ of=$@.new bs=$$newsize count=1 conv=sync + mv $@.new $@ +endef + +define Build/pad-rootfs + $(STAGING_DIR_HOST)/bin/padjffs2 $@ $(1) \ + $(if $(BLOCKSIZE),$(BLOCKSIZE:%k=%),4 8 16 64 128 256) +endef + +define Build/pad-to + $(call Image/pad-to,$@,$(1)) +endef + +define Build/patch-cmdline + $(STAGING_DIR_HOST)/bin/patch-cmdline $@ '$(CMDLINE)' +endef + +# Convert a raw image into a $1 type image. +# E.g. | qemu-image vdi +define Build/qemu-image + if command -v qemu-img; then \ + qemu-img convert -f raw -O $1 $@ $@.new; \ + mv $@.new $@; \ + else \ + echo "WARNING: Install qemu-img to create VDI/VMDK images" >&2; exit 1; \ + fi +endef + +define Build/qsdk-ipq-factory-nand + $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \ + $@.its ubi $@ + PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new + @mv $@.new $@ +endef + +define Build/qsdk-ipq-factory-nor + $(TOPDIR)/scripts/mkits-qsdk-ipq-image.sh \ + $@.its hlos $(IMAGE_KERNEL) rootfs $(IMAGE_ROOTFS) + PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $@.its $@.new + @mv $@.new $@ +endef + +define Build/seama + $(STAGING_DIR_HOST)/bin/seama -i $@ \ + -m "dev=/dev/mtdblock/$(SEAMA_MTDBLOCK)" -m "type=firmware" + mv $@.seama $@ +endef + +define Build/seama-seal + $(STAGING_DIR_HOST)/bin/seama -i $@ -s $@.seama \ + -m "signature=$(SEAMA_SIGNATURE)" + mv $@.seama $@ +endef + +define Build/senao-header + $(STAGING_DIR_HOST)/bin/mksenaofw $(1) -e $@ -o $@.new + mv $@.new $@ +endef + +define Build/sysupgrade-tar + sh $(TOPDIR)/scripts/sysupgrade-tar.sh \ + --board $(if $(BOARD_NAME),$(BOARD_NAME),$(DEVICE_NAME)) \ + --kernel $(call param_get_default,kernel,$(1),$(IMAGE_KERNEL)) \ + --rootfs $(call param_get_default,rootfs,$(1),$(IMAGE_ROOTFS)) \ + $@ +endef + +define Build/tplink-safeloader + -$(STAGING_DIR_HOST)/bin/tplink-safeloader \ + -B $(TPLINK_BOARD_ID) \ + -V $(REVISION) \ + -k $(IMAGE_KERNEL) \ + -r $@ \ + -o $@.new \ + -j \ + $(wordlist 2,$(words $(1)),$(1)) \ + $(if $(findstring sysupgrade,$(word 1,$(1))),-S) && mv $@.new $@ || rm -f $@ +endef + +define Build/tplink-v1-header + $(STAGING_DIR_HOST)/bin/mktplinkfw \ + -c -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -L $(KERNEL_LOADADDR) \ + -E $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + -m $(TPLINK_HEADER_VERSION) -N "$(VERSION_DIST)" -V $(REVISION) \ + -k $@ -o $@.new $(1) + @mv $@.new $@ +endef + +# combine kernel and rootfs into one image +# mktplinkfw +# is "sysupgrade" or "factory" +# +# -a align the rootfs start on an bytes boundary +# -j add jffs2 end-of-filesystem markers +# -s strip padding from end of the image +# -X reserve bytes in the firmware image (hexval prefixed with 0x) +define Build/tplink-v1-image + -$(STAGING_DIR_HOST)/bin/mktplinkfw \ + -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -F $(TPLINK_FLASHLAYOUT) \ + -N "$(VERSION_DIST)" -V $(REVISION) -m $(TPLINK_HEADER_VERSION) \ + -k $(IMAGE_KERNEL) -r $(IMAGE_ROOTFS) -o $@.new -j -X 0x40000 \ + -a $(call rootfs_align,$(FILESYSTEM)) \ + $(wordlist 2,$(words $(1)),$(1)) \ + $(if $(findstring sysupgrade,$(word 1,$(1))),-s) && mv $@.new $@ || rm -f $@ +endef + +define Build/tplink-v2-header + $(STAGING_DIR_HOST)/bin/mktplinkfw2 \ + -c -H $(TPLINK_HWID) -W $(TPLINK_HWREV) -L $(KERNEL_LOADADDR) \ + -E $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + -w $(TPLINK_HWREVADD) -F "$(TPLINK_FLASHLAYOUT)" \ + -T $(TPLINK_HVERSION) -V "ver. 2.0" \ + -k $@ -o $@.new $(1) + @mv $@.new $@ +endef + +define Build/tplink-v2-image + $(STAGING_DIR_HOST)/bin/mktplinkfw2 \ + -H $(TPLINK_HWID) -W $(TPLINK_HWREV) \ + -w $(TPLINK_HWREVADD) -F "$(TPLINK_FLASHLAYOUT)" \ + -T $(TPLINK_HVERSION) -V "ver. 2.0" -a 0x4 -j \ + -k $(IMAGE_KERNEL) -r $(IMAGE_ROOTFS) -o $@.new $(1) + cat $@.new >> $@ + rm -rf $@.new +endef + +define Build/uImage + mkimage \ + -A $(LINUX_KARCH) \ + -O linux \ + -T kernel \ + -C $(word 1,$(1)) \ + -a $(KERNEL_LOADADDR) \ + -e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \ + -n '$(if $(UIMAGE_NAME),$(UIMAGE_NAME),$(call toupper,$(LINUX_KARCH)) $(VERSION_DIST) Linux-$(LINUX_VERSION))' \ + $(if $(UIMAGE_MAGIC),-M $(UIMAGE_MAGIC)) \ + $(wordlist 2,$(words $(1)),$(1)) \ + -d $@ $@.new + mv $@.new $@ +endef + +define Build/xor-image + $(STAGING_DIR_HOST)/bin/xorimage -i $@ -o $@.xor $(1) + mv $@.xor $@ +endef + +define Build/zip + rm -rf $@.tmp + mkdir $@.tmp + mv $@ $@.tmp/$(word 1,$(1)) + TZ=UTC $(STAGING_DIR_HOST)/bin/zip -j -X \ + $(wordlist 2,$(words $(1)),$(1)) \ + $@ $@.tmp/$(if $(word 1,$(1)),$(word 1,$(1)),$$(basename $@)) + rm -rf $@.tmp +endef + +define Build/zyxel-ras-image + let \ + newsize="$(subst k,* 1024,$(RAS_ROOTFS_SIZE))"; \ + $(STAGING_DIR_HOST)/bin/mkrasimage \ + -b $(RAS_BOARD) \ + -v $(RAS_VERSION) \ + -r $@ \ + -s $$newsize \ + -o $@.new \ + $(if $(findstring separate-kernel,$(word 1,$(1))),-k $(IMAGE_KERNEL)) \ + && mv $@.new $@ +endef diff --git a/include/image.mk b/include/image.mk new file mode 100644 index 0000000000..08fbbc529d --- /dev/null +++ b/include/image.mk @@ -0,0 +1,772 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +override TARGET_BUILD= +include $(INCLUDE_DIR)/prereq.mk +include $(INCLUDE_DIR)/kernel.mk +include $(INCLUDE_DIR)/version.mk +include $(INCLUDE_DIR)/image-commands.mk + +ifndef IB + ifdef CONFIG_TARGET_PER_DEVICE_ROOTFS + TARGET_PER_DEVICE_ROOTFS := 1 + endif +endif + +include $(INCLUDE_DIR)/feeds.mk +include $(INCLUDE_DIR)/rootfs.mk + +override MAKE:=$(_SINGLE)$(SUBMAKE) +override NO_TRACE_MAKE:=$(_SINGLE)$(NO_TRACE_MAKE) + +target_params = $(subst +,$(space),$*) +param_get = $(patsubst $(1)=%,%,$(filter $(1)=%,$(2))) +param_get_default = $(firstword $(call param_get,$(1),$(2)) $(3)) +param_mangle = $(subst $(space),_,$(strip $(1))) +param_unmangle = $(subst _,$(space),$(1)) + +mkfs_packages_id = $(shell echo $(sort $(1)) | $(MKHASH) md5 | cut -b1-8) +mkfs_target_dir = $(if $(call param_get,pkg,$(1)),$(KDIR)/target-dir-$(call param_get,pkg,$(1)),$(TARGET_DIR)) + +KDIR=$(KERNEL_BUILD_DIR) +KDIR_TMP=$(KDIR)/tmp +DTS_DIR:=$(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/dts + +IMG_PREFIX_EXTRA:=$(if $(EXTRA_IMAGE_NAME),$(call sanitize,$(EXTRA_IMAGE_NAME))-) +IMG_PREFIX_VERNUM:=$(if $(CONFIG_VERSION_FILENAMES),$(call sanitize,$(VERSION_NUMBER))-) +IMG_PREFIX_VERCODE:=$(if $(CONFIG_VERSION_CODE_FILENAMES),$(call sanitize,$(VERSION_CODE))-) + +IMG_PREFIX:=$(VERSION_DIST_SANITIZED)-$(IMG_PREFIX_VERNUM)$(IMG_PREFIX_VERCODE)$(IMG_PREFIX_EXTRA)$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET)) +IMG_ROOTFS:=$(IMG_PREFIX)-rootfs +IMG_COMBINED:=$(IMG_PREFIX)-combined +IMG_PART_SIGNATURE:=$(shell echo $(SOURCE_DATE_EPOCH)$(LINUX_VERMAGIC) | $(MKHASH) md5 | cut -b1-8) +IMG_PART_DISKGUID:=$(shell echo $(SOURCE_DATE_EPOCH)$(LINUX_VERMAGIC) | $(MKHASH) md5 | sed -E 's/(.{8})(.{4})(.{4})(.{4})(.{10})../\1-\2-\3-\4-\500/') + +MKFS_DEVTABLE_OPT := -D $(INCLUDE_DIR)/device_table.txt + +ifneq ($(CONFIG_BIG_ENDIAN),) + JFFS2OPTS := --big-endian --squash-uids -v +else + JFFS2OPTS := --little-endian --squash-uids -v +endif + +ifeq ($(CONFIG_JFFS2_RTIME),y) + JFFS2OPTS += -X rtime +endif +ifeq ($(CONFIG_JFFS2_ZLIB),y) + JFFS2OPTS += -X zlib +endif +ifeq ($(CONFIG_JFFS2_LZMA),y) + JFFS2OPTS += -X lzma --compression-mode=size +endif +ifneq ($(CONFIG_JFFS2_RTIME),y) + JFFS2OPTS += -x rtime +endif +ifneq ($(CONFIG_JFFS2_ZLIB),y) + JFFS2OPTS += -x zlib +endif +ifneq ($(CONFIG_JFFS2_LZMA),y) + JFFS2OPTS += -x lzma +endif + +JFFS2OPTS += $(MKFS_DEVTABLE_OPT) + +SQUASHFS_BLOCKSIZE := $(CONFIG_TARGET_SQUASHFS_BLOCK_SIZE)k +SQUASHFSOPT := -b $(SQUASHFS_BLOCKSIZE) +SQUASHFSOPT += -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' +SQUASHFSCOMP := gzip +LZMA_XZ_OPTIONS := -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 +ifeq ($(CONFIG_SQUASHFS_XZ),y) + ifneq ($(filter arm x86 powerpc sparc,$(LINUX_KARCH)),) + BCJ_FILTER:=-Xbcj $(LINUX_KARCH) + endif + SQUASHFSCOMP := xz $(LZMA_XZ_OPTIONS) $(BCJ_FILTER) +endif + +JFFS2_BLOCKSIZE ?= 64k 128k + +fs-types-$(CONFIG_TARGET_ROOTFS_SQUASHFS) += squashfs +fs-types-$(CONFIG_TARGET_ROOTFS_JFFS2) += $(addprefix jffs2-,$(JFFS2_BLOCKSIZE)) +fs-types-$(CONFIG_TARGET_ROOTFS_JFFS2_NAND) += $(addprefix jffs2-nand-,$(NAND_BLOCKSIZE)) +fs-types-$(CONFIG_TARGET_ROOTFS_EXT4FS) += ext4 +fs-types-$(CONFIG_TARGET_ROOTFS_UBIFS) += ubifs +fs-subtypes-$(CONFIG_TARGET_ROOTFS_JFFS2) += $(addsuffix -raw,$(addprefix jffs2-,$(JFFS2_BLOCKSIZE))) + +TARGET_FILESYSTEMS := $(fs-types-y) + +FS_64K := $(filter-out jffs2-%,$(TARGET_FILESYSTEMS)) jffs2-64k +FS_128K := $(filter-out jffs2-%,$(TARGET_FILESYSTEMS)) jffs2-128k +FS_256K := $(filter-out jffs2-%,$(TARGET_FILESYSTEMS)) jffs2-256k + +define add_jffs2_mark + echo -ne '\xde\xad\xc0\xde' >> $(1) +endef + +PROFILE_SANITIZED := $(call tolower,$(subst DEVICE_,,$(subst $(space),-,$(PROFILE)))) + +define split_args +$(foreach data, \ + $(subst |,$(space),\ + $(subst $(space),^,$(1))), \ + $(call $(2),$(strip $(subst ^,$(space),$(data))))) +endef + +define build_cmd +$(if $(Build/$(word 1,$(1))),,$(error Missing Build/$(word 1,$(1)))) +$(call Build/$(word 1,$(1)),$(wordlist 2,$(words $(1)),$(1))) + +endef + +define concat_cmd +$(call split_args,$(1),build_cmd) +endef + +# pad to 4k, 8k, 16k, 64k, 128k, 256k and add jffs2 end-of-filesystem mark +define prepare_generic_squashfs + $(STAGING_DIR_HOST)/bin/padjffs2 $(1) 4 8 16 64 128 256 +endef + +define Image/BuildKernel/Initramfs + $(call Image/Build/Initramfs) +endef + +define Image/BuildKernel/MkuImage + mkimage -A $(ARCH) -O linux -T kernel -C $(1) -a $(2) -e $(3) \ + -n '$(call toupper,$(ARCH)) $(VERSION_DIST) Linux-$(LINUX_VERSION)' -d $(4) $(5) +endef + +define Image/BuildKernel/MkFIT + $(TOPDIR)/scripts/mkits.sh \ + -D $(1) -o $(KDIR)/fit-$(1).its -k $(2) $(if $(3),-d $(3)) -C $(4) -a $(5) -e $(6) \ + -c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config-1") \ + -A $(LINUX_KARCH) -v $(LINUX_VERSION) + PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/fit-$(1).its $(KDIR)/fit-$(1)$(7).itb +endef + +ifdef CONFIG_TARGET_IMAGES_GZIP + define Image/Gzip + rm -f $(1).gz + gzip -9n $(1) + endef +endif + + +# Disable noisy checks by default as in upstream +DTC_FLAGS += \ + -Wno-unit_address_vs_reg \ + -Wno-simple_bus_reg \ + -Wno-unit_address_format \ + -Wno-pci_bridge \ + -Wno-pci_device_bus_num \ + -Wno-pci_device_reg \ + -Wno-avoid_unnecessary_addr_size \ + -Wno-alias_paths \ + -Wno-graph_child_address \ + -Wno-graph_port \ + -Wno-unique_unit_address + +define Image/pad-to + dd if=$(1) of=$(1).new bs=$(2) conv=sync + mv $(1).new $(1) +endef + +ROOTFS_PARTSIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024))) + +define Image/pad-root-squashfs + $(call Image/pad-to,$(KDIR)/root.squashfs,$(if $(1),$(1),$(ROOTFS_PARTSIZE))) +endef + +# $(1) source dts file +# $(2) target dtb file +# $(3) extra CPP flags +# $(4) extra DTC flags +define Image/BuildDTB + $(TARGET_CROSS)cpp -nostdinc -x assembler-with-cpp \ + -I$(DTS_DIR) \ + -I$(DTS_DIR)/include \ + -I$(LINUX_DIR)/include/ \ + -undef -D__DTS__ $(3) \ + -o $(2).tmp $(1) + $(LINUX_DIR)/scripts/dtc/dtc -O dtb \ + -i$(dir $(1)) $(DTC_FLAGS) $(4) \ + $(if $(CONFIG_HAS_DT_OVERLAY_SUPPORT),-@) \ + -o $(2) $(2).tmp + $(RM) $(2).tmp +endef + +define Image/mkfs/jffs2/sub-raw + $(STAGING_DIR_HOST)/bin/mkfs.jffs2 \ + $(2) \ + -e $(patsubst %k,%KiB,$(1)) \ + -o $@ -d $(call mkfs_target_dir,$(3)) \ + -v 2>&1 1>/dev/null | awk '/^.+$$$$/' +endef + +define Image/mkfs/jffs2/sub + $(call Image/mkfs/jffs2/sub-raw,$(1),--pad $(2),$(3)) + $(call add_jffs2_mark,$@) +endef + +define Image/mkfs/jffs2/template + Image/mkfs/jffs2-$(1) = $$(call Image/mkfs/jffs2/sub,$(1),$(JFFS2OPTS),$$(1)) + Image/mkfs/jffs2-$(1)-raw = $$(call Image/mkfs/jffs2/sub-raw,$(1),$(JFFS2OPTS),$$(1)) + +endef + +define Image/mkfs/jffs2-nand/template + Image/mkfs/jffs2-nand-$(1) = \ + $$(call Image/mkfs/jffs2/sub, \ + $(word 2,$(subst -, ,$(1))), \ + $(JFFS2OPTS) --no-cleanmarkers --pagesize=$(word 1,$(subst -, ,$(1))),$$(1)) + +endef + +$(eval $(foreach S,$(JFFS2_BLOCKSIZE),$(call Image/mkfs/jffs2/template,$(S)))) +$(eval $(foreach S,$(NAND_BLOCKSIZE),$(call Image/mkfs/jffs2-nand/template,$(S)))) + +define Image/mkfs/squashfs-common + $(STAGING_DIR_HOST)/bin/mksquashfs4 $(call mkfs_target_dir,$(1)) $@ \ + -nopad -noappend -root-owned \ + -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) +endef + +define Image/mkfs/squashfs + $(call Image/mkfs/squashfs-common,$(1)) +endef + +define Image/mkfs/ubifs + $(STAGING_DIR_HOST)/bin/mkfs.ubifs \ + $(UBIFS_OPTS) $(call param_unmangle,$(call param_get,fs,$(1))) \ + $(if $(CONFIG_TARGET_UBIFS_FREE_SPACE_FIXUP),--space-fixup) \ + $(if $(CONFIG_TARGET_UBIFS_COMPRESSION_NONE),--compr=none) \ + $(if $(CONFIG_TARGET_UBIFS_COMPRESSION_LZO),--compr=lzo) \ + $(if $(CONFIG_TARGET_UBIFS_COMPRESSION_ZLIB),--compr=zlib) \ + $(if $(shell echo $(CONFIG_TARGET_UBIFS_JOURNAL_SIZE)),--jrn-size=$(CONFIG_TARGET_UBIFS_JOURNAL_SIZE)) \ + --squash-uids \ + -o $@ -d $(call mkfs_target_dir,$(1)) +endef + +define Image/mkfs/ext4 + $(STAGING_DIR_HOST)/bin/make_ext4fs -L rootfs \ + -l $(ROOTFS_PARTSIZE) -b $(CONFIG_TARGET_EXT4_BLOCKSIZE) \ + $(if $(CONFIG_TARGET_EXT4_RESERVED_PCT),-m $(CONFIG_TARGET_EXT4_RESERVED_PCT)) \ + $(if $(CONFIG_TARGET_EXT4_JOURNAL),,-J) \ + $(if $(SOURCE_DATE_EPOCH),-T $(SOURCE_DATE_EPOCH)) \ + $@ $(call mkfs_target_dir,$(1))/ +endef + +define Image/Manifest + $(call opkg,$(TARGET_DIR_ORIG)) list-installed > \ + $(BIN_DIR)/$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED)).manifest +endef + +define Image/gzip-ext4-padded-squashfs + + define Image/Build/squashfs + $(call Image/pad-root-squashfs) + endef + + ifneq ($(CONFIG_TARGET_IMAGES_GZIP),) + define Image/Build/gzip/ext4 + $(call Image/Build/gzip,ext4) + endef + define Image/Build/gzip/squashfs + $(call Image/Build/gzip,squashfs) + endef + endif + +endef + +ifdef CONFIG_TARGET_ROOTFS_TARGZ + define Image/Build/targz + $(TAR) -cp --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name \ + $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \ + -C $(TARGET_DIR)/ . | gzip -9n > $(BIN_DIR)/$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz + endef +endif + +ifdef CONFIG_TARGET_ROOTFS_CPIOGZ + define Image/Build/cpiogz + ( cd $(TARGET_DIR); find . | $(STAGING_DIR_HOST)/bin/cpio -o -H newc -R 0:0 | gzip -9n >$(BIN_DIR)/$(IMG_ROOTFS).cpio.gz ) + endef +endif + +mkfs_packages = $(filter-out @%,$(PACKAGES_$(call param_get,pkg,pkg=$(target_params)))) +mkfs_packages_add = $(foreach pkg,$(filter-out -%,$(mkfs_packages)),$(pkg)$(call GetABISuffix,$(pkg))) +mkfs_packages_remove = $(foreach pkg,$(patsubst -%,%,$(filter -%,$(mkfs_packages))),$(pkg)$(call GetABISuffix,$(pkg))) +mkfs_cur_target_dir = $(call mkfs_target_dir,pkg=$(target_params)) + +opkg_target = \ + $(call opkg,$(mkfs_cur_target_dir)) \ + -f $(mkfs_cur_target_dir).conf + +target-dir-%: FORCE + rm -rf $(mkfs_cur_target_dir) $(mkfs_cur_target_dir).opkg + $(CP) $(TARGET_DIR_ORIG) $(mkfs_cur_target_dir) + -mv $(mkfs_cur_target_dir)/etc/opkg $(mkfs_cur_target_dir).opkg + echo 'src default file://$(PACKAGE_DIR_ALL)' > $(mkfs_cur_target_dir).conf + $(if $(mkfs_packages_remove), \ + -$(call opkg,$(mkfs_cur_target_dir)) remove \ + $(mkfs_packages_remove)) + $(if $(call opkg_package_files,$(mkfs_packages_add)), \ + $(opkg_target) update && \ + $(opkg_target) install \ + $(call opkg_package_files,$(mkfs_packages_add))) + -$(CP) -T $(mkfs_cur_target_dir).opkg/ $(mkfs_cur_target_dir)/etc/opkg/ + rm -rf $(mkfs_cur_target_dir).opkg $(mkfs_cur_target_dir).conf + $(call prepare_rootfs,$(mkfs_cur_target_dir),$(TOPDIR)/files) + +$(KDIR)/root.%: kernel_prepare + $(call Image/mkfs/$(word 1,$(target_params)),$(target_params)) + +define Device/InitProfile + PROFILES := $(PROFILE) + DEVICE_TITLE = $$(DEVICE_VENDOR) $$(DEVICE_MODEL)$$(if $$(DEVICE_VARIANT), $$(DEVICE_VARIANT)) + DEVICE_ALT0_TITLE = $$(DEVICE_ALT0_VENDOR) $$(DEVICE_ALT0_MODEL)$$(if $$(DEVICE_ALT0_VARIANT), $$(DEVICE_ALT0_VARIANT)) + DEVICE_ALT1_TITLE = $$(DEVICE_ALT1_VENDOR) $$(DEVICE_ALT1_MODEL)$$(if $$(DEVICE_ALT1_VARIANT), $$(DEVICE_ALT1_VARIANT)) + DEVICE_ALT2_TITLE = $$(DEVICE_ALT2_VENDOR) $$(DEVICE_ALT2_MODEL)$$(if $$(DEVICE_ALT2_VARIANT), $$(DEVICE_ALT2_VARIANT)) + DEVICE_VENDOR := + DEVICE_MODEL := + DEVICE_VARIANT := + DEVICE_ALT0_VENDOR := + DEVICE_ALT0_MODEL := + DEVICE_ALT0_VARIANT := + DEVICE_ALT1_VENDOR := + DEVICE_ALT1_MODEL := + DEVICE_ALT1_VARIANT := + DEVICE_ALT2_VENDOR := + DEVICE_ALT2_MODEL := + DEVICE_ALT2_VARIANT := + DEVICE_PACKAGES := + DEVICE_DESCRIPTION = Build firmware images for $$(DEVICE_TITLE) +endef + +define Device/Init + DEVICE_NAME := $(1) + KERNEL:= + KERNEL_INITRAMFS = $$(KERNEL) + CMDLINE:= + + IMAGES := + ARTIFACTS := + DEVICE_IMG_PREFIX := $(IMG_PREFIX)-$(1) + DEVICE_IMG_NAME = $$(DEVICE_IMG_PREFIX)-$$(1)-$$(2) + IMAGE_SIZE := + KERNEL_PREFIX = $$(DEVICE_IMG_PREFIX) + KERNEL_SUFFIX := -kernel.bin + KERNEL_INITRAMFS_SUFFIX = $$(KERNEL_SUFFIX) + KERNEL_IMAGE = $$(KERNEL_PREFIX)$$(KERNEL_SUFFIX) + KERNEL_INITRAMFS_PREFIX = $$(DEVICE_IMG_PREFIX)-initramfs + KERNEL_INITRAMFS_IMAGE = $$(KERNEL_INITRAMFS_PREFIX)$$(KERNEL_INITRAMFS_SUFFIX) + KERNEL_INITRAMFS_NAME = $$(KERNEL_NAME)-initramfs + KERNEL_INSTALL := + KERNEL_NAME := vmlinux + KERNEL_DEPENDS := + KERNEL_SIZE := + + UBOOTENV_IN_UBI := + KERNEL_IN_UBI := + BLOCKSIZE := + PAGESIZE := + SUBPAGESIZE := + VID_HDR_OFFSET := + UBINIZE_OPTS := + UBINIZE_PARTS := + MKUBIFS_OPTS := + + FS_OPTIONS/ubifs = $$(MKUBIFS_OPTS) + + DEVICE_DTS := + DEVICE_DTS_CONFIG := + DEVICE_DTS_DELIMITER := + DEVICE_DTS_DIR := + DEVICE_DTS_OVERLAY := + DEVICE_FDT_NUM := + SOC := + + BOARD_NAME := + UIMAGE_MAGIC := + UIMAGE_NAME := + DEVICE_COMPAT_VERSION := 1.0 + DEVICE_COMPAT_MESSAGE := + SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) + IMAGE_METADATA := + + FILESYSTEMS := $(TARGET_FILESYSTEMS) + + UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-$(1) + + BROKEN := + DEFAULT := +endef + +DEFAULT_DEVICE_VARS := \ + DEVICE_NAME KERNEL KERNEL_INITRAMFS KERNEL_INITRAMFS_IMAGE KERNEL_SIZE \ + CMDLINE UBOOTENV_IN_UBI KERNEL_IN_UBI BLOCKSIZE PAGESIZE SUBPAGESIZE \ + VID_HDR_OFFSET UBINIZE_OPTS UBINIZE_PARTS MKUBIFS_OPTS DEVICE_DTS \ + DEVICE_DTS_CONFIG DEVICE_DTS_DELIMITER DEVICE_DTS_DIR DEVICE_DTS_OVERLAY \ + DEVICE_FDT_NUM DEVICE_IMG_PREFIX SOC BOARD_NAME UIMAGE_MAGIC UIMAGE_NAME \ + SUPPORTED_DEVICES IMAGE_METADATA KERNEL_ENTRY KERNEL_LOADADDR \ + UBOOT_PATH IMAGE_SIZE \ + DEVICE_PACKAGES DEVICE_COMPAT_VERSION DEVICE_COMPAT_MESSAGE \ + DEVICE_VENDOR DEVICE_MODEL DEVICE_VARIANT \ + DEVICE_ALT0_VENDOR DEVICE_ALT0_MODEL DEVICE_ALT0_VARIANT \ + DEVICE_ALT1_VENDOR DEVICE_ALT1_MODEL DEVICE_ALT1_VARIANT \ + DEVICE_ALT2_VENDOR DEVICE_ALT2_MODEL DEVICE_ALT2_VARIANT + +define Device/ExportVar + $(1) : $(2):=$$($(2)) + +endef +define Device/Export + $(foreach var,$(DEVICE_VARS) $(DEFAULT_DEVICE_VARS),$(call Device/ExportVar,$(1),$(var))) + $(1) : FILESYSTEM:=$(2) +endef + +ifdef IB + DEVICE_CHECK_PROFILE = $(filter $(1),DEVICE_$(PROFILE) $(PROFILE)) +else + DEVICE_CHECK_PROFILE = $(CONFIG_TARGET_$(if $(CONFIG_TARGET_MULTI_PROFILE),DEVICE_)$(call target_conf,$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET)))_$(1)) +endif + +DEVICE_EXTRA_PACKAGES = $(call qstrip,$(CONFIG_TARGET_DEVICE_PACKAGES_$(call target_conf,$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET)))_DEVICE_$(1))) + +define merge_packages + $(1) := + $(foreach pkg,$(2), + $(1) := $$(strip $$(filter-out -$$(patsubst -%,%,$(pkg)) $$(patsubst -%,%,$(pkg)),$$($(1))) $(pkg)) + ) +endef + +define Device/Check/Common + _PROFILE_SET = $$(strip $$(foreach profile,$$(PROFILES) DEVICE_$(1),$$(call DEVICE_CHECK_PROFILE,$$(profile)))) + DEVICE_PACKAGES += $$(call extra_packages,$$(DEVICE_PACKAGES)) + ifdef TARGET_PER_DEVICE_ROOTFS + $$(eval $$(call merge_packages,_PACKAGES,$$(DEVICE_PACKAGES) $$(call DEVICE_EXTRA_PACKAGES,$(1)))) + ROOTFS_ID/$(1) := $$(if $$(_PROFILE_SET),$$(call mkfs_packages_id,$$(_PACKAGES))) + PACKAGES_$$(ROOTFS_ID/$(1)) := $$(_PACKAGES) + endif +endef + +define Device/Check + $(Device/Check/Common) + KDIR_KERNEL_IMAGE := $(KDIR)/$(1)$$(KERNEL_SUFFIX) + _TARGET := $$(if $$(_PROFILE_SET),install-images,install-disabled) + ifndef IB + _COMPILE_TARGET := $$(if $(CONFIG_IB)$$(_PROFILE_SET),compile,compile-disabled) + endif +endef + +ifndef IB +define Device/Build/initramfs + $(call Device/Export,$(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE),$(1)) + $$(_TARGET): $$(if $$(KERNEL_INITRAMFS),$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) \ + $$(if $$(CONFIG_JSON_OVERVIEW_IMAGE_INFO), $(BUILD_DIR)/json_info_files/$$(KERNEL_INITRAMFS_IMAGE).json,)) + + $(KDIR)/$$(KERNEL_INITRAMFS_NAME):: image_prepare + $(1)-images: $$(if $$(KERNEL_INITRAMFS),$(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE)) + $(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE) + cp $$^ $$@ + + $(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE): $(KDIR)/$$(KERNEL_INITRAMFS_NAME) $(CURDIR)/Makefile $$(KERNEL_DEPENDS) image_prepare + @rm -f $$@ + $$(call concat_cmd,$$(KERNEL_INITRAMFS)) + + $(call Device/Export,$(BUILD_DIR)/json_info_files/$$(KERNEL_INITRAMFS_IMAGE).json,$(1)) + + $(BUILD_DIR)/json_info_files/$$(KERNEL_INITRAMFS_IMAGE).json: $(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) + @mkdir -p $$(shell dirname $$@) + DEVICE_ID="$(1)" \ + SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \ + FILE_NAME="$$(notdir $$^)" \ + FILE_DIR="$(KDIR)/tmp" \ + FILE_TYPE="kernel" \ + FILE_FILESYSTEM="initramfs" \ + DEVICE_IMG_PREFIX="$$(DEVICE_IMG_PREFIX)" \ + DEVICE_VENDOR="$$(DEVICE_VENDOR)" \ + DEVICE_MODEL="$$(DEVICE_MODEL)" \ + DEVICE_VARIANT="$$(DEVICE_VARIANT)" \ + DEVICE_ALT0_VENDOR="$$(DEVICE_ALT0_VENDOR)" \ + DEVICE_ALT0_MODEL="$$(DEVICE_ALT0_MODEL)" \ + DEVICE_ALT0_VARIANT="$$(DEVICE_ALT0_VARIANT)" \ + DEVICE_ALT1_VENDOR="$$(DEVICE_ALT1_VENDOR)" \ + DEVICE_ALT1_MODEL="$$(DEVICE_ALT1_MODEL)" \ + DEVICE_ALT1_VARIANT="$$(DEVICE_ALT1_VARIANT)" \ + DEVICE_ALT2_VENDOR="$$(DEVICE_ALT2_VENDOR)" \ + DEVICE_ALT2_MODEL="$$(DEVICE_ALT2_MODEL)" \ + DEVICE_ALT2_VARIANT="$$(DEVICE_ALT2_VARIANT)" \ + DEVICE_TITLE="$$(DEVICE_TITLE)" \ + DEVICE_PACKAGES="$$(DEVICE_PACKAGES)" \ + TARGET="$(BOARD)" \ + SUBTARGET="$(if $(SUBTARGET),$(SUBTARGET),generic)" \ + VERSION_NUMBER="$(VERSION_NUMBER)" \ + VERSION_CODE="$(VERSION_CODE)" \ + SUPPORTED_DEVICES="$$(SUPPORTED_DEVICES)" \ + $(TOPDIR)/scripts/json_add_image_info.py $$@ +endef +endif + +define Device/Build/compile + $$(_COMPILE_TARGET): $(KDIR)/$(1) + $(eval $(call Device/Export,$(KDIR)/$(1))) + $(KDIR)/$(1): FORCE + $$(call concat_cmd,$(COMPILE/$(1))) + +endef + +ifndef IB +define Device/Build/dtb + ifndef BUILD_DTS_$(1) + BUILD_DTS_$(1) := 1 + $(KDIR)/image-$(1).dtb: FORCE + $(call Image/BuildDTB,$(strip $(2))/$(strip $(3)).dts,$$@) + + image_prepare: $(KDIR)/image-$(1).dtb + endif + +endef +endif + +define Device/Build/kernel + $$(eval $$(foreach dts,$$(DEVICE_DTS) $$(DEVICE_DTS_OVERLAY), \ + $$(call Device/Build/dtb,$$(notdir $$(dts)), \ + $$(if $$(DEVICE_DTS_DIR),$$(DEVICE_DTS_DIR),$$(DTS_DIR)), \ + $$(dts) \ + ) \ + )) + + $(KDIR)/$$(KERNEL_NAME):: image_prepare + $$(_TARGET): $$(if $$(KERNEL_INSTALL),$(BIN_DIR)/$$(KERNEL_IMAGE)) + $(call Device/Export,$$(KDIR_KERNEL_IMAGE),$(1)) + $(BIN_DIR)/$$(KERNEL_IMAGE): $$(KDIR_KERNEL_IMAGE) + cp $$^ $$@ + ifndef IB + ifdef CONFIG_IB + install: $$(KDIR_KERNEL_IMAGE) + endif + $$(KDIR_KERNEL_IMAGE): $(KDIR)/$$(KERNEL_NAME) $(CURDIR)/Makefile $$(KERNEL_DEPENDS) image_prepare + @rm -f $$@ + $$(call concat_cmd,$$(KERNEL)) + $$(if $$(KERNEL_SIZE),$$(call Build/check-size,$$(KERNEL_SIZE))) + endif +endef + +define Device/Build/image + GZ_SUFFIX := $(if $(filter %dtb %gz,$(2)),,$(if $(and $(findstring ext4,$(1)),$(CONFIG_TARGET_IMAGES_GZIP)),.gz)) + $$(_TARGET): $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \ + $(BUILD_DIR)/json_info_files/$(call DEVICE_IMG_NAME,$(1),$(2)).json, \ + $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2))$$(GZ_SUFFIX)) + $(eval $(call Device/Export,$(KDIR)/tmp/$(call DEVICE_IMG_NAME,$(1),$(2)),$(1))) + $(3)-images: $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2))$$(GZ_SUFFIX) + + ROOTFS/$(1)/$(3) := \ + $(KDIR)/root.$(1)$$(strip \ + $$(if $$(FS_OPTIONS/$(1)),+fs=$$(call param_mangle,$$(FS_OPTIONS/$(1)))) \ + )$$(strip \ + $(if $(TARGET_PER_DEVICE_ROOTFS),+pkg=$$(ROOTFS_ID/$(3))) \ + ) + ifndef IB + $$(ROOTFS/$(1)/$(3)): $(if $(TARGET_PER_DEVICE_ROOTFS),target-dir-$$(ROOTFS_ID/$(3))) + endif + $(KDIR)/tmp/$(call DEVICE_IMG_NAME,$(1),$(2)): $$(KDIR_KERNEL_IMAGE) $$(ROOTFS/$(1)/$(3)) + @rm -f $$@ + [ -f $$(word 1,$$^) -a -f $$(word 2,$$^) ] + $$(call concat_cmd,$(if $(IMAGE/$(2)/$(1)),$(IMAGE/$(2)/$(1)),$(IMAGE/$(2)))) + + .IGNORE: $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2)) + + $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2)).gz: $(KDIR)/tmp/$(call DEVICE_IMG_NAME,$(1),$(2)) + gzip -c -9n $$^ > $$@ + + $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2)): $(KDIR)/tmp/$(call DEVICE_IMG_NAME,$(1),$(2)) + cp $$^ $$@ + + $(BUILD_DIR)/json_info_files/$(call DEVICE_IMG_NAME,$(1),$(2)).json: $(BIN_DIR)/$(call DEVICE_IMG_NAME,$(1),$(2))$$(GZ_SUFFIX) + @mkdir -p $$(shell dirname $$@) + DEVICE_ID="$(DEVICE_NAME)" \ + SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \ + FILE_NAME="$(DEVICE_IMG_NAME)" \ + FILE_DIR="$(KDIR)/tmp" \ + FILE_TYPE=$(word 1,$(subst ., ,$(2))) \ + FILE_FILESYSTEM="$(1)" \ + DEVICE_IMG_PREFIX="$(DEVICE_IMG_PREFIX)" \ + DEVICE_VENDOR="$(DEVICE_VENDOR)" \ + DEVICE_MODEL="$(DEVICE_MODEL)" \ + DEVICE_VARIANT="$(DEVICE_VARIANT)" \ + DEVICE_ALT0_VENDOR="$(DEVICE_ALT0_VENDOR)" \ + DEVICE_ALT0_MODEL="$(DEVICE_ALT0_MODEL)" \ + DEVICE_ALT0_VARIANT="$(DEVICE_ALT0_VARIANT)" \ + DEVICE_ALT1_VENDOR="$(DEVICE_ALT1_VENDOR)" \ + DEVICE_ALT1_MODEL="$(DEVICE_ALT1_MODEL)" \ + DEVICE_ALT1_VARIANT="$(DEVICE_ALT1_VARIANT)" \ + DEVICE_ALT2_VENDOR="$(DEVICE_ALT2_VENDOR)" \ + DEVICE_ALT2_MODEL="$(DEVICE_ALT2_MODEL)" \ + DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \ + DEVICE_TITLE="$(DEVICE_TITLE)" \ + DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \ + TARGET="$(BOARD)" \ + SUBTARGET="$(if $(SUBTARGET),$(SUBTARGET),generic)" \ + VERSION_NUMBER="$(VERSION_NUMBER)" \ + VERSION_CODE="$(VERSION_CODE)" \ + SUPPORTED_DEVICES="$(SUPPORTED_DEVICES)" \ + $(TOPDIR)/scripts/json_add_image_info.py $$@ + +endef + +define Device/Build/artifact + $$(_TARGET): $(if $(CONFIG_JSON_OVERVIEW_IMAGE_INFO), \ + $(BUILD_DIR)/json_info_files/$(DEVICE_IMG_PREFIX)-$(1).json, \ + $(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1)) + $(eval $(call Device/Export,$(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1))) + $(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1): $$(KDIR_KERNEL_IMAGE) $(2)-images + @rm -f $$@ + $$(call concat_cmd,$(ARTIFACT/$(1))) + + .IGNORE: $(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1) + + $(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1): $(KDIR)/tmp/$(DEVICE_IMG_PREFIX)-$(1) + cp $$^ $$@ + + $(BUILD_DIR)/json_info_files/$(DEVICE_IMG_PREFIX)-$(1).json: $(BIN_DIR)/$(DEVICE_IMG_PREFIX)-$(1) + @mkdir -p $$(shell dirname $$@) + DEVICE_ID="$(DEVICE_NAME)" \ + SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \ + FILE_NAME="$(DEVICE_IMG_PREFIX)-$(1)" \ + FILE_DIR="$(KDIR)/tmp" \ + FILE_TYPE="$(1)" \ + DEVICE_IMG_PREFIX="$(DEVICE_IMG_PREFIX)" \ + DEVICE_VENDOR="$(DEVICE_VENDOR)" \ + DEVICE_MODEL="$(DEVICE_MODEL)" \ + DEVICE_VARIANT="$(DEVICE_VARIANT)" \ + DEVICE_ALT0_VENDOR="$(DEVICE_ALT0_VENDOR)" \ + DEVICE_ALT0_MODEL="$(DEVICE_ALT0_MODEL)" \ + DEVICE_ALT0_VARIANT="$(DEVICE_ALT0_VARIANT)" \ + DEVICE_ALT1_VENDOR="$(DEVICE_ALT1_VENDOR)" \ + DEVICE_ALT1_MODEL="$(DEVICE_ALT1_MODEL)" \ + DEVICE_ALT1_VARIANT="$(DEVICE_ALT1_VARIANT)" \ + DEVICE_ALT2_VENDOR="$(DEVICE_ALT2_VENDOR)" \ + DEVICE_ALT2_MODEL="$(DEVICE_ALT2_MODEL)" \ + DEVICE_ALT2_VARIANT="$(DEVICE_ALT2_VARIANT)" \ + DEVICE_TITLE="$(DEVICE_TITLE)" \ + DEVICE_PACKAGES="$(DEVICE_PACKAGES)" \ + TARGET="$(BOARD)" \ + SUBTARGET="$(if $(SUBTARGET),$(SUBTARGET),generic)" \ + VERSION_NUMBER="$(VERSION_NUMBER)" \ + VERSION_CODE="$(VERSION_CODE)" \ + SUPPORTED_DEVICES="$(SUPPORTED_DEVICES)" \ + $(TOPDIR)/scripts/json_add_image_info.py $$@ + +endef + +define Device/Build + $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(call Device/Build/initramfs,$(1))) + $(call Device/Build/kernel,$(1)) + + $$(eval $$(foreach compile,$$(COMPILE), \ + $$(call Device/Build/compile,$$(compile),$(1)))) + + $$(eval $$(foreach image,$$(IMAGES), \ + $$(foreach fs,$$(filter $(TARGET_FILESYSTEMS),$$(FILESYSTEMS)), \ + $$(call Device/Build/image,$$(fs),$$(image),$(1))))) + + $$(eval $$(foreach artifact,$$(ARTIFACTS), \ + $$(call Device/Build/artifact,$$(artifact),$(1)))) + +endef + +define Device/DumpInfo +Target-Profile: DEVICE_$(1) +Target-Profile-Name: $(DEVICE_DISPLAY) +Target-Profile-Packages: $(DEVICE_PACKAGES) +Target-Profile-hasImageMetadata: $(if $(foreach image,$(IMAGES),$(findstring append-metadata,$(IMAGE/$(image)))),1,0) +Target-Profile-SupportedDevices: $(SUPPORTED_DEVICES) +$(if $(BROKEN),Target-Profile-Broken: $(BROKEN)) +$(if $(DEFAULT),Target-Profile-Default: $(DEFAULT)) +Target-Profile-Description: +$(DEVICE_DESCRIPTION) +$(if $(strip $(DEVICE_ALT0_TITLE)),Alternative device titles: +- $(DEVICE_ALT0_TITLE)) +$(if $(strip $(DEVICE_ALT1_TITLE)),- $(DEVICE_ALT1_TITLE)) +$(if $(strip $(DEVICE_ALT2_TITLE)),- $(DEVICE_ALT2_TITLE)) +@@ + +endef + +define Device/Dump +ifneq ($$(strip $$(DEVICE_ALT0_TITLE)),) +DEVICE_DISPLAY = $$(DEVICE_ALT0_TITLE) ($$(DEVICE_TITLE)) +$$(info $$(call Device/DumpInfo,$(1))) +endif +ifneq ($$(strip $$(DEVICE_ALT1_TITLE)),) +DEVICE_DISPLAY = $$(DEVICE_ALT1_TITLE) ($$(DEVICE_TITLE)) +$$(info $$(call Device/DumpInfo,$(1))) +endif +ifneq ($$(strip $$(DEVICE_ALT2_TITLE)),) +DEVICE_DISPLAY = $$(DEVICE_ALT2_TITLE) ($$(DEVICE_TITLE)) +$$(info $$(call Device/DumpInfo,$(1))) +endif +DEVICE_DISPLAY = $$(DEVICE_TITLE) +$$(eval $$(if $$(DEVICE_TITLE),$$(info $$(call Device/DumpInfo,$(1))))) +endef + +define Device + $(call Device/InitProfile,$(1)) + $(call Device/Init,$(1)) + $(call Device/Default,$(1)) + $(call Device/$(1),$(1)) + $(call Device/Check,$(1)) + $(call Device/$(if $(DUMP),Dump,Build),$(1)) + +endef + +define BuildImage + + ifneq ($(DUMP),) + all: dumpinfo + dumpinfo: FORCE + @true + endif + + download: + prepare: + compile: + clean: + image_prepare: + + ifeq ($(IB),) + .PHONY: download prepare compile clean image_prepare kernel_prepare install install-images + compile: + $(call Build/Compile) + + clean: + $(call Build/Clean) + + image_prepare: compile + mkdir -p $(BIN_DIR) $(KDIR)/tmp + rm -rf $(BUILD_DIR)/json_info_files + $(call Image/Prepare) + + else + image_prepare: + mkdir -p $(BIN_DIR) $(KDIR)/tmp + endif + + kernel_prepare: image_prepare + $(call Image/Build/targz) + $(call Image/Build/cpiogz) + $(call Image/BuildKernel) + $(if $(CONFIG_TARGET_ROOTFS_INITRAMFS),$(if $(IB),,$(call Image/BuildKernel/Initramfs))) + $(call Image/InstallKernel) + + $(foreach device,$(TARGET_DEVICES),$(call Device,$(device))) + + install-images: kernel_prepare $(foreach fs,$(filter-out $(if $(UBIFS_OPTS),,ubifs),$(TARGET_FILESYSTEMS) $(fs-subtypes-y)),$(KDIR)/root.$(fs)) + $(foreach fs,$(TARGET_FILESYSTEMS), + $(call Image/Build,$(fs)) + ) + + install: install-images + $(call Image/Manifest) + +endef diff --git a/include/kernel-5.10 b/include/kernel-5.10 new file mode 100644 index 0000000000..39c813b027 --- /dev/null +++ b/include/kernel-5.10 @@ -0,0 +1,3 @@ +LIBRE_REV = 1 +LINUX_VERSION-5.10 = .156 +LINUX_KERNEL_HASH-5.10.156 = 3d43a79eacfb633431c1a1cddf72928e57d295149c0683b4927147bac4c408cf diff --git a/include/kernel-build.mk b/include/kernel-build.mk new file mode 100644 index 0000000000..5dd033cda6 --- /dev/null +++ b/include/kernel-build.mk @@ -0,0 +1,184 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +include $(INCLUDE_DIR)/prereq.mk +include $(INCLUDE_DIR)/depends.mk + +ifneq ($(DUMP),1) + all: compile +endif + +KERNEL_FILE_DEPENDS=$(GENERIC_BACKPORT_DIR) $(GENERIC_PATCH_DIR) $(GENERIC_HACK_DIR) $(PATCH_DIR) $(GENERIC_FILES_DIR) $(FILES_DIR) +STAMP_PREPARED=$(LINUX_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call $(if $(CONFIG_AUTOREMOVE),find_md5_reproducible,find_md5),$(KERNEL_FILE_DEPENDS),))) +STAMP_CONFIGURED:=$(LINUX_DIR)/.configured +include $(INCLUDE_DIR)/download.mk +include $(INCLUDE_DIR)/quilt.mk +include $(INCLUDE_DIR)/kernel-defaults.mk + +define Kernel/Prepare + $(call Kernel/Prepare/Default) +endef + +define Kernel/Configure + $(call Kernel/Configure/Default) +endef + +define Kernel/CompileModules + $(call Kernel/CompileModules/Default) +endef + +define Kernel/CompileImage + $(call Kernel/CompileImage/Default) + $(call Kernel/CompileImage/Initramfs) +endef + +define Kernel/Clean + $(call Kernel/Clean/Default) +endef + +define Download/kernel + URL:=$(LINUX_SITE) + FILE:=$(LINUX_SOURCE) + HASH:=$(LINUX_KERNEL_HASH) +endef + +KERNEL_GIT_OPTS:= +ifneq ($(strip $(CONFIG_KERNEL_GIT_LOCAL_REPOSITORY)),"") + KERNEL_GIT_OPTS+=--reference $(CONFIG_KERNEL_GIT_LOCAL_REPOSITORY) +endif + +define Download/git-kernel + URL:=$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)) + PROTO:=git + VERSION:=$(CONFIG_KERNEL_GIT_REF) + FILE:=$(LINUX_SOURCE) + SUBDIR:=linux-$(LINUX_VERSION) + OPTS:=$(KERNEL_GIT_OPTS) +endef + +ifdef CONFIG_COLLECT_KERNEL_DEBUG + define Kernel/CollectDebug + rm -rf $(KERNEL_BUILD_DIR)/debug + mkdir -p $(KERNEL_BUILD_DIR)/debug/modules + $(CP) $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/debug/ + -$(CP) \ + $(STAGING_DIR_ROOT)/lib/modules/$(LINUX_VERSION)/* \ + $(KERNEL_BUILD_DIR)/debug/modules/ + $(FIND) $(KERNEL_BUILD_DIR)/debug -type f | $(XARGS) $(KERNEL_CROSS)strip --only-keep-debug + $(TAR) c -C $(KERNEL_BUILD_DIR) debug \ + $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \ + | zstd -T0 -f -o $(BIN_DIR)/kernel-debug.tar.zst + endef +endif + +ifeq ($(DUMP)$(filter prereq clean refresh update,$(MAKECMDGOALS)),) + ifneq ($(if $(QUILT),,$(CONFIG_AUTOREBUILD)),) + define Kernel/Autoclean + $(PKG_BUILD_DIR)/.dep_files: $(STAMP_PREPARED) + $(call rdep,$(KERNEL_FILE_DEPENDS),$(STAMP_PREPARED),$(PKG_BUILD_DIR)/.dep_files,-x "*/.dep_*") + endef + endif +endif + +define BuildKernel + $(if $(QUILT),$(Build/Quilt)) + $(if $(LINUX_SITE),$(call Download,kernel)) + $(if $(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),$(call Download,git-kernel)) + + .NOTPARALLEL: + + $(Kernel/Autoclean) + $(STAMP_PREPARED): $(if $(LINUX_SITE),$(DL_DIR)/$(LINUX_SOURCE)) + -rm -rf $(KERNEL_BUILD_DIR) + -mkdir -p $(KERNEL_BUILD_DIR) + $(Kernel/Prepare) + touch $$@ + + $(KERNEL_BUILD_DIR)/symtab.h: FORCE + rm -f $(KERNEL_BUILD_DIR)/symtab.h + touch $(KERNEL_BUILD_DIR)/symtab.h + +$(KERNEL_MAKE) vmlinux + find $(LINUX_DIR) $(STAGING_DIR_ROOT)/lib/modules -name \*.ko | \ + xargs $(TARGET_CROSS)nm | \ + awk '$$$$1 == "U" { print $$$$2 } ' | \ + sort -u > $(KERNEL_BUILD_DIR)/mod_symtab.txt + $(TARGET_CROSS)nm -n $(LINUX_DIR)/vmlinux.o | awk '/^[0-9a-f]+ [rR] __ksymtab_/ {print substr($$$$3,11)}' > $(KERNEL_BUILD_DIR)/kernel_symtab.txt + grep -Ff $(KERNEL_BUILD_DIR)/mod_symtab.txt $(KERNEL_BUILD_DIR)/kernel_symtab.txt > $(KERNEL_BUILD_DIR)/sym_include.txt + grep -Fvf $(KERNEL_BUILD_DIR)/mod_symtab.txt $(KERNEL_BUILD_DIR)/kernel_symtab.txt > $(KERNEL_BUILD_DIR)/sym_exclude.txt + ( \ + echo '#define SYMTAB_KEEP \'; \ + cat $(KERNEL_BUILD_DIR)/sym_include.txt | \ + awk '{print "KEEP(*(___ksymtab+" $$$$1 ")) \\" }'; \ + echo; \ + echo '#define SYMTAB_KEEP_GPL \'; \ + cat $(KERNEL_BUILD_DIR)/sym_include.txt | \ + awk '{print "KEEP(*(___ksymtab_gpl+" $$$$1 ")) \\" }'; \ + echo; \ + echo '#define SYMTAB_DISCARD \'; \ + cat $(KERNEL_BUILD_DIR)/sym_exclude.txt | \ + awk '{print "*(___ksymtab+" $$$$1 ") \\" }'; \ + echo; \ + echo '#define SYMTAB_DISCARD_GPL \'; \ + cat $(KERNEL_BUILD_DIR)/sym_exclude.txt | \ + awk '{print "*(___ksymtab_gpl+" $$$$1 ") \\" }'; \ + echo; \ + ) > $$@ + + $(STAMP_CONFIGURED): $(STAMP_PREPARED) $(LINUX_KCONFIG_LIST) $(TOPDIR)/.config FORCE + $(Kernel/Configure) + touch $$@ + + $(LINUX_DIR)/.modules: export STAGING_PREFIX=$$(STAGING_DIR_HOST) + $(LINUX_DIR)/.modules: export PKG_CONFIG_PATH=$$(STAGING_DIR_HOST)/lib/pkgconfig + $(LINUX_DIR)/.modules: export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig + $(LINUX_DIR)/.modules: export FAIL_ON_UNCONFIGURED=1 + $(LINUX_DIR)/.modules: $(STAMP_CONFIGURED) $(LINUX_DIR)/.config FORCE + $(Kernel/CompileModules) + touch $$@ + + $(LINUX_DIR)/.image: export STAGING_PREFIX=$$(STAGING_DIR_HOST) + $(LINUX_DIR)/.image: export PKG_CONFIG_PATH=$$(STAGING_DIR_HOST)/lib/pkgconfig + $(LINUX_DIR)/.image: export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig + $(LINUX_DIR)/.image: $(STAMP_CONFIGURED) $(if $(CONFIG_STRIP_KERNEL_EXPORTS),$(KERNEL_BUILD_DIR)/symtab.h) FORCE + $(Kernel/CompileImage) + $(Kernel/CollectDebug) + touch $$@ + + mostlyclean: FORCE + $(Kernel/Clean) + + define BuildKernel + endef + + download: $(if $(LINUX_SITE),$(DL_DIR)/$(LINUX_SOURCE)) + prepare: $(STAMP_PREPARED) + compile: $(LINUX_DIR)/.modules + $(MAKE) -C image compile TARGET_BUILD= + + oldconfig menuconfig nconfig xconfig: $(STAMP_PREPARED) $(STAMP_CHECKED) FORCE + rm -f $(LINUX_DIR)/.config.prev + rm -f $(STAMP_CONFIGURED) + $(LINUX_RECONF_CMD) > $(LINUX_DIR)/.config + $(_SINGLE)$(KERNEL_MAKE) \ + $(if $(findstring Darwin,$(HOST_OS)), \ + HOST_LOADLIBES="-L$(STAGING_DIR_HOST)/lib -lncurses" \ + HOSTLDLIBS_mconf="-L$(STAGING_DIR_HOST)/lib -lncurses" \ + filechk_conf_cfg=" :" \ + ) \ + YACC=$(STAGING_DIR_HOST)/bin/bison \ + $$@ + $(call LINUX_RECONF_DIFF,$(LINUX_DIR)/.config) > $(LINUX_RECONFIG_TARGET) + + install: $(LINUX_DIR)/.image + +$(MAKE) -C image compile install TARGET_BUILD= + + clean: FORCE + rm -rf $(KERNEL_BUILD_DIR) + + image-prereq: + @+$(NO_TRACE_MAKE) -s -C image prereq TARGET_BUILD= + + prereq: image-prereq + +endef diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk new file mode 100644 index 0000000000..2e21392016 --- /dev/null +++ b/include/kernel-defaults.mk @@ -0,0 +1,200 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +ifdef CONFIG_STRIP_KERNEL_EXPORTS + KERNEL_MAKEOPTS_IMAGE += \ + EXTRA_LDSFLAGS="-I$(KERNEL_BUILD_DIR) -include symtab.h" +endif + +INITRAMFS_EXTRA_FILES ?= $(GENERIC_PLATFORM_DIR)/image/initramfs-base-files.txt + +ifneq (,$(KERNEL_CC)) + KERNEL_MAKEOPTS += CC="$(KERNEL_CC)" +endif + +export HOST_EXTRACFLAGS=-I$(STAGING_DIR_HOST)/include + +# defined in quilt.mk +Kernel/Patch:=$(Kernel/Patch/Default) + +ifneq (,$(findstring .xz,$(LINUX_SOURCE))) + LINUX_CAT:=xzcat +else + LINUX_CAT:=gzip -dc +endif + +ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"") + ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"") + define Kernel/Prepare/Default + $(LINUX_CAT) $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS) + $(Kernel/Patch) + $(if $(QUILT),touch $(LINUX_DIR)/.quilt_used) + endef + else + define Kernel/Prepare/Default + $(LINUX_CAT) $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS) + endef + endif +else + define Kernel/Prepare/Default + mkdir -p $(KERNEL_BUILD_DIR) + if [ -d $(LINUX_DIR) ]; then \ + rmdir $(LINUX_DIR); \ + fi + ln -s $(CONFIG_EXTERNAL_KERNEL_TREE) $(LINUX_DIR) + if [ -d $(LINUX_DIR)/user_headers ]; then \ + rm -rf $(LINUX_DIR)/user_headers; \ + fi + endef +endif + +ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) + ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE),y) + define Kernel/SetInitramfs/PreConfigure + grep -v -e CONFIG_BLK_DEV_INITRD $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config + echo 'CONFIG_BLK_DEV_INITRD=y' >> $(LINUX_DIR)/.config + echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config + endef + else + ifeq ($(strip $(CONFIG_EXTERNAL_CPIO)),"") + define Kernel/SetInitramfs/PreConfigure + grep -v -e INITRAMFS -e CONFIG_RD_ -e CONFIG_BLK_DEV_INITRD $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config + echo 'CONFIG_BLK_DEV_INITRD=y' >> $(LINUX_DIR)/.config + echo 'CONFIG_INITRAMFS_SOURCE="$(strip $(TARGET_DIR) $(INITRAMFS_EXTRA_FILES))"' >> $(LINUX_DIR)/.config + endef + else + define Kernel/SetInitramfs/PreConfigure + grep -v INITRAMFS $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config + echo 'CONFIG_INITRAMFS_SOURCE="$(call qstrip,$(CONFIG_EXTERNAL_CPIO))"' >> $(LINUX_DIR)/.config + endef + endif +endif + + define Kernel/SetInitramfs + rm -f $(LINUX_DIR)/.config.prev + mv $(LINUX_DIR)/.config $(LINUX_DIR)/.config.old + $(call Kernel/SetInitramfs/PreConfigure) + ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE),y) + echo 'CONFIG_INITRAMFS_ROOT_UID=$(shell id -u)' >> $(LINUX_DIR)/.config + echo 'CONFIG_INITRAMFS_ROOT_GID=$(shell id -g)' >> $(LINUX_DIR)/.config + echo "$(if $(CONFIG_TARGET_INITRAMFS_FORCE),CONFIG_INITRAMFS_FORCE=y,# CONFIG_INITRAMFS_FORCE is not set)" >> $(LINUX_DIR)/.config + else + echo "# CONFIG_INITRAMFS_FORCE is not set" >> $(LINUX_DIR)/.config + endif + echo "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_NONE),CONFIG_INITRAMFS_COMPRESSION_NONE=y,# CONFIG_INITRAMFS_COMPRESSION_NONE is not set)" >> $(LINUX_DIR)/.config + echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP),CONFIG_INITRAMFS_COMPRESSION_GZIP=y\nCONFIG_RD_GZIP=y,# CONFIG_INITRAMFS_COMPRESSION_GZIP is not set\n# CONFIG_RD_GZIP is not set)" >> $(LINUX_DIR)/.config + echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2),CONFIG_INITRAMFS_COMPRESSION_BZIP2=y\nCONFIG_RD_BZIP2=y,# CONFIG_INITRAMFS_COMPRESSION_BZIP2 is not set\n# CONFIG_RD_BZIP2 is not set)" >> $(LINUX_DIR)/.config + echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA),CONFIG_INITRAMFS_COMPRESSION_LZMA=y\nCONFIG_RD_LZMA=y,# CONFIG_INITRAMFS_COMPRESSION_LZMA is not set\n# CONFIG_RD_LZMA is not set)" >> $(LINUX_DIR)/.config + echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO),CONFIG_INITRAMFS_COMPRESSION_LZO=y\nCONFIG_RD_LZO=y,# CONFIG_INITRAMFS_COMPRESSION_LZO is not set\n# CONFIG_RD_LZO is not set)" >> $(LINUX_DIR)/.config + echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),CONFIG_INITRAMFS_COMPRESSION_XZ=y\nCONFIG_RD_XZ=y,# CONFIG_INITRAMFS_COMPRESSION_XZ is not set\n# CONFIG_RD_XZ is not set)" >> $(LINUX_DIR)/.config + echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4),CONFIG_INITRAMFS_COMPRESSION_LZ4=y\nCONFIG_RD_LZ4=y,# CONFIG_INITRAMFS_COMPRESSION_LZ4 is not set\n# CONFIG_RD_LZ4 is not set)" >> $(LINUX_DIR)/.config + echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),CONFIG_INITRAMFS_COMPRESSION_ZSTD=y\nCONFIG_RD_ZSTD=y,# CONFIG_INITRAMFS_COMPRESSION_ZSTD is not set\n# CONFIG_RD_ZSTD is not set)" >> $(LINUX_DIR)/.config + endef +else +endif + +define Kernel/SetNoInitramfs + mv $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config.old + grep -v INITRAMFS $(LINUX_DIR)/.config.old > $(LINUX_DIR)/.config.set + echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config.set + echo '# CONFIG_INITRAMFS_FORCE is not set' >> $(LINUX_DIR)/.config.set +endef + +define Kernel/Configure/Default + rm -f $(LINUX_DIR)/localversion + $(LINUX_CONF_CMD) > $(LINUX_DIR)/.config.target +# copy CONFIG_KERNEL_* settings over to .config.target + awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' $(TOPDIR)/.config >> $(LINUX_DIR)/.config.target + echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> $(LINUX_DIR)/.config.target + echo "# CONFIG_KALLSYMS_ALL is not set" >> $(LINUX_DIR)/.config.target + echo "CONFIG_KALLSYMS_UNCOMPRESSED=y" >> $(LINUX_DIR)/.config.target + $(SCRIPT_DIR)/package-metadata.pl kconfig $(TMP_DIR)/.packageinfo $(TOPDIR)/.config $(KERNEL_PATCHVER) > $(LINUX_DIR)/.config.override + $(SCRIPT_DIR)/kconfig.pl 'm+' '+' $(LINUX_DIR)/.config.target /dev/null $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config.set + $(call Kernel/SetNoInitramfs) + rm -rf $(KERNEL_BUILD_DIR)/modules + cmp -s $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config.prev || { \ + cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config; \ + cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config.prev; \ + } + $(_SINGLE) [ -d $(LINUX_DIR)/user_headers ] || $(KERNEL_MAKE) INSTALL_HDR_PATH=$(LINUX_DIR)/user_headers headers_install + grep '=[ym]' $(LINUX_DIR)/.config.set | LC_ALL=C sort | $(MKHASH) md5 > $(LINUX_DIR)/.vermagic +endef + +define Kernel/Configure/Initramfs + $(call Kernel/SetInitramfs) +endef + +define Kernel/CompileModules/Default + rm -f $(LINUX_DIR)/vmlinux $(LINUX_DIR)/System.map + +$(KERNEL_MAKE) $(if $(KERNELNAME),$(KERNELNAME),all) modules + # If .config did not change, use the previous timestamp to avoid package rebuilds + cmp -s $(LINUX_DIR)/.config $(LINUX_DIR)/.config.modules.save && \ + mv $(LINUX_DIR)/.config.modules.save $(LINUX_DIR)/.config; \ + $(CP) $(LINUX_DIR)/.config $(LINUX_DIR)/.config.modules.save +endef + +OBJCOPY_STRIP = -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id + +# AMD64 shares the location with x86 +ifeq ($(LINUX_KARCH),x86_64) +IMAGES_DIR:=../../x86/boot +endif + +define Kernel/CopyImage + cmp -s $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux$(1).debug || { \ + $(KERNEL_CROSS)objcopy -O binary $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL)$(1); \ + $(KERNEL_CROSS)objcopy $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux$(1).elf; \ + $(CP) $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux$(1).debug; \ + $(foreach k, \ + $(if $(KERNEL_IMAGES),$(KERNEL_IMAGES),$(filter-out vmlinux dtbs,$(KERNELNAME))), \ + $(CP) $(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/$(IMAGES_DIR)/$(k) $(KERNEL_BUILD_DIR)/$(k)$(1); \ + ) \ + } +endef + +# Always add "modules" so a proper Module.symvers file is written that +# also contains symbols from the kernel modules. Without these symbols +# external packages that depend on exported symbols from kernel modules +# will fail to build. +define Kernel/CompileImage/Default + rm -f $(TARGET_DIR)/init + +$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all) modules + $(call Kernel/CopyImage) +endef + +# Here as well, always add "modules", see comment above. +ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) +define Kernel/CompileImage/Initramfs + $(call Kernel/Configure/Initramfs) + $(CP) $(GENERIC_PLATFORM_DIR)/other-files/init $(TARGET_DIR)/init + $(if $(SOURCE_DATE_EPOCH),touch -hcd "@$(SOURCE_DATE_EPOCH)" $(TARGET_DIR) $(TARGET_DIR)/init) + rm -rf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/usr/initramfs_data.cpio* +ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE),y) +ifneq ($(qstrip $(CONFIG_EXTERNAL_CPIO)),) + $(CP) $(CONFIG_EXTERNAL_CPIO) $(KERNEL_BUILD_DIR)/initrd.cpio +else + ( cd $(TARGET_DIR); find . | LC_ALL=C sort | $(STAGING_DIR_HOST)/bin/cpio --reproducible -o -H newc -R 0:0 > $(KERNEL_BUILD_DIR)/initrd.cpio ) +endif + $(if $(SOURCE_DATE_EPOCH),touch -hcd "@$(SOURCE_DATE_EPOCH)" $(KERNEL_BUILD_DIR)/initrd.cpio) + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_BZIP2),bzip2 -9 -c < $(KERNEL_BUILD_DIR)/initrd.cpio > $(KERNEL_BUILD_DIR)/initrd.cpio.bzip2) + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_GZIP),gzip -n -f -S .gzip -9n $(KERNEL_BUILD_DIR)/initrd.cpio) + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA),$(STAGING_DIR_HOST)/bin/lzma e -lc1 -lp2 -pb2 $(KERNEL_BUILD_DIR)/initrd.cpio $(KERNEL_BUILD_DIR)/initrd.cpio.lzma) +# ? $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO),) + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),$(STAGING_DIR_HOST)/bin/xz -T$(if $(filter 1,$(NPROC)),2,0) -9 -fz --check=crc32 $(KERNEL_BUILD_DIR)/initrd.cpio) +# ? $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4),) + $(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),$(STAGING_DIR_HOST)/bin/zstd -T0 -f -o $(KERNEL_BUILD_DIR)/initrd.cpio.zstd $(KERNEL_BUILD_DIR)/initrd.cpio) +endif + +$(KERNEL_MAKE) $(KERNEL_MAKEOPTS_IMAGE) $(if $(KERNELNAME),$(KERNELNAME),all) modules + $(call Kernel/CopyImage,-initramfs) +endef +else +define Kernel/CompileImage/Initramfs +endef +endif + +define Kernel/Clean/Default + rm -f $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)/.configured + rm -f $(LINUX_KERNEL) + $(_SINGLE)$(MAKE) -C $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) clean +endef diff --git a/include/kernel-version.mk b/include/kernel-version.mk new file mode 100644 index 0000000000..1edb01df27 --- /dev/null +++ b/include/kernel-version.mk @@ -0,0 +1,42 @@ + +# Use the default kernel version if the Makefile doesn't override it +LINUX_RELEASE?=1 + +ifdef CONFIG_TESTING_KERNEL + KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER) +endif + +KERNEL_DETAILS_FILE=$(INCLUDE_DIR)/kernel-$(KERNEL_PATCHVER) +ifeq ($(wildcard $(KERNEL_DETAILS_FILE)),) + $(error Missing kernel version/hash file for $(KERNEL_PATCHVER). Please create $(KERNEL_DETAILS_FILE)) +endif + +include $(KERNEL_DETAILS_FILE) + +remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1)))) +sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst -,_,$(subst /,_,$(1))))))) + +ifneq ($(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),) + LINUX_VERSION:=$(call sanitize_uri,$(call remove_uri_prefix,$(CONFIG_KERNEL_GIT_CLONE_URI))) + ifeq ($(call qstrip,$(CONFIG_KERNEL_GIT_REF)),) + CONFIG_KERNEL_GIT_REF:=HEAD + endif + LINUX_VERSION:=$(LINUX_VERSION)-$(call sanitize_uri,$(CONFIG_KERNEL_GIT_REF)) +else +ifdef KERNEL_PATCHVER + LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER))) +endif +ifdef KERNEL_TESTING_PATCHVER + LINUX_TESTING_VERSION:=$(KERNEL_TESTING_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_TESTING_PATCHVER))) +endif +endif + +split_version=$(subst ., ,$(1)) +merge_version=$(subst $(space),.,$(1)) +KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION))) +KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE)))) +KERNEL_PATCHVER ?= $(KERNEL) + +# disable the md5sum check for unknown kernel versions +LINUX_KERNEL_HASH:=$(LINUX_KERNEL_HASH-$(strip $(LINUX_VERSION))) +LINUX_KERNEL_HASH?=x diff --git a/include/kernel.mk b/include/kernel.mk new file mode 100644 index 0000000000..6741fbcc18 --- /dev/null +++ b/include/kernel.mk @@ -0,0 +1,302 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +ifneq ($(filter check,$(MAKECMDGOALS)),) +CHECK:=1 +DUMP:=1 +endif + +ifneq ($(SOURCE_DATE_EPOCH),) + ifndef DUMP + KBUILD_BUILD_TIMESTAMP:=$(shell perl -e 'print scalar gmtime($(SOURCE_DATE_EPOCH))') + endif +endif + +ifeq ($(__target_inc),) + ifndef CHECK + include $(INCLUDE_DIR)/target.mk + endif +endif + +ifeq ($(DUMP),1) + KERNEL?= + BOARD?= + LINUX_VERSION?= + LINUX_VERMAGIC?= +else + ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) + export GCC_HONOUR_COPTS=s + endif + + LINUX_KMOD_SUFFIX=ko + + ifneq (,$(findstring uml,$(BOARD))) + KERNEL_CC?=$(HOSTCC) + KERNEL_CROSS?= + else + KERNEL_CC?=$(TARGET_CC) + KERNEL_CROSS?=$(TARGET_CROSS) + endif + + ifeq ($(TARGET_BUILD),1) + PATCH_DIR ?= $(CURDIR)/patches$(if $(wildcard ./patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) + FILES_DIR ?= $(foreach dir,$(wildcard $(CURDIR)/files $(CURDIR)/files-$(KERNEL_PATCHVER)),"$(dir)") + endif + KERNEL_BUILD_DIR ?= $(BUILD_DIR)/linux-$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET)) + LINUX_DIR ?= $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) + LINUX_UAPI_DIR=uapi/ + LINUX_VERMAGIC:=$(strip $(shell cat $(LINUX_DIR)/.vermagic 2>/dev/null)) + LINUX_VERMAGIC:=$(if $(LINUX_VERMAGIC),$(LINUX_VERMAGIC),unknown) + + LINUX_UNAME_VERSION:=$(KERNEL_BASE) + ifneq ($(findstring -rc,$(LINUX_VERSION)),) + LINUX_UNAME_VERSION:=$(LINUX_UNAME_VERSION)-$(strip $(lastword $(subst -, ,$(LINUX_VERSION)))) + endif + + LINUX_KERNEL:=$(KERNEL_BUILD_DIR)/vmlinux + + ifneq (,$(findstring -rc,$(LINUX_VERSION))) + LINUX_SOURCE:=linux-libre-$(LINUX_VERSION)-gnu$(LIBRE_REV).tar.gz + else + LINUX_SOURCE:=linux-libre-$(LINUX_VERSION)-gnu$(LIBRE_REV).tar.xz + endif + + ifneq (,$(findstring -rc,$(LINUX_VERSION))) + LINUX_SITE:= + else ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),) + LINUX_SITE:=@KERNEL_LIBRE/$(LINUX_VERSION)-gnu$(LIBRE_REV)$(TESTING) + else + LINUX_UNAME_VERSION:=$(strip $(shell cat $(LINUX_DIR)/include/config/kernel.release 2>/dev/null)) + endif + + MODULES_SUBDIR:=lib/modules/$(LINUX_UNAME_VERSION) + TARGET_MODULES_DIR:=$(LINUX_TARGET_DIR)/$(MODULES_SUBDIR) + + ifneq ($(TARGET_BUILD),1) + PKG_BUILD_DIR ?= $(KERNEL_BUILD_DIR)/$(if $(BUILD_VARIANT),$(PKG_NAME)-$(BUILD_VARIANT)/)$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) + endif +endif + +ifneq (,$(findstring uml,$(BOARD))) + LINUX_KARCH=um +else ifneq (,$(findstring $(ARCH) , aarch64 aarch64_be )) + LINUX_KARCH := arm64 +else ifneq (,$(findstring $(ARCH) , arceb )) + LINUX_KARCH := arc +else ifneq (,$(findstring $(ARCH) , armeb )) + LINUX_KARCH := arm +else ifneq (,$(findstring $(ARCH) , mipsel mips64 mips64el )) + LINUX_KARCH := mips +else ifneq (,$(findstring $(ARCH) , powerpc64 )) + LINUX_KARCH := powerpc +else ifneq (,$(findstring $(ARCH) , sh2 sh3 sh4 )) + LINUX_KARCH := sh +else ifneq (,$(findstring $(ARCH) , i386 x86_64 )) + LINUX_KARCH := x86 +else + LINUX_KARCH := $(ARCH) +endif + +KERNEL_MAKE = $(MAKE) $(KERNEL_MAKEOPTS) + +KERNEL_MAKE_FLAGS = \ + KCFLAGS="$(call iremap,$(BUILD_DIR),$(notdir $(BUILD_DIR))) $(filter-out -fno-plt,$(call qstrip,$(CONFIG_EXTRA_OPTIMIZATION))) $(call qstrip,$(CONFIG_KERNEL_CFLAGS))" \ + HOSTCFLAGS="$(HOST_CFLAGS) -Wall -Wmissing-prototypes -Wstrict-prototypes" \ + CROSS_COMPILE="$(KERNEL_CROSS)" \ + ARCH="$(LINUX_KARCH)" \ + KBUILD_HAVE_NLS=no \ + KBUILD_BUILD_USER="$(call qstrip,$(CONFIG_KERNEL_BUILD_USER))" \ + KBUILD_BUILD_HOST="$(call qstrip,$(CONFIG_KERNEL_BUILD_DOMAIN))" \ + KBUILD_BUILD_TIMESTAMP="$(KBUILD_BUILD_TIMESTAMP)" \ + KBUILD_BUILD_VERSION="0" \ + HOST_LOADLIBES="-L$(STAGING_DIR_HOST)/lib" \ + KBUILD_HOSTLDLIBS="-L$(STAGING_DIR_HOST)/lib" \ + CONFIG_SHELL="$(BASH)" \ + $(if $(findstring c,$(LIBRECMC_VERBOSE)),V=1,V='') \ + $(if $(PKG_BUILD_ID),LDFLAGS_MODULE=--build-id=0x$(PKG_BUILD_ID)) \ + cmd_syscalls= \ + $(if $(__package_mk),KBUILD_EXTRA_SYMBOLS="$(wildcard $(PKG_SYMVERS_DIR)/*.symvers)") + +KERNEL_NOSTDINC_FLAGS = \ + -nostdinc $(if $(DUMP),, -isystem $(shell $(TARGET_CC) -print-file-name=include)) + +ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),) + KERNEL_MAKE_FLAGS += \ + KERNELRELEASE=$(LINUX_VERSION) +endif + +KERNEL_MAKEOPTS := -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS) + +ifdef CONFIG_USE_SPARSE + KERNEL_MAKEOPTS += C=1 CHECK=$(STAGING_DIR_HOST)/bin/sparse +endif + +ifneq ($(HOST_OS),Linux) + KERNEL_MAKEOPTS += CONFIG_STACK_VALIDATION= + export SKIP_STACK_VALIDATION:=1 +endif + +PKG_EXTMOD_SUBDIRS ?= . + +PKG_SYMVERS_DIR = $(KERNEL_BUILD_DIR)/symvers + +define collect_module_symvers + for subdir in $(PKG_EXTMOD_SUBDIRS); do \ + realdir=$$$$(readlink -f $(PKG_BUILD_DIR)); \ + grep -F $(PKG_BUILD_DIR) $(PKG_BUILD_DIR)/$$$$subdir/Module.symvers >> $(PKG_BUILD_DIR)/Module.symvers.tmp; \ + [ "$(PKG_BUILD_DIR)" = "$$$$realdir" ] || \ + grep -F $$$$realdir $(PKG_BUILD_DIR)/$$$$subdir/Module.symvers >> $(PKG_BUILD_DIR)/Module.symvers.tmp; \ + done; \ + sort -u $(PKG_BUILD_DIR)/Module.symvers.tmp > $(PKG_BUILD_DIR)/Module.symvers; \ + mkdir -p $(PKG_SYMVERS_DIR); \ + mv $(PKG_BUILD_DIR)/Module.symvers $(PKG_SYMVERS_DIR)/$(PKG_NAME).symvers +endef + +define KernelPackage/hooks + ifneq ($(PKG_NAME),kernel) + Hooks/Compile/Post += collect_module_symvers + endif + define KernelPackage/hooks + endef +endef + +define KernelPackage/Defaults + FILES:= + AUTOLOAD:= + MODPARAMS:= + PKGFLAGS+=nonshared +endef + +# 1: name +# 2: install prefix +# 3: module priority prefix +# 4: required for boot +# 5: module list +define ModuleAutoLoad + $(if $(5), \ + mkdir -p $(2)/etc/modules.d; \ + ($(foreach mod,$(5), \ + echo "$(mod)$(if $(MODPARAMS.$(mod)), $(MODPARAMS.$(mod)),$(if $(MODPARAMS), $(MODPARAMS)))"; )) > $(2)/etc/modules.d/$(3)$(1); \ + $(if $(4), \ + mkdir -p $(2)/etc/modules-boot.d; \ + ln -sf ../modules.d/$(3)$(1) $(2)/etc/modules-boot.d/;)) +endef + +ifeq ($(DUMP)$(TARGET_BUILD),) + -include $(LINUX_DIR)/.config +endif + +define KernelPackage/depends + $(STAMP_BUILT): $(LINUX_DIR)/.config + define KernelPackage/depends + endef +endef + +define KernelPackage + NAME:=$(1) + $(eval $(call Package/Default)) + $(eval $(call KernelPackage/Defaults)) + $(eval $(call KernelPackage/$(1))) + $(eval $(call KernelPackage/$(1)/$(BOARD))) + $(eval $(call KernelPackage/$(1)/$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic))) + + define Package/kmod-$(1) + TITLE:=$(TITLE) + SECTION:=kernel + CATEGORY:=Kernel modules + DESCRIPTION:=$(DESCRIPTION) + EXTRA_DEPENDS:=kernel (=$(LINUX_VERSION)-$(LINUX_RELEASE)-$(LINUX_VERMAGIC)) + VERSION:=$(LINUX_VERSION)$(if $(PKG_VERSION),+$(PKG_VERSION))-$(if $(PKG_RELEASE),$(PKG_RELEASE),$(LINUX_RELEASE)) + PKGFLAGS:=$(PKGFLAGS) + $(call KernelPackage/$(1)) + $(call KernelPackage/$(1)/$(BOARD)) + $(call KernelPackage/$(1)/$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic)) + endef + + ifdef KernelPackage/$(1)/conffiles + define Package/kmod-$(1)/conffiles +$(call KernelPackage/$(1)/conffiles) + endef + endif + + ifdef KernelPackage/$(1)/description + define Package/kmod-$(1)/description +$(call KernelPackage/$(1)/description) + endef + endif + + ifdef KernelPackage/$(1)/config + define Package/kmod-$(1)/config +$(call KernelPackage/$(1)/config) + endef + endif + + $(call KernelPackage/depends) + $(call KernelPackage/hooks) + + ifneq ($(if $(filter-out %=y %=n %=m,$(KCONFIG)),$(filter m y,$(foreach c,$(filter-out %=y %=n %=m,$(KCONFIG)),$($(c)))),.),) + define Package/kmod-$(1)/install + @for mod in $$(call version_filter,$$(FILES)); do \ + if grep -q "$$$$$$$${mod##$(LINUX_DIR)/}" "$(LINUX_DIR)/modules.builtin"; then \ + echo "NOTICE: module '$$$$$$$$mod' is built-in."; \ + elif [ -e $$$$$$$$mod ]; then \ + mkdir -p $$(1)/$(MODULES_SUBDIR) ; \ + $(CP) -L $$$$$$$$mod $$(1)/$(MODULES_SUBDIR)/ ; \ + else \ + echo "ERROR: module '$$$$$$$$mod' is missing." >&2; \ + exit 1; \ + fi; \ + done; + $(call ModuleAutoLoad,$(1),$$(1),$(filter-out 0-,$(word 1,$(AUTOLOAD))-),$(filter-out 0,$(word 2,$(AUTOLOAD))),$(sort $(wordlist 3,99,$(AUTOLOAD)))) + $(call KernelPackage/$(1)/install,$$(1)) + endef + $(if $(CONFIG_PACKAGE_kmod-$(1)), + else + compile: $(1)-disabled + $(1)-disabled: + @echo "WARNING: kmod-$(1) is not available in the kernel config - generating empty package" >&2 + + define Package/kmod-$(1)/install + true + endef + ) + endif + $$(eval $$(call BuildPackage,kmod-$(1))) + + $$(IPKG_kmod-$(1)): $$(wildcard $$(call version_filter,$$(FILES))) + +endef + +version_filter=$(if $(findstring @,$(1)),$(shell $(SCRIPT_DIR)/package-metadata.pl version_filter $(KERNEL_PATCHVER) $(1)),$(1)) + +# 1: priority (optional) +# 2: module list +# 3: boot flag +define AutoLoad + $(if $(1),$(1),0) $(if $(3),1,0) $(call version_filter,$(2)) +endef + +# 1: module list +# 2: boot flag +define AutoProbe + $(call AutoLoad,,$(1),$(2)) +endef + +version_field=$(if $(word $(1),$(2)),$(word $(1),$(2)),0) +kernel_version_merge=$$(( ($(call version_field,1,$(1)) << 24) + ($(call version_field,2,$(1)) << 16) + ($(call version_field,3,$(1)) << 8) + $(call version_field,4,$(1)) )) + +ifdef DUMP + kernel_version_cmp= +else + kernel_version_cmp=$(shell [ $(call kernel_version_merge,$(call split_version,$(2))) $(1) $(call kernel_version_merge,$(call split_version,$(3))) ] && echo 1 ) +endif + +CompareKernelPatchVer=$(if $(call kernel_version_cmp,-$(2),$(1),$(3)),1,0) + +kernel_patchver_gt=$(call kernel_version_cmp,-gt,$(KERNEL_PATCHVER),$(1)) +kernel_patchver_ge=$(call kernel_version_cmp,-ge,$(KERNEL_PATCHVER),$(1)) +kernel_patchver_eq=$(call kernel_version_cmp,-eq,$(KERNEL_PATCHVER),$(1)) +kernel_patchver_le=$(call kernel_version_cmp,-le,$(KERNEL_PATCHVER),$(1)) +kernel_patchver_lt=$(call kernel_version_cmp,-lt,$(KERNEL_PATCHVER),$(1)) + diff --git a/include/meson.mk b/include/meson.mk new file mode 100644 index 0000000000..8ca5e4017e --- /dev/null +++ b/include/meson.mk @@ -0,0 +1,146 @@ +# To build your package using meson: +# +# include $(INCLUDE_DIR)/meson.mk +# MESON_ARGS+=-Dfoo -Dbar=baz +# +# To pass additional environment variables to meson: +# +# MESON_VARS+=FOO=bar +# +# Default configure/compile/install targets are provided, but can be +# overwritten if required: +# +# define Build/Configure +# $(call Build/Configure/Meson) +# ... +# endef +# +# same for Build/Compile and Build/Install +# +# Host packages are built in the same fashion, just use these vars instead: +# +# MESON_HOST_ARGS+=-Dfoo -Dbar=baz +# MESON_HOST_VARS+=FOO=bar + +MESON_DIR:=$(STAGING_DIR_HOST)/lib/meson + +MESON_HOST_BUILD_DIR:=$(HOST_BUILD_DIR)/librecmc-build +MESON_HOST_VARS:= +MESON_HOST_ARGS:= + +MESON_BUILD_DIR:=$(PKG_BUILD_DIR)/librecmc-build +MESON_VARS:= +MESON_ARGS:= + +ifneq ($(findstring i386,$(CONFIG_ARCH)),) +MESON_ARCH:="x86" +else ifneq ($(findstring powerpc64,$(CONFIG_ARCH)),) +MESON_ARCH:="ppc64" +else ifneq ($(findstring powerpc,$(CONFIG_ARCH)),) +MESON_ARCH:="ppc" +else ifneq ($(findstring mips64el,$(CONFIG_ARCH)),) +MESON_ARCH:="mips64" +else ifneq ($(findstring mipsel,$(CONFIG_ARCH)),) +MESON_ARCH:="mips" +else ifneq ($(findstring armeb,$(CONFIG_ARCH)),) +MESON_ARCH:="arm" +else +MESON_ARCH:=$(CONFIG_ARCH) +endif + +# this is undefined for just x64_64 +ifeq ($(origin CPU_TYPE),undefined) +MESON_CPU:="generic" +else +MESON_CPU:="$(CPU_TYPE)$(if $(CPU_SUBTYPE),+$(CPU_SUBTYPE))" +endif + +define Meson + $(2) $(STAGING_DIR_HOST)/bin/$(PYTHON) $(STAGING_DIR_HOST)/bin/meson.py $(1) +endef + +define Meson/CreateNativeFile + $(STAGING_DIR_HOST)/bin/sed \ + -e "s|@CC@|$(foreach BIN,$(HOSTCC),'$(BIN)',)|" \ + -e "s|@CXX@|$(foreach BIN,$(HOSTCXX),'$(BIN)',)|" \ + -e "s|@PKGCONFIG@|$(PKG_CONFIG)|" \ + -e "s|@CMAKE@|$(STAGING_DIR_HOST)/bin/cmake|" \ + -e "s|@PYTHON@|$(STAGING_DIR_HOST)/bin/python3|" \ + -e "s|@CFLAGS@|$(foreach FLAG,$(HOST_CFLAGS) $(HOST_CPPFLAGS),'$(FLAG)',)|" \ + -e "s|@CXXFLAGS@|$(foreach FLAG,$(HOST_CXXFLAGS) $(HOST_CPPFLAGS),'$(FLAG)',)|" \ + -e "s|@LDFLAGS@|$(foreach FLAG,$(HOST_LDFLAGS),'$(FLAG)',)|" \ + -e "s|@PREFIX@|$(HOST_BUILD_PREFIX)|" \ + < $(MESON_DIR)/librecmc-native.txt.in \ + > $(1) +endef + +define Meson/CreateCrossFile + $(STAGING_DIR_HOST)/bin/sed \ + -e "s|@CC@|$(foreach BIN,$(TARGET_CC),'$(BIN)',)|" \ + -e "s|@CXX@|$(foreach BIN,$(TARGET_CXX),'$(BIN)',)|" \ + -e "s|@AR@|$(TARGET_AR)|" \ + -e "s|@STRIP@|$(TARGET_CROSS)strip|" \ + -e "s|@NM@|$(TARGET_NM)|" \ + -e "s|@PKGCONFIG@|$(PKG_CONFIG)|" \ + -e "s|@CMAKE@|$(STAGING_DIR_HOST)/bin/cmake|" \ + -e "s|@PYTHON@|$(STAGING_DIR_HOST)/bin/python3|" \ + -e "s|@CFLAGS@|$(foreach FLAG,$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS),'$(FLAG)',)|" \ + -e "s|@CXXFLAGS@|$(foreach FLAG,$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS),'$(FLAG)',)|" \ + -e "s|@LDFLAGS@|$(foreach FLAG,$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS),'$(FLAG)',)|" \ + -e "s|@ARCH@|$(MESON_ARCH)|" \ + -e "s|@CPU@|$(MESON_CPU)|" \ + -e "s|@ENDIAN@|$(if $(CONFIG_BIG_ENDIAN),big,little)|" \ + < $(MESON_DIR)/librecmc-cross.txt.in \ + > $(1) +endef + +define Host/Configure/Meson + $(call Meson/CreateNativeFile,$(HOST_BUILD_DIR)/librecmc-native.txt) + $(call Meson, \ + --native-file $(HOST_BUILD_DIR)/librecmc-native.txt \ + $(MESON_HOST_ARGS) \ + $(MESON_HOST_BUILD_DIR) \ + $(MESON_HOST_BUILD_DIR)/.., \ + $(MESON_HOST_VARS)) +endef + +define Host/Compile/Meson + +$(NINJA) -C $(MESON_HOST_BUILD_DIR) $(1) +endef + +define Host/Install/Meson + +$(NINJA) -C $(MESON_HOST_BUILD_DIR) install +endef + +define Host/Uninstall/Meson + +$(NINJA) -C $(MESON_HOST_BUILD_DIR) uninstall || true +endef + +define Build/Configure/Meson + $(call Meson/CreateNativeFile,$(PKG_BUILD_DIR)/librecmc-native.txt) + $(call Meson/CreateCrossFile,$(PKG_BUILD_DIR)/librecmc-cross.txt) + $(call Meson, \ + --buildtype plain \ + --native-file $(PKG_BUILD_DIR)/librecmc-native.txt \ + --cross-file $(PKG_BUILD_DIR)/librecmc-cross.txt \ + $(MESON_ARGS) \ + $(MESON_BUILD_DIR) \ + $(MESON_BUILD_DIR)/.., \ + $(MESON_VARS)) +endef + +define Build/Compile/Meson + +$(NINJA) -C $(MESON_BUILD_DIR) $(1) +endef + +define Build/Install/Meson + +DESTDIR="$(PKG_INSTALL_DIR)" $(NINJA) -C $(MESON_BUILD_DIR) install +endef + +Host/Configure=$(call Host/Configure/Meson) +Host/Compile=$(call Host/Compile/Meson) +Host/Install=$(call Host/Install/Meson) +Host/Uninstall=$(call Host/Uninstall/Meson) +Build/Configure=$(call Build/Configure/Meson) +Build/Compile=$(call Build/Compile/Meson) +Build/Install=$(call Build/Install/Meson) diff --git a/include/netfilter.mk b/include/netfilter.mk new file mode 100644 index 0000000000..8b9ec7c49d --- /dev/null +++ b/include/netfilter.mk @@ -0,0 +1,387 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +ifneq ($(__inc_netfilter),1) +__inc_netfilter:=1 + +ifeq ($(NF_KMOD),1) +P_V4:=ipv4/netfilter/ +P_V6:=ipv6/netfilter/ +P_XT:=netfilter/ +P_EBT:=bridge/netfilter/ +endif + +# 1: variable +# 2: kconfig symbols +# 3: file list +# 4: version dependency +define nf_add + $(if $(4),ifeq ($$(strip $$(call CompareKernelPatchVer,$$(KERNEL_PATCHVER),$(firstword $(4)),$(lastword $(4)))),1)) + $(1)-$$($(2)) += $(3) + $(if $(4),endif) + KCONFIG_$(1) = $(filter-out $(2),$(KCONFIG_$(1))) $(2) +endef + + +# core + +# kernel only +$(eval $(if $(NF_KMOD),$(call nf_add,NF_REJECT,CONFIG_NF_REJECT_IPV4, $(P_V4)nf_reject_ipv4),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NF_IPT,CONFIG_IP_NF_IPTABLES, $(P_V4)ip_tables),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NF_IPT,CONFIG_NETFILTER_XTABLES, $(P_XT)x_tables),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_CORE,CONFIG_NETFILTER_XTABLES, $(P_XT)xt_tcpudp),)) +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_CORE,CONFIG_IP_NF_FILTER, $(P_V4)iptable_filter),)) +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_CORE,CONFIG_IP_NF_MANGLE, $(P_V4)iptable_mangle),)) + +# userland only +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_CORE,CONFIG_IP_NF_IPTABLES, xt_standard ipt_icmp xt_tcp xt_udp xt_comment xt_set xt_SET))) + +$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_LIMIT, $(P_XT)xt_limit)) +$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_MAC, $(P_XT)xt_mac)) +$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_MULTIPORT, $(P_XT)xt_multiport)) +$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_COMMENT, $(P_XT)xt_comment)) + +#cluster +$(eval $(call nf_add,IPT_CLUSTER,CONFIG_NETFILTER_XT_MATCH_CLUSTER, $(P_XT)xt_cluster)) + +$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_LOG, $(P_XT)xt_LOG)) +$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_TARGET_TCPMSS, $(P_XT)xt_TCPMSS)) +$(eval $(call nf_add,IPT_CORE,CONFIG_IP_NF_TARGET_REJECT, $(P_V4)ipt_REJECT)) +$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_TIME, $(P_XT)xt_time)) +$(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MARK, $(P_XT)xt_mark)) + +# kernel has xt_MARK.ko merged into xt_mark.ko, userspace is still separate +# userland: xt_MARK.so +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MARK, $(P_XT)xt_MARK))) + + +# conntrack + +# kernel only +$(eval $(if $(NF_KMOD),$(call nf_add,NF_CONNTRACK,CONFIG_NF_CONNTRACK, $(P_XT)nf_conntrack),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NF_CONNTRACK,CONFIG_NF_DEFRAG_IPV4, $(P_V4)nf_defrag_ipv4),)) + +$(eval $(call nf_add,IPT_CONNTRACK,CONFIG_NETFILTER_XT_MATCH_STATE, $(P_XT)xt_state)) +$(eval $(call nf_add,IPT_CONNTRACK,CONFIG_NETFILTER_XT_TARGET_CT, $(P_XT)xt_CT)) +$(eval $(call nf_add,IPT_CONNTRACK,CONFIG_NETFILTER_XT_MATCH_CONNTRACK, $(P_XT)xt_conntrack)) + + +# conntrack-extra + +$(eval $(call nf_add,IPT_CONNTRACK_EXTRA,CONFIG_NETFILTER_XT_MATCH_CONNBYTES, $(P_XT)xt_connbytes)) +$(eval $(call nf_add,IPT_CONNTRACK_EXTRA,CONFIG_NETFILTER_XT_MATCH_CONNLIMIT, $(P_XT)xt_connlimit)) +$(eval $(call nf_add,IPT_CONNTRACK_EXTRA,CONFIG_NETFILTER_CONNCOUNT, $(P_XT)nf_conncount)) +$(eval $(call nf_add,IPT_CONNTRACK_EXTRA,CONFIG_NETFILTER_XT_CONNMARK, $(P_XT)xt_connmark)) +$(eval $(call nf_add,IPT_CONNTRACK_EXTRA,CONFIG_NETFILTER_XT_MATCH_HELPER, $(P_XT)xt_helper)) +$(eval $(call nf_add,IPT_CONNTRACK_EXTRA,CONFIG_NETFILTER_XT_MATCH_RECENT, $(P_XT)xt_recent)) + +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_CONNTRACK_EXTRA,CONFIG_NETFILTER_XT_CONNMARK, $(P_XT)xt_CONNMARK))) + +#conntrack-label + +$(eval $(call nf_add,IPT_CONNTRACK_LABEL,CONFIG_NETFILTER_XT_MATCH_CONNLABEL, $(P_XT)xt_connlabel)) + +# extra + +$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_ADDRTYPE, $(if $(NF_KMOD),$(P_XT)xt_addrtype,$(P_XT)ipt_addrtype))) +$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_OWNER, $(P_XT)xt_owner)) +$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_PKTTYPE, $(P_XT)xt_pkttype)) +$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_QUOTA, $(P_XT)xt_quota)) +$(eval $(call nf_add,IPT_EXTRA,CONFIG_NETFILTER_XT_MATCH_CGROUP, $(P_XT)xt_cgroup)) + +#$(eval $(call nf_add,IPT_EXTRA,CONFIG_IP_NF_TARGET_ROUTE, $(P_V4)ipt_ROUTE)) + +# physdev + +$(eval $(call nf_add,IPT_PHYSDEV,CONFIG_NETFILTER_XT_MATCH_PHYSDEV, $(P_XT)xt_physdev)) + +# filter + +$(eval $(call nf_add,IPT_FILTER,CONFIG_NETFILTER_XT_MATCH_STRING, $(P_XT)xt_string)) +$(eval $(call nf_add,IPT_FILTER,CONFIG_NETFILTER_XT_MATCH_BPF, $(P_XT)xt_bpf)) + + +# ipopt + +$(eval $(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_MATCH_DSCP, $(P_XT)xt_dscp)) +$(eval $(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_TARGET_DSCP, $(P_XT)xt_DSCP)) +$(eval $(call nf_add,IPT_HASHLIMIT,CONFIG_NETFILTER_XT_MATCH_HASHLIMIT, $(P_XT)xt_hashlimit)) +$(eval $(call nf_add,IPT_RPFILTER,CONFIG_IP_NF_MATCH_RPFILTER, $(P_V4)ipt_rpfilter)) +$(eval $(call nf_add,IPT_RPFILTER,CONFIG_IP6_NF_MATCH_RPFILTER, $(P_V6)ip6t_rpfilter)) +$(eval $(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_MATCH_LENGTH, $(P_XT)xt_length)) +$(eval $(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_MATCH_STATISTIC, $(P_XT)xt_statistic)) +$(eval $(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_MATCH_TCPMSS, $(P_XT)xt_tcpmss)) + +$(eval $(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_TARGET_CLASSIFY, $(P_XT)xt_CLASSIFY)) +$(eval $(call nf_add,IPT_IPOPT,CONFIG_IP_NF_TARGET_ECN, $(P_V4)ipt_ECN)) + +$(eval $(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_MATCH_ECN, $(P_XT)xt_ecn)) + +# userland only +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_MATCH_DSCP, xt_tos))) +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_TARGET_DSCP, xt_TOS))) +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_MATCH_HL, ipt_ttl))) +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_TARGET_HL, ipt_TTL))) + +$(eval $(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_MATCH_HL, $(P_XT)xt_hl)) +$(eval $(call nf_add,IPT_IPOPT,CONFIG_NETFILTER_XT_TARGET_HL, $(P_XT)xt_HL)) + +# iprange +$(eval $(call nf_add,IPT_IPRANGE,CONFIG_NETFILTER_XT_MATCH_IPRANGE, $(P_XT)xt_iprange)) + +#clusterip +$(eval $(call nf_add,IPT_CLUSTERIP,CONFIG_IP_NF_TARGET_CLUSTERIP, $(P_V4)ipt_CLUSTERIP)) + +# ipsec +$(eval $(call nf_add,IPT_IPSEC,CONFIG_IP_NF_MATCH_AH, $(P_V4)ipt_ah)) +$(eval $(call nf_add,IPT_IPSEC,CONFIG_NETFILTER_XT_MATCH_ESP, $(P_XT)xt_esp)) +$(eval $(call nf_add,IPT_IPSEC,CONFIG_NETFILTER_XT_MATCH_POLICY, $(P_XT)xt_policy)) + +# flow offload support +$(eval $(call nf_add,IPT_FLOW,CONFIG_NETFILTER_XT_TARGET_FLOWOFFLOAD, $(P_XT)xt_FLOWOFFLOAD)) + +# IPv6 + +# kernel only +$(eval $(if $(NF_KMOD),$(call nf_add,NF_REJECT6,CONFIG_NF_REJECT_IPV6, $(P_V6)nf_reject_ipv6),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NF_IPT6,CONFIG_IP6_NF_IPTABLES, $(P_V6)ip6_tables),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NF_CONNTRACK,CONFIG_NF_DEFRAG_IPV6, $(P_V6)nf_defrag_ipv6),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_IPV6,CONFIG_IP6_NF_FILTER, $(P_V6)ip6table_filter),)) +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_IPV6,CONFIG_IP6_NF_MANGLE, $(P_V6)ip6table_mangle),)) + +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_IPV6,CONFIG_IP6_NF_IPTABLES, ip6t_icmp6))) + + +$(eval $(call nf_add,IPT_IPV6,CONFIG_IP6_NF_TARGET_REJECT, $(P_V6)ip6t_REJECT)) + +# ipv6 extra +$(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_IPV6HEADER, $(P_V6)ip6t_ipv6header)) +$(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_AH, $(P_V6)ip6t_ah)) +$(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_MH, $(P_V6)ip6t_mh)) +$(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_EUI64, $(P_V6)ip6t_eui64)) +$(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_OPTS, $(P_V6)ip6t_hbh)) +$(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_FRAG, $(P_V6)ip6t_frag)) +$(eval $(call nf_add,IPT_IPV6_EXTRA,CONFIG_IP6_NF_MATCH_RT, $(P_V6)ip6t_rt)) + +# log + +$(eval $(call nf_add,NF_LOG,CONFIG_NF_LOG_COMMON, $(P_XT)nf_log_common)) +$(eval $(call nf_add,NF_LOG,CONFIG_NF_LOG_IPV4, $(P_V4)nf_log_ipv4)) +$(eval $(if $(NF_KMOD),$(call nf_add,NF_LOG6,CONFIG_NF_LOG_IPV6, $(P_V6)nf_log_ipv6),)) + +# nat + +# kernel only +$(eval $(if $(NF_KMOD),$(call nf_add,NF_NAT,CONFIG_NF_NAT, $(P_XT)nf_nat),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_NETFILTER_XT_NAT, $(P_XT)xt_nat),)) +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT,CONFIG_IP_NF_NAT, $(P_V4)iptable_nat),)) +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT6,CONFIG_IP6_NF_NAT, $(P_V6)ip6table_nat),)) +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_NAT6,CONFIG_IP6_NF_TARGET_NPT, $(P_V6)ip6t_NPT),)) + +# userland only +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_NAT,CONFIG_NF_NAT, ipt_SNAT ipt_DNAT))) +$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_NAT6,CONFIG_IP6_NF_TARGET_NPT, ip6t_DNPT ip6t_SNPT))) + +$(eval $(call nf_add,IPT_NAT,CONFIG_NETFILTER_XT_TARGET_MASQUERADE, $(P_XT)xt_MASQUERADE)) +$(eval $(call nf_add,IPT_NAT,CONFIG_NETFILTER_XT_TARGET_REDIRECT, $(P_XT)xt_REDIRECT)) + + +# nat-extra + +$(eval $(call nf_add,IPT_NAT_EXTRA,CONFIG_IP_NF_TARGET_NETMAP, $(P_XT)xt_NETMAP)) + + +# nathelper + +$(eval $(call nf_add,NF_NATHELPER,CONFIG_NF_CONNTRACK_FTP, $(P_XT)nf_conntrack_ftp)) +$(eval $(call nf_add,NF_NATHELPER,CONFIG_NF_NAT_FTP, $(P_XT)nf_nat_ftp)) + + +# nathelper-extra + +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_BROADCAST, $(P_XT)nf_conntrack_broadcast)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_AMANDA, $(P_XT)nf_conntrack_amanda)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_AMANDA, $(P_XT)nf_nat_amanda)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_H323, $(P_XT)nf_conntrack_h323)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_H323, $(P_V4)nf_nat_h323)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_PPTP, $(P_XT)nf_conntrack_pptp)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_PPTP, $(P_V4)nf_nat_pptp)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_SIP, $(P_XT)nf_conntrack_sip)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_SIP, $(P_XT)nf_nat_sip)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_SNMP, $(P_XT)nf_conntrack_snmp)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_SNMP_BASIC, $(P_V4)nf_nat_snmp_basic)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_TFTP, $(P_XT)nf_conntrack_tftp)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_TFTP, $(P_XT)nf_nat_tftp)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_CONNTRACK_IRC, $(P_XT)nf_conntrack_irc)) +$(eval $(call nf_add,NF_NATHELPER_EXTRA,CONFIG_NF_NAT_IRC, $(P_XT)nf_nat_irc)) + + +# nflog + +$(eval $(call nf_add,IPT_NFLOG,CONFIG_NETFILTER_XT_TARGET_NFLOG, $(P_XT)xt_NFLOG)) + + +# nfqueue + +$(eval $(call nf_add,IPT_NFQUEUE,CONFIG_NETFILTER_XT_TARGET_NFQUEUE, $(P_XT)xt_NFQUEUE)) + + +# debugging + +$(eval $(call nf_add,IPT_DEBUG,CONFIG_NETFILTER_XT_TARGET_TRACE, $(P_XT)xt_TRACE)) + +# socket +$(eval $(call nf_add,NF_SOCKET,CONFIG_NF_SOCKET_IPV4, $(P_V4)nf_socket_ipv4)) +$(eval $(call nf_add,NF_SOCKET,CONFIG_NF_SOCKET_IPV6, $(P_V6)nf_socket_ipv6)) +$(eval $(call nf_add,IPT_SOCKET,CONFIG_NETFILTER_XT_MATCH_SOCKET, $(P_XT)xt_socket)) + +# tproxy +$(eval $(call nf_add,NF_TPROXY,CONFIG_NF_TPROXY_IPV4, $(P_V4)nf_tproxy_ipv4)) +$(eval $(call nf_add,NF_TPROXY,CONFIG_NF_TPROXY_IPV6, $(P_V6)nf_tproxy_ipv6)) +$(eval $(call nf_add,IPT_TPROXY,CONFIG_NETFILTER_XT_TARGET_TPROXY, $(P_XT)xt_TPROXY)) + +# led +$(eval $(call nf_add,IPT_LED,CONFIG_NETFILTER_XT_TARGET_LED, $(P_XT)xt_LED)) + +# tee + +$(eval $(call nf_add,IPT_TEE,CONFIG_NETFILTER_XT_TARGET_TEE, $(P_XT)xt_TEE)) +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_TEE,CONFIG_NF_DUP_IPV4, $(P_V4)nf_dup_ipv4),)) +$(eval $(if $(NF_KMOD),$(call nf_add,IPT_TEE,CONFIG_NF_DUP_IPV6, $(P_V6)nf_dup_ipv6),)) + +# u32 + +$(eval $(call nf_add,IPT_U32,CONFIG_NETFILTER_XT_MATCH_U32, $(P_XT)xt_u32)) + +# checksum + +$(eval $(call nf_add,IPT_CHECKSUM,CONFIG_NETFILTER_XT_TARGET_CHECKSUM, $(P_XT)xt_CHECKSUM)) + + +# netlink + +$(eval $(call nf_add,NFNETLINK,CONFIG_NETFILTER_NETLINK, $(P_XT)nfnetlink)) + +# nflog + +$(eval $(call nf_add,NFNETLINK_LOG,CONFIG_NETFILTER_NETLINK_LOG, $(P_XT)nfnetlink_log)) + +# nfqueue + +$(eval $(call nf_add,NFNETLINK_QUEUE,CONFIG_NETFILTER_NETLINK_QUEUE, $(P_XT)nfnetlink_queue)) + +# +# ebtables +# + +$(eval $(if $(NF_KMOD),$(call nf_add,EBTABLES,CONFIG_BRIDGE_NF_EBTABLES, $(P_EBT)ebtables),)) + +# ebtables: tables +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_BROUTE, $(P_EBT)ebtable_broute)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_T_FILTER, $(P_EBT)ebtable_filter)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_T_NAT, $(P_EBT)ebtable_nat)) + +# ebtables: matches +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_802_3, $(P_EBT)ebt_802_3)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_AMONG, $(P_EBT)ebt_among)) +$(eval $(call nf_add,EBTABLES_IP4,CONFIG_BRIDGE_EBT_ARP, $(P_EBT)ebt_arp)) +$(eval $(call nf_add,EBTABLES_IP4,CONFIG_BRIDGE_EBT_IP, $(P_EBT)ebt_ip)) +$(eval $(call nf_add,EBTABLES_IP6,CONFIG_BRIDGE_EBT_IP6, $(P_EBT)ebt_ip6)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_LIMIT, $(P_EBT)ebt_limit)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_MARK, $(P_EBT)ebt_mark_m)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_PKTTYPE, $(P_EBT)ebt_pkttype)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_STP, $(P_EBT)ebt_stp)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_VLAN, $(P_EBT)ebt_vlan)) + +# targets +$(eval $(call nf_add,EBTABLES_IP4,CONFIG_BRIDGE_EBT_ARPREPLY, $(P_EBT)ebt_arpreply)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_MARK_T, $(P_EBT)ebt_mark)) +$(eval $(call nf_add,EBTABLES_IP4,CONFIG_BRIDGE_EBT_DNAT, $(P_EBT)ebt_dnat)) +$(eval $(call nf_add,EBTABLES,CONFIG_BRIDGE_EBT_REDIRECT, $(P_EBT)ebt_redirect)) +$(eval $(call nf_add,EBTABLES_IP4,CONFIG_BRIDGE_EBT_SNAT, $(P_EBT)ebt_snat)) + +# watchers +$(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_LOG, $(P_EBT)ebt_log)) +$(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_NFLOG, $(P_EBT)ebt_nflog)) +$(eval $(call nf_add,EBTABLES_WATCHERS,CONFIG_BRIDGE_EBT_NFQUEUE, $(P_EBT)ebt_nfqueue)) + +# nftables +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NF_TABLES, $(P_XT)nf_tables),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NF_TABLES_SET, $(P_XT)nf_tables_set),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_COUNTER, $(P_XT)nft_counter),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_CT, $(P_XT)nft_ct),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_HASH, $(P_XT)nft_hash),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_LIMIT, $(P_XT)nft_limit),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_LOG, $(P_XT)nft_log),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_META, $(P_XT)nft_meta),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_NUMGEN, $(P_XT)nft_numgen),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_OBJREF, $(P_XT)nft_objref),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_QUOTA, $(P_XT)nft_quota),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_REDIR, $(P_XT)nft_redir),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_REJECT, $(P_XT)nft_reject $(P_V4)nft_reject_ipv4 $(P_V6)nft_reject_ipv6),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_CORE,CONFIG_NFT_REJECT_INET, $(P_XT)nft_reject_inet),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_BRIDGE,CONFIG_NFT_BRIDGE_META, $(P_EBT)nft_meta_bridge),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_BRIDGE,CONFIG_NFT_BRIDGE_REJECT, $(P_EBT)nft_reject_bridge),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_BRIDGE,CONFIG_NF_CONNTRACK_BRIDGE, $(P_EBT)nf_conntrack_bridge),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_NAT,CONFIG_NFT_NAT, $(P_XT)nft_nat),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_NAT,CONFIG_NFT_NAT, $(P_XT)nft_chain_nat),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_NAT,CONFIG_NFT_MASQ, $(P_XT)nft_masq),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_FIB,CONFIG_NFT_FIB, $(P_XT)nft_fib),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_FIB,CONFIG_NFT_FIB_INET, $(P_XT)nft_fib_inet),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_FIB,CONFIG_NFT_FIB_IPV4, $(P_V4)nft_fib_ipv4),)) +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_FIB,CONFIG_NFT_FIB_IPV6, $(P_V6)nft_fib_ipv6),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_QUEUE,CONFIG_NFT_QUEUE, $(P_XT)nft_queue),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_SOCKET,CONFIG_NFT_SOCKET, $(P_XT)nft_socket),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_TPROXY,CONFIG_NFT_TPROXY, $(P_XT)nft_tproxy),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_COMPAT,CONFIG_NFT_COMPAT, $(P_XT)nft_compat),)) + +$(eval $(if $(NF_KMOD),$(call nf_add,NFT_XFRM,CONFIG_NFT_XFRM, $(P_XT)nft_xfrm),)) + +# userland only +IPT_BUILTIN += $(NF_IPT-y) $(NF_IPT-m) +IPT_BUILTIN += $(IPT_CORE-y) $(IPT_CORE-m) +IPT_BUILTIN += $(NF_CONNTRACK-y) +IPT_BUILTIN += $(NF_CONNTRACK6-y) +IPT_BUILTIN += $(IPT_CONNTRACK-y) +IPT_BUILTIN += $(IPT_CONNTRACK_EXTRA-y) +IPT_BUILTIN += $(IPT_EXTRA-y) +IPT_BUILTIN += $(IPT_PHYSDEV-y) +IPT_BUILTIN += $(IPT_FILTER-y) +IPT_BUILTIN += $(IPT_FLOW-y) $(IPT_FLOW-m) +IPT_BUILTIN += $(IPT_IPOPT-y) +IPT_BUILTIN += $(IPT_IPRANGE-y) +IPT_BUILTIN += $(IPT_CLUSTER-y) +IPT_BUILTIN += $(IPT_CLUSTERIP-y) +IPT_BUILTIN += $(IPT_IPSEC-y) +IPT_BUILTIN += $(IPT_IPV6-y) $(IPT_IPV6-m) +IPT_BUILTIN += $(NF_NAT-y) +IPT_BUILTIN += $(NF_NAT6-y) +IPT_BUILTIN += $(IPT_NAT-y) +IPT_BUILTIN += $(IPT_NAT6-y) +IPT_BUILTIN += $(IPT_NAT_EXTRA-y) +IPT_BUILTIN += $(NF_NATHELPER-y) +IPT_BUILTIN += $(NF_NATHELPER_EXTRA-y) +IPT_BUILTIN += $(IPT_TPROXY-y) +IPT_BUILTIN += $(NFNETLINK-y) +IPT_BUILTIN += $(NFNETLINK_LOG-y) +IPT_BUILTIN += $(NFNETLINK_QUEUE-y) +IPT_BUILTIN += $(EBTABLES-y) +IPT_BUILTIN += $(EBTABLES_IP4-y) +IPT_BUILTIN += $(EBTABLES_IP6-y) +IPT_BUILTIN += $(EBTABLES_WATCHERS-y) + +endif # __inc_netfilter diff --git a/include/nls.mk b/include/nls.mk new file mode 100644 index 0000000000..163e480932 --- /dev/null +++ b/include/nls.mk @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2011-2020 OpenWrt.org + +# iconv full +ifeq ($(CONFIG_BUILD_NLS),y) + ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-full + ICONV_FULL:=1 + + INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-full + INTL_FULL:=1 + +# iconv stub +else + ICONV_PREFIX:=$(STAGING_DIR)/usr/lib/libiconv-stub + ICONV_FULL:= + + INTL_PREFIX:=$(STAGING_DIR)/usr/lib/libintl-stub + INTL_FULL:= +endif + +PKG_CONFIG_DEPENDS += CONFIG_BUILD_NLS +PKG_BUILD_DEPENDS += !BUILD_NLS:libiconv + +ICONV_DEPENDS:=+BUILD_NLS:libiconv-full +ICONV_CFLAGS:=-I$(ICONV_PREFIX)/include +ICONV_CPPFLAGS:=-I$(ICONV_PREFIX)/include +ICONV_LDFLAGS:=-L$(ICONV_PREFIX)/lib -Wl,-rpath-link=$(ICONV_PREFIX)/lib + +INTL_DEPENDS:=+BUILD_NLS:libintl-full +INTL_CFLAGS:=-I$(INTL_PREFIX)/include +INTL_CPPFLAGS:=-I$(INTL_PREFIX)/include +INTL_LDFLAGS:=-L$(INTL_PREFIX)/lib -Wl,-rpath-link=$(INTL_PREFIX)/lib + +TARGET_CFLAGS += $(ICONV_CFLAGS) $(INTL_CFLAGS) +TARGET_CPPFLAGS += $(ICONV_CPPFLAGS) $(INTL_CPPFLAGS) +TARGET_LDFLAGS += $(ICONV_LDFLAGS) $(INTL_LDFLAGS) diff --git a/include/package-bin.mk b/include/package-bin.mk new file mode 100644 index 0000000000..4ca49218e9 --- /dev/null +++ b/include/package-bin.mk @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2007-2020 OpenWrt.org + +ifeq ($(DUMP),) + define BuildTarget/bin + TARGET_VARIANT=$(if $(ALL_VARIANTS),$(if $(VARIANT),$(filter-out *,$(VARIANT)),$(firstword $(ALL_VARIANTS)))) + ifeq ($(if $(TARGET_VARIANT),$(BUILD_VARIANT)),$(TARGET_VARIANT)) + ifdef Package/$(1)/install + ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),) + $(_pkg_target)compile: $(PKG_BUILD_DIR)/.pkgdir/$(1).installed + compile: install-bin-$(1) + else + compile: $(1)-disabled + $(1)-disabled: + @echo "WARNING: skipping $(1) -- package not selected" >&2 + endif + endif + endif + + $(PKG_BUILD_DIR)/.pkgdir/$(1).installed: $(STAMP_BUILT) + rm -rf $(PKG_BUILD_DIR)/.pkgdir/$(1) $$@ + mkdir -p $(PKG_BUILD_DIR)/.pkgdir/$(1) + $(call Package/$(1)/install,$(PKG_BUILD_DIR)/.pkgdir/$(1)) + touch $$@ + + install-bin-$(1): $(PKG_BUILD_DIR)/.pkgdir/$(1).installed + rm -rf $(BIN_DIR)/$(1) + -rmdir $(PKG_BUILD_DIR)/.pkgdir/$(1) >/dev/null 2>/dev/null + if [ -d $(PKG_BUILD_DIR)/.pkgdir/$(1) ]; then \ + $(INSTALL_DIR) $(BIN_DIR)/$(1) && \ + $(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(BIN_DIR)/$(1)/; \ + fi + + clean-$(1): + rm -rf $(BIN_DIR)/$(1) + + clean: clean-$(1) + .PHONY: install-bin-$(1) + endef +endif diff --git a/include/package-defaults.mk b/include/package-defaults.mk new file mode 100644 index 0000000000..3ee3a965f2 --- /dev/null +++ b/include/package-defaults.mk @@ -0,0 +1,162 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +PKG_DEFAULT_DEPENDS = +libc +USE_GLIBC:librt +USE_GLIBC:libpthread + +ifneq ($(PKG_NAME),toolchain) + PKG_FIXUP_DEPENDS = $(if $(filter kmod-%,$(1)),$(2),$(PKG_DEFAULT_DEPENDS) $(filter-out $(PKG_DEFAULT_DEPENDS),$(2))) +else + PKG_FIXUP_DEPENDS = $(2) +endif + +define Package/Default + CONFIGFILE:= + SECTION:=opt + CATEGORY:=Extra packages + DEPENDS:= + MDEPENDS:= + CONFLICTS:= + PROVIDES:= + EXTRA_DEPENDS:= + MAINTAINER:=$(PKG_MAINTAINER) + SOURCE:=$(patsubst $(TOPDIR)/%,%,$(CURDIR)) + ifneq ($(PKG_VERSION),) + ifneq ($(PKG_RELEASE),) + VERSION:=$(PKG_VERSION)-$(PKG_RELEASE) + else + VERSION:=$(PKG_VERSION) + endif + else + VERSION:=$(PKG_RELEASE) + endif + ABI_VERSION:= + ifneq ($(PKG_FLAGS),) + PKGFLAGS:=$(PKG_FLAGS) + else + PKGFLAGS:= + endif + ifneq ($(ARCH_PACKAGES),) + PKGARCH:=$(ARCH_PACKAGES) + else + PKGARCH:=$(BOARD) + endif + DEFAULT:= + MENU:= + SUBMENU:= + SUBMENUDEP:= + TITLE:= + KCONFIG:= + BUILDONLY:= + HIDDEN:= + URL:= + VARIANT:= + DEFAULT_VARIANT:= + USERID:= + ALTERNATIVES:= + LICENSE:=$(PKG_LICENSE) + LICENSE_FILES:=$(PKG_LICENSE_FILES) + FILE_MODES:=$(PKG_FILE_MODES) +endef + +Build/Patch:=$(Build/Patch/Default) +ifneq ($(strip $(PKG_UNPACK)),) + define Build/Prepare/Default + $(PKG_UNPACK) + [ ! -d ./src/ ] || $(CP) ./src/. $(PKG_BUILD_DIR) + $(Build/Patch) + endef +endif + +EXTRA_CXXFLAGS = $(EXTRA_CFLAGS) +ifeq ($(CONFIG_BUILD_NLS),y) + DISABLE_NLS:= +else + DISABLE_NLS:=--disable-nls +endif + +CONFIGURE_PREFIX:=/usr +CONFIGURE_ARGS = \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --program-prefix="" \ + --program-suffix="" \ + --prefix=$(CONFIGURE_PREFIX) \ + --exec-prefix=$(CONFIGURE_PREFIX) \ + --bindir=$(CONFIGURE_PREFIX)/bin \ + --sbindir=$(CONFIGURE_PREFIX)/sbin \ + --libexecdir=$(CONFIGURE_PREFIX)/lib \ + --sysconfdir=/etc \ + --datadir=$(CONFIGURE_PREFIX)/share \ + --localstatedir=/var \ + --mandir=$(CONFIGURE_PREFIX)/man \ + --infodir=$(CONFIGURE_PREFIX)/info \ + $(DISABLE_NLS) \ + $(DISABLE_IPV6) + +CONFIGURE_VARS = \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ + CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)" \ + CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \ + +CONFIGURE_PATH = . +CONFIGURE_CMD = ./configure + +replace_script=$(FIND) $(1) -name $(2) | $(XARGS) chmod u+w; \ + $(FIND) $(1) -name $(2) | $(XARGS) -n1 cp --remove-destination \ + $(SCRIPT_DIR)/$(2); + +define Build/Configure/Default + (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/$(strip $(3)); \ + if [ -x $(CONFIGURE_CMD) ]; then \ + $(call replace_script,$(PKG_BUILD_DIR)/$(3),config.guess) \ + $(call replace_script,$(PKG_BUILD_DIR)/$(3),config.sub) \ + $(CONFIGURE_VARS) \ + $(2) \ + $(CONFIGURE_CMD) \ + $(CONFIGURE_ARGS) \ + $(1); \ + fi; \ + ) +endef + +MAKE_VARS = \ + CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ + CXXFLAGS="$(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" + +MAKE_FLAGS = \ + $(TARGET_CONFIGURE_OPTS) \ + CROSS="$(TARGET_CROSS)" \ + ARCH="$(ARCH)" + +MAKE_INSTALL_FLAGS = \ + $(MAKE_FLAGS) \ + DESTDIR="$(PKG_INSTALL_DIR)" + +MAKE_PATH ?= . + +define Build/Compile/Default + +$(MAKE_VARS) \ + $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \ + $(MAKE_FLAGS) \ + $(1); +endef + +define Build/Install/Default + $(MAKE_VARS) \ + $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \ + $(MAKE_INSTALL_FLAGS) \ + $(if $(1), $(1), install); +endef + +define Build/Dist/Default + $(call Build/Compile/Default, DESTDIR="$(PKG_BUILD_DIR)/tmp" CC="$(TARGET_CC)" dist) +endef + +define Build/DistCheck/Default + $(call Build/Compile/Default, DESTDIR="$(PKG_BUILD_DIR)/tmp" CC="$(TARGET_CC)" distcheck) +endef diff --git a/include/package-dumpinfo.mk b/include/package-dumpinfo.mk new file mode 100644 index 0000000000..597452e4b9 --- /dev/null +++ b/include/package-dumpinfo.mk @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +ifneq ($(DUMP),) + + +define SOURCE_INFO +$(if $(PKG_BUILD_DEPENDS),Build-Depends: $(PKG_BUILD_DEPENDS) +)$(if $(HOST_BUILD_DEPENDS),Build-Depends/host: $(HOST_BUILD_DEPENDS) +)$(if $(BUILD_TYPES),Build-Types: $(BUILD_TYPES) +) + +endef + +define Dumpinfo/Package +$(info $(SOURCE_INFO)Package: $(1) +$(if $(MENU),Menu: $(MENU) +)$(if $(SUBMENU),Submenu: $(SUBMENU) +)$(if $(SUBMENUDEP),Submenu-Depends: $(SUBMENUDEP) +)$(if $(DEFAULT),Default: $(DEFAULT) +)$(if $(findstring $(PREREQ_CHECK),1),Prereq-Check: 1 +)Version: $(VERSION) +Depends: $(call PKG_FIXUP_DEPENDS,$(1),$(DEPENDS)) +Conflicts: $(CONFLICTS) +Menu-Depends: $(MDEPENDS) +Provides: $(PROVIDES) +$(if $(VARIANT),Build-Variant: $(VARIANT) +$(if $(DEFAULT_VARIANT),Default-Variant: $(VARIANT) +))Section: $(SECTION) +Category: $(CATEGORY) +$(if $(filter nonshared,$(PKGFLAGS)),,Repository: $(if $(FEED),$(FEED),base) +)Title: $(TITLE) +Maintainer: $(MAINTAINER) +$(if $(USERID),Require-User: $(USERID) +)Source: $(PKG_SOURCE) +$(if $(LICENSE),License: $(LICENSE) +)$(if $(LICENSE_FILES),LicenseFiles: $(LICENSE_FILES) +)Type: $(if $(Package/$(1)/targets),$(Package/$(1)/targets),$(if $(PKG_TARGETS),$(PKG_TARGETS),ipkg)) +$(if $(KCONFIG),Kernel-Config: $(KCONFIG) +)$(if $(BUILDONLY),Build-Only: $(BUILDONLY) +)$(if $(HIDDEN),Hidden: $(HIDDEN) +)Description: $(if $(Package/$(1)/description),$(Package/$(1)/description),$(TITLE)) +$(if $(URL),$(URL) +)$(MAINTAINER) +@@ +$(if $(Package/$(1)/config),Config: +$(Package/$(1)/config) +@@ +)) +SOURCE_INFO := +endef + +dumpinfo: FORCE + $(if $(SOURCE_INFO),$(info $(SOURCE_INFO))) + +endif diff --git a/include/package-ipkg.mk b/include/package-ipkg.mk new file mode 100644 index 0000000000..3063a86a28 --- /dev/null +++ b/include/package-ipkg.mk @@ -0,0 +1,276 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +ifndef DUMP + include $(INCLUDE_DIR)/feeds.mk +endif + +IPKG_REMOVE:= \ + $(SCRIPT_DIR)/ipkg-remove + +IPKG_STATE_DIR:=$(TARGET_DIR)/usr/lib/opkg + +# Generates a make statement to return a wildcard for candidate ipkg files +# 1: package name +define gen_ipkg_wildcard + $(1)$$(if $$(filter -%,$$(ABIV_$(1))),,[^a-z-])* +endef + +# 1: package name +# 2: candidate ipk files +define remove_ipkg_files + $(if $(strip $(2)),$(IPKG_REMOVE) $(1) $(2)) +endef + +# 1: package name +# 2: variable name +# 3: variable suffix +# 4: file is a script +define BuildIPKGVariable +ifdef Package/$(1)/$(2) + $$(IPKG_$(1)) : VAR_$(2)$(3)=$$(Package/$(1)/$(2)) + $(call shexport,Package/$(1)/$(2)) + $(1)_COMMANDS += echo "$$$$$$$$$(call shvar,Package/$(1)/$(2))" > $(2)$(3); $(if $(4),chmod 0755 $(2)$(3);) +endif +endef + +PARENL :=( +PARENR :=) + +dep_split=$(subst :,$(space),$(1)) +dep_rem=$(subst !,,$(subst $(strip $(PARENL)),,$(subst $(strip $(PARENR)),,$(word 1,$(call dep_split,$(1)))))) +dep_and=dep_and_res:=$$(and $(subst $(space),$(comma),$(foreach cond,$(subst &&, ,$(1)),$$(CONFIG_$(cond))))) +dep_confvar=$(strip $(foreach cond,$(subst ||, ,$(call dep_rem,$(1))),$(eval $(call dep_and,$(cond)))$(dep_and_res))) +dep_pos=$(if $(call dep_confvar,$(1)),$(call dep_val,$(1))) +dep_neg=$(if $(call dep_confvar,$(1)),,$(call dep_val,$(1))) +dep_if=$(if $(findstring !,$(1)),$(call dep_neg,$(1)),$(call dep_pos,$(1))) +dep_val=$(word 2,$(call dep_split,$(1))) +strip_deps=$(strip $(subst +,,$(filter-out @%,$(1)))) +filter_deps=$(foreach dep,$(call strip_deps,$(1)),$(if $(findstring :,$(dep)),$(call dep_if,$(dep)),$(dep))) + +define AddDependency + $$(if $(1),$$(if $(2),$$(foreach pkg,$(1),$$(IPKG_$$(pkg))): $$(foreach pkg,$(2),$$(IPKG_$$(pkg))))) +endef + +define FixupReverseDependencies + DEPS := $$(filter %:$(1),$$(IDEPEND)) + DEPS := $$(patsubst %:$(1),%,$$(DEPS)) + DEPS := $$(filter $$(DEPS),$$(IPKGS)) + $(call AddDependency,$$(DEPS),$(1)) +endef + +define FixupDependencies + DEPS := $$(filter $(1):%,$$(IDEPEND)) + DEPS := $$(patsubst $(1):%,%,$$(DEPS)) + DEPS := $$(filter $$(DEPS),$$(IPKGS)) + $(call AddDependency,$(1),$$(DEPS)) +endef + +ifneq ($(PKG_NAME),toolchain) + define CheckDependencies + @( \ + rm -f $(PKG_INFO_DIR)/$(1).missing; \ + ( \ + export \ + READELF=$(TARGET_CROSS)readelf \ + OBJCOPY=$(TARGET_CROSS)objcopy \ + XARGS="$(XARGS)"; \ + $(SCRIPT_DIR)/gen-dependencies.sh "$$(IDIR_$(1))"; \ + ) | while read FILE; do \ + grep -qxF "$$$$FILE" $(PKG_INFO_DIR)/$(1).provides || \ + echo "$$$$FILE" >> $(PKG_INFO_DIR)/$(1).missing; \ + done; \ + if [ -f "$(PKG_INFO_DIR)/$(1).missing" ]; then \ + echo "Package $(1) is missing dependencies for the following libraries:" >&2; \ + cat "$(PKG_INFO_DIR)/$(1).missing" >&2; \ + false; \ + fi; \ + ) + endef +endif + +_addsep=$(word 1,$(1))$(foreach w,$(wordlist 2,$(words $(1)),$(1)),$(strip $(2) $(w))) +_cleansep=$(subst $(space)$(2)$(space),$(2)$(space),$(1)) +mergelist=$(call _cleansep,$(call _addsep,$(1),$(comma)),$(comma)) +addfield=$(if $(strip $(2)),$(1): $(2)) +_define=define +_endef=endef + +ifeq ($(DUMP),) + define BuildTarget/ipkg + ABIV_$(1):=$(call FormatABISuffix,$(1),$(ABI_VERSION)) + PDIR_$(1):=$(call FeedPackageDir,$(1)) + IPKG_$(1):=$$(PDIR_$(1))/$(1)$$(ABIV_$(1))_$(VERSION)_$(PKGARCH).ipk + IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg-$(PKGARCH)/$(1) + KEEP_$(1):=$(strip $(call Package/$(1)/conffiles)) + + TARGET_VARIANT:=$$(if $(ALL_VARIANTS),$$(if $$(VARIANT),$$(filter-out *,$$(VARIANT)),$(firstword $(ALL_VARIANTS)))) + ifeq ($(BUILD_VARIANT),$$(if $$(TARGET_VARIANT),$$(TARGET_VARIANT),$(BUILD_VARIANT))) + do_install= + ifdef Package/$(1)/install + do_install=yes + endif + ifdef Package/$(1)/install-overlay + do_install=yes + endif + ifdef do_install + ifneq ($(CONFIG_PACKAGE_$(1))$(DEVELOPER),) + IPKGS += $(1) + $(_pkg_target)compile: $$(IPKG_$(1)) $(PKG_INFO_DIR)/$(1).provides $(PKG_BUILD_DIR)/.pkgdir/$(1).installed + prepare-package-install: $$(IPKG_$(1)) + compile: $(STAGING_DIR_ROOT)/stamp/.$(1)_installed + else + $(if $(CONFIG_PACKAGE_$(1)),$$(info WARNING: skipping $(1) -- package not selected)) + endif + + .PHONY: $(PKG_INSTALL_STAMP).$(1) + ifeq ($(CONFIG_PACKAGE_$(1)),y) + compile: $(PKG_INSTALL_STAMP).$(1) + endif + $(PKG_INSTALL_STAMP).$(1): prepare-package-install + echo "$(1)" >> $(PKG_INSTALL_STAMP) + else + $(if $(CONFIG_PACKAGE_$(1)),$$(warning WARNING: skipping $(1) -- package has no install section)) + endif + endif + + DEPENDS:=$(call PKG_FIXUP_DEPENDS,$(1),$(DEPENDS)) + IDEPEND_$(1):=$$(call filter_deps,$$(DEPENDS)) + IDEPEND += $$(patsubst %,$(1):%,$$(IDEPEND_$(1))) + $(FixupDependencies) + $(FixupReverseDependencies) + + $(eval $(call BuildIPKGVariable,$(1),conffiles)) + $(eval $(call BuildIPKGVariable,$(1),preinst,,1)) + $(eval $(call BuildIPKGVariable,$(1),postinst,-pkg,1)) + $(eval $(call BuildIPKGVariable,$(1),prerm,-pkg,1)) + $(eval $(call BuildIPKGVariable,$(1),postrm,,1)) + + $(PKG_BUILD_DIR)/.pkgdir/$(1).installed : export PATH=$$(TARGET_PATH_PKG) + $(PKG_BUILD_DIR)/.pkgdir/$(1).installed: $(STAMP_BUILT) + rm -rf $$@ $(PKG_BUILD_DIR)/.pkgdir/$(1) + mkdir -p $(PKG_BUILD_DIR)/.pkgdir/$(1) + $(call Package/$(1)/install,$(PKG_BUILD_DIR)/.pkgdir/$(1)) + $(call Package/$(1)/install_lib,$(PKG_BUILD_DIR)/.pkgdir/$(1)) + touch $$@ + + $(STAGING_DIR_ROOT)/stamp/.$(1)_installed: $(PKG_BUILD_DIR)/.pkgdir/$(1).installed + mkdir -p $(STAGING_DIR_ROOT)/stamp + $(if $(ABI_VERSION),echo '$(ABI_VERSION)' | cmp -s - $(PKG_INFO_DIR)/$(1).version || { \ + echo '$(ABI_VERSION)' > $(PKG_INFO_DIR)/$(1).version; \ + $(foreach pkg,$(filter-out $(1),$(PROVIDES)), \ + cp $(PKG_INFO_DIR)/$(1).version $(PKG_INFO_DIR)/$(pkg).version; \ + ) \ + } ) + $(call locked,$(CP) $(PKG_BUILD_DIR)/.pkgdir/$(1)/. $(STAGING_DIR_ROOT)/,root-copy) + touch $$@ + + Package/$(1)/DEPENDS := $$(call mergelist,$$(foreach dep,$$(filter-out @%,$$(IDEPEND_$(1))),$$(dep)$$(call GetABISuffix,$$(dep)))) + ifneq ($$(EXTRA_DEPENDS),) + Package/$(1)/DEPENDS := $$(EXTRA_DEPENDS)$$(if $$(Package/$(1)/DEPENDS),$$(comma) $$(Package/$(1)/DEPENDS)) + endif + +$(_define) Package/$(1)/CONTROL +Package: $(1)$$(ABIV_$(1)) +Version: $(VERSION) +$$(call addfield,Depends,$$(Package/$(1)/DEPENDS) +)$$(call addfield,Conflicts,$$(call mergelist,$(CONFLICTS)) +)$$(call addfield,Provides,$$(call mergelist,$$(filter-out $(1)$$(ABIV_$(1)),$(PROVIDES)$$(if $$(ABIV_$(1)), $(1) $(foreach provide,$(PROVIDES),$(provide)$$(ABIV_$(1)))))) +)$$(call addfield,Alternatives,$$(call mergelist,$(ALTERNATIVES)) +)$$(call addfield,Source,$(SOURCE) +)$$(call addfield,SourceName,$(1) +)$$(call addfield,License,$(LICENSE) +)$$(call addfield,LicenseFiles,$(LICENSE_FILES) +)$$(call addfield,Section,$(SECTION) +)$$(call addfield,Require-User,$(USERID) +)$$(call addfield,SourceDateEpoch,$(PKG_SOURCE_DATE_EPOCH) +)$$(if $$(ABIV_$(1)),ABIVersion: $$(ABIV_$(1)) +)$(if $(PKG_CPE_ID),CPE-ID: $(PKG_CPE_ID) +)$(if $(filter hold,$(PKG_FLAGS)),Status: unknown hold not-installed +)$(if $(filter essential,$(PKG_FLAGS)),Essential: yes +)$(if $(MAINTAINER),Maintainer: $(MAINTAINER) +)Architecture: $(PKGARCH) +Installed-Size: 0 +$(_endef) + + $$(IPKG_$(1)) : export CONTROL=$$(Package/$(1)/CONTROL) + $$(IPKG_$(1)) : export DESCRIPTION=$$(Package/$(1)/description) + $$(IPKG_$(1)) : export PATH=$$(TARGET_PATH_PKG) + $$(IPKG_$(1)) : export PKG_SOURCE_DATE_EPOCH:=$(PKG_SOURCE_DATE_EPOCH) + $(PKG_INFO_DIR)/$(1).provides $$(IPKG_$(1)): $(STAMP_BUILT) $(INCLUDE_DIR)/package-ipkg.mk + @rm -rf $$(IDIR_$(1)); \ + $$(call remove_ipkg_files,$(1),$$(call opkg_package_files,$(call gen_ipkg_wildcard,$(1)))) + mkdir -p $(PACKAGE_DIR) $$(IDIR_$(1))/CONTROL $(PKG_INFO_DIR) + $(call Package/$(1)/install,$$(IDIR_$(1))) + $(if $(Package/$(1)/install-overlay),mkdir -p $(PACKAGE_DIR) $$(IDIR_$(1))/rootfs-overlay) + $(call Package/$(1)/install-overlay,$$(IDIR_$(1))/rootfs-overlay) + -find $$(IDIR_$(1)) -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| $(XARGS) rm -rf + @( \ + find $$(IDIR_$(1)) -name lib\*.so\* -or -name \*.ko | awk -F/ '{ print $$$$NF }'; \ + for file in $$(patsubst %,$(PKG_INFO_DIR)/%.provides,$$(IDEPEND_$(1))); do \ + if [ -f "$$$$file" ]; then \ + cat $$$$file; \ + fi; \ + done; $(Package/$(1)/extra_provides) \ + ) | sort -u > $(PKG_INFO_DIR)/$(1).provides + $(if $(PROVIDES),@for pkg in $(filter-out $(1),$(PROVIDES)); do cp $(PKG_INFO_DIR)/$(1).provides $(PKG_INFO_DIR)/$$$$pkg.provides; done) + $(CheckDependencies) + + $(RSTRIP) $$(IDIR_$(1)) + + ifneq ($$(CONFIG_IPK_FILES_CHECKSUMS),) + (cd $$(IDIR_$(1)); \ + ( \ + find . -type f \! -path ./CONTROL/\* -exec $(MKHASH) sha256 -n \{\} \; 2> /dev/null | \ + sed 's|\([[:blank:]]\)\./| \1/|' > $$(IDIR_$(1))/CONTROL/files-sha256sum \ + ) || true \ + ) + endif + (cd $$(IDIR_$(1))/CONTROL; \ + ( \ + echo "$$$$CONTROL"; \ + printf "Description: "; echo "$$$$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; \ + ) > control; \ + chmod 644 control; \ + ( \ + echo "#!/bin/sh"; \ + echo "[ \"\$$$${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; \ + echo "[ -s "\$$$${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; \ + echo ". \$$$${IPKG_INSTROOT}/lib/functions.sh"; \ + echo "default_postinst \$$$$0 \$$$$@"; \ + ) > postinst; \ + ( \ + echo "#!/bin/sh"; \ + echo "[ -s "\$$$${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; \ + echo ". \$$$${IPKG_INSTROOT}/lib/functions.sh"; \ + echo "default_prerm \$$$$0 \$$$$@"; \ + ) > prerm; \ + chmod 0755 postinst prerm; \ + $($(1)_COMMANDS) \ + ) + + ifneq ($$(KEEP_$(1)),) + @( \ + keepfiles=""; \ + for x in $$(KEEP_$(1)); do \ + [ -f "$$(IDIR_$(1))/$$$$x" ] || keepfiles="$$$${keepfiles:+$$$$keepfiles }$$$$x"; \ + done; \ + [ -z "$$$$keepfiles" ] || { \ + mkdir -p $$(IDIR_$(1))/lib/upgrade/keep.d; \ + for x in $$$$keepfiles; do echo $$$$x >> $$(IDIR_$(1))/lib/upgrade/keep.d/$(1); done; \ + }; \ + ) + endif + + $(INSTALL_DIR) $$(PDIR_$(1)) + $(FAKEROOT) $(STAGING_DIR_HOST)/bin/bash $(SCRIPT_DIR)/ipkg-build -m "$(FILE_MODES)" $$(IDIR_$(1)) $$(PDIR_$(1)) + @[ -f $$(IPKG_$(1)) ] + + $(1)-clean: + $$(call remove_ipkg_files,$(1),$$(call opkg_package_files,$(call gen_ipkg_wildcard,$(1)))) + + clean: $(1)-clean + + endef +endif diff --git a/include/package-seccomp.mk b/include/package-seccomp.mk new file mode 100644 index 0000000000..86e834450d --- /dev/null +++ b/include/package-seccomp.mk @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2015-2020 OpenWrt.org + +PKG_CONFIG_DEPENDS+= CONFIG_KERNEL_SECCOMP + +ifeq ($(CONFIG_KERNEL_SECCOMP),y) + define InstallSeccomp + $(INSTALL_DIR) $(1)/etc/seccomp + $(INSTALL_DATA) $(2) $(1)/etc/seccomp/ + endef +endif diff --git a/include/package.mk b/include/package.mk new file mode 100644 index 0000000000..368bf0d7ca --- /dev/null +++ b/include/package.mk @@ -0,0 +1,354 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +__package_mk:=1 + +all: $(if $(DUMP),dumpinfo,$(if $(CHECK),check,compile)) + +include $(INCLUDE_DIR)/download.mk + +PKG_BUILD_DIR ?= $(BUILD_DIR)/$(if $(BUILD_VARIANT),$(PKG_NAME)-$(BUILD_VARIANT)/)$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) +PKG_INSTALL_DIR ?= $(PKG_BUILD_DIR)/ipkg-install +PKG_BUILD_PARALLEL ?= +PKG_USE_MIPS16 ?= 1 +PKG_IREMAP ?= 1 +PKG_SKIP_DOWNLOAD=$(USE_SOURCE_DIR)$(USE_GIT_TREE)$(USE_GIT_SRC_CHECKOUT) + +MAKE_J:=$(if $(MAKE_JOBSERVER),$(MAKE_JOBSERVER) $(if $(filter 3.% 4.0 4.1,$(MAKE_VERSION)),-j)) + +PKG_SOURCE_DATE_EPOCH:=$(if $(DUMP),,$(shell $(TOPDIR)/scripts/get_source_date_epoch.sh $(CURDIR))) + +ifeq ($(strip $(PKG_BUILD_PARALLEL)),0) +PKG_JOBS?=-j1 +else +PKG_JOBS?=$(if $(PKG_BUILD_PARALLEL),$(MAKE_J),-j1) +endif +ifdef CONFIG_USE_MIPS16 + ifeq ($(strip $(PKG_USE_MIPS16)),1) + TARGET_ASFLAGS_DEFAULT = $(filter-out -mips16 -minterlink-mips16,$(TARGET_CFLAGS)) + TARGET_CFLAGS += -mips16 -minterlink-mips16 + endif +endif +ifeq ($(strip $(PKG_IREMAP)),1) + IREMAP_CFLAGS = $(call iremap,$(PKG_BUILD_DIR),$(notdir $(PKG_BUILD_DIR))) + TARGET_CFLAGS += $(IREMAP_CFLAGS) +endif + +include $(INCLUDE_DIR)/hardening.mk +include $(INCLUDE_DIR)/prereq.mk +include $(INCLUDE_DIR)/unpack.mk +include $(INCLUDE_DIR)/depends.mk + +ifneq ($(wildcard $(TOPDIR)/git-src/$(PKG_NAME)/.git),) + USE_GIT_SRC_CHECKOUT:=1 + QUILT:=1 +endif +ifneq ($(if $(CONFIG_SRC_TREE_OVERRIDE),$(wildcard ./git-src)),) + USE_GIT_TREE:=1 + QUILT:=1 +endif +ifdef USE_SOURCE_DIR + QUILT:=1 +endif +ifneq ($(wildcard $(PKG_BUILD_DIR)/.source_dir),) + QUILT:=1 +endif + +include $(INCLUDE_DIR)/quilt.mk + +find_library_dependencies = \ + $(wildcard $(patsubst %,$(STAGING_DIR)/pkginfo/%.version, \ + $(filter-out $(BUILD_PACKAGES), $(sort $(foreach dep4, \ + $(sort $(foreach dep3, \ + $(sort $(foreach dep2, \ + $(sort $(foreach dep1, \ + $(sort $(foreach dep0, \ + $(Package/$(1)/depends), \ + $(Package/$(dep0)/depends) $(dep0) \ + )), \ + $(Package/$(dep1)/depends) $(dep1) \ + )), \ + $(Package/$(dep2)/depends) $(dep2) \ + )), \ + $(Package/$(dep3)/depends) $(dep3) \ + )), \ + $(Package/$(dep4)/depends) $(dep4) \ + ))) \ + )) + + +PKG_DIR_NAME:=$(lastword $(subst /,$(space),$(CURDIR))) +STAMP_NO_AUTOREBUILD=$(wildcard $(PKG_BUILD_DIR)/.no_autorebuild) +PREV_STAMP_PREPARED:=$(if $(STAMP_NO_AUTOREBUILD),$(wildcard $(PKG_BUILD_DIR)/.prepared*)) +ifneq ($(PREV_STAMP_PREPARED),) + STAMP_PREPARED:=$(PREV_STAMP_PREPARED) + CONFIG_AUTOREBUILD:= +else + STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call $(if $(CONFIG_AUTOREMOVE),find_md5_reproducible,find_md5),${CURDIR} $(PKG_FILE_DEPENDS),))_$(call confvar,CONFIG_AUTOREMOVE $(PKG_PREPARED_DEPENDS))) +endif +STAMP_CONFIGURED=$(PKG_BUILD_DIR)/.configured$(if $(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS))) +STAMP_CONFIGURED_WILDCARD=$(PKG_BUILD_DIR)/.configured_* +STAMP_BUILT:=$(PKG_BUILD_DIR)/.built +STAMP_INSTALLED:=$(STAGING_DIR)/stamp/.$(PKG_DIR_NAME)$(if $(BUILD_VARIANT),.$(BUILD_VARIANT),)_installed + +STAGING_FILES_LIST:=$(PKG_DIR_NAME)$(if $(BUILD_VARIANT),.$(BUILD_VARIANT),).list + +define CleanStaging + rm -f $(STAMP_INSTALLED) + @-(\ + if [ -f $(STAGING_DIR)/packages/$(STAGING_FILES_LIST) ]; then \ + $(SCRIPT_DIR)/clean-package.sh \ + "$(STAGING_DIR)/packages/$(STAGING_FILES_LIST)" \ + "$(STAGING_DIR)"; \ + fi; \ + ) +endef + + +PKG_INSTALL_STAMP:=$(PKG_INFO_DIR)/$(PKG_DIR_NAME).$(if $(BUILD_VARIANT),$(BUILD_VARIANT),default).install + +include $(INCLUDE_DIR)/package-defaults.mk +include $(INCLUDE_DIR)/package-dumpinfo.mk +include $(INCLUDE_DIR)/package-ipkg.mk +include $(INCLUDE_DIR)/package-bin.mk +include $(INCLUDE_DIR)/autotools.mk + +_pkg_target:=$(if $(QUILT),,.) + +override MAKEFLAGS= +CONFIG_SITE:=$(INCLUDE_DIR)/site/$(ARCH) +CUR_MAKEFILE:=$(filter-out Makefile,$(firstword $(MAKEFILE_LIST))) +SUBMAKE:=$(NO_TRACE_MAKE) $(if $(CUR_MAKEFILE),-f $(CUR_MAKEFILE)) +PKG_CONFIG_PATH=$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/usr/share/pkgconfig +unexport QUIET CONFIG_SITE + +ifeq ($(DUMP)$(filter prereq clean refresh update,$(MAKECMDGOALS)),) + ifneq ($(if $(QUILT),,$(CONFIG_AUTOREBUILD)),) + define Build/Autoclean + $(PKG_BUILD_DIR)/.dep_files: $(STAMP_PREPARED) + $(call rdep,${CURDIR} $(PKG_FILE_DEPENDS),$(STAMP_PREPARED),$(PKG_BUILD_DIR)/.dep_files,-x "*/.dep_*") + $(if $(filter prepare,$(MAKECMDGOALS)),,$(call rdep,$(PKG_BUILD_DIR),$(STAMP_BUILT),,-x "*/.dep_*" -x "*/ipkg*")) + endef + endif +endif + +ifdef USE_GIT_SRC_CHECKOUT + define Build/Prepare/Default + mkdir -p $(PKG_BUILD_DIR) + ln -s $(TOPDIR)/git-src/$(PKG_NAME)/.git $(PKG_BUILD_DIR)/.git + ( cd $(PKG_BUILD_DIR); \ + git checkout .; \ + git submodule update --recursive; \ + git submodule foreach git config --unset core.worktree; \ + git submodule foreach git checkout .; \ + ) + endef +endif +ifdef USE_GIT_TREE + define Build/Prepare/Default + mkdir -p $(PKG_BUILD_DIR) + ln -s $(CURDIR)/git-src $(PKG_BUILD_DIR)/.git + ( cd $(PKG_BUILD_DIR); \ + git checkout .; \ + git submodule update --recursive; \ + git submodule foreach git config --unset core.worktree; \ + git submodule foreach git checkout .; \ + ) + endef +endif +ifdef USE_SOURCE_DIR + define Build/Prepare/Default + rm -rf $(PKG_BUILD_DIR) + $(if $(wildcard $(USE_SOURCE_DIR)/*),,@echo "Error: USE_SOURCE_DIR=$(USE_SOURCE_DIR) path not found"; false) + ln -snf $(USE_SOURCE_DIR) $(PKG_BUILD_DIR) + touch $(PKG_BUILD_DIR)/.source_dir + endef +endif + +define Build/Exports/Default + $(1) : export ACLOCAL_INCLUDE=$$(foreach p,$$(wildcard $$(STAGING_DIR)/usr/share/aclocal $$(STAGING_DIR)/usr/share/aclocal-* $$(STAGING_DIR_HOSTPKG)/share/aclocal $$(STAGING_DIR_HOSTPKG)/share/aclocal-* $$(STAGING_DIR)/host/share/aclocal $$(STAGING_DIR)/host/share/aclocal-*),-I $$(p)) + $(1) : export STAGING_PREFIX=$$(STAGING_DIR)/usr + $(1) : export PATH=$$(TARGET_PATH_PKG) + $(1) : export CONFIG_SITE:=$$(CONFIG_SITE) + $(1) : export PKG_CONFIG_PATH:=$$(PKG_CONFIG_PATH) + $(1) : export PKG_CONFIG_LIBDIR:=$$(PKG_CONFIG_PATH) +endef +Build/Exports=$(Build/Exports/Default) + +define Build/CoreTargets + STAMP_PREPARED:=$$(STAMP_PREPARED) + STAMP_CONFIGURED:=$$(STAMP_CONFIGURED) + + $(if $(QUILT),$(Build/Quilt)) + $(call Build/Autoclean) + $(call DefaultTargets) + + $(call check_download_integrity) + + download: + $(foreach hook,$(Hooks/Download), + $(call $(hook))$(sep) + ) + + $(STAMP_PREPARED) : export PATH=$$(TARGET_PATH_PKG) + $(STAMP_PREPARED): $(STAMP_PREPARED_DEPENDS) + @-rm -rf $(PKG_BUILD_DIR) + @mkdir -p $(PKG_BUILD_DIR) + touch $$@_check + $(foreach hook,$(Hooks/Prepare/Pre),$(call $(hook))$(sep)) + $(Build/Prepare) + $(foreach hook,$(Hooks/Prepare/Post),$(call $(hook))$(sep)) + touch $$@ + + $(call Build/Exports,$(STAMP_CONFIGURED)) + $(STAMP_CONFIGURED): $(STAMP_PREPARED) $(STAMP_CONFIGURED_DEPENDS) + rm -f $(STAMP_CONFIGURED_WILDCARD) + $(CleanStaging) + $(foreach hook,$(Hooks/Configure/Pre),$(call $(hook))$(sep)) + $(Build/Configure) + $(foreach hook,$(Hooks/Configure/Post),$(call $(hook))$(sep)) + touch $$@ + + $(call Build/Exports,$(STAMP_BUILT)) + $(STAMP_BUILT): $(STAMP_CONFIGURED) $(STAMP_BUILT_DEPENDS) + rm -f $$@ + touch $$@_check + $(foreach hook,$(Hooks/Compile/Pre),$(call $(hook))$(sep)) + $(Build/Compile) + $(foreach hook,$(Hooks/Compile/Post),$(call $(hook))$(sep)) + $(Build/Install) + $(foreach hook,$(Hooks/Install/Post),$(call $(hook))$(sep)) + touch $$@ + + $(STAMP_INSTALLED) : export PATH=$$(TARGET_PATH_PKG) + $(STAMP_INSTALLED): $(STAMP_BUILT) + rm -rf $(TMP_DIR)/stage-$(PKG_DIR_NAME) + mkdir -p $(TMP_DIR)/stage-$(PKG_DIR_NAME)/host $(STAGING_DIR)/packages + $(foreach hook,$(Hooks/InstallDev/Pre),\ + $(call $(hook),$(TMP_DIR)/stage-$(PKG_DIR_NAME),$(TMP_DIR)/stage-$(PKG_DIR_NAME)/host)$(sep)\ + ) + $(call Build/InstallDev,$(TMP_DIR)/stage-$(PKG_DIR_NAME),$(TMP_DIR)/stage-$(PKG_DIR_NAME)/host) + $(foreach hook,$(Hooks/InstallDev/Post),\ + $(call $(hook),$(TMP_DIR)/stage-$(PKG_DIR_NAME),$(TMP_DIR)/stage-$(PKG_DIR_NAME)/host)$(sep)\ + ) + if [ -f $(STAGING_DIR)/packages/$(STAGING_FILES_LIST) ]; then \ + $(SCRIPT_DIR)/clean-package.sh \ + "$(STAGING_DIR)/packages/$(STAGING_FILES_LIST)" \ + "$(STAGING_DIR)"; \ + fi + if [ -d $(TMP_DIR)/stage-$(PKG_DIR_NAME) ]; then \ + (cd $(TMP_DIR)/stage-$(PKG_DIR_NAME); find ./ > $(TMP_DIR)/stage-$(PKG_DIR_NAME).files); \ + $(call locked, \ + mv $(TMP_DIR)/stage-$(PKG_DIR_NAME).files $(STAGING_DIR)/packages/$(STAGING_FILES_LIST) && \ + $(CP) $(TMP_DIR)/stage-$(PKG_DIR_NAME)/* $(STAGING_DIR)/; \ + ,staging-dir); \ + fi + rm -rf $(TMP_DIR)/stage-$(PKG_DIR_NAME) + touch $$@ + + ifdef Build/InstallDev + $(_pkg_target)compile: $(STAMP_INSTALLED) + endif + + $(_pkg_target)prepare: $(STAMP_PREPARED) + $(_pkg_target)configure: $(STAMP_CONFIGURED) + $(_pkg_target)dist: $(STAMP_CONFIGURED) + $(_pkg_target)distcheck: $(STAMP_CONFIGURED) + + ifneq ($(CONFIG_AUTOREMOVE),) + compile: + -touch -r $(PKG_BUILD_DIR)/.built $(PKG_BUILD_DIR)/.autoremove 2>/dev/null >/dev/null + $(FIND) $(PKG_BUILD_DIR) -mindepth 1 -maxdepth 1 -not '(' -type f -and -name '.*' -and -size 0 ')' -and -not -name '.pkgdir' -print0 | \ + $(XARGS) -0 rm -rf + endif +endef + +define Build/DefaultTargets + $(if $(PKG_SKIP_DOWNLOAD),,$(if $(strip $(PKG_SOURCE_URL)),$(call Download,default))) + $(if $(DUMP),,$(Build/CoreTargets)) + + define Build/DefaultTargets + endef +endef + +define BuildPackage + $(eval $(Package/Default)) + $(eval $(Package/$(1))) + +ifdef DESCRIPTION +$$(error DESCRIPTION:= is obsolete, use Package/PKG_NAME/description) +endif + +ifndef Package/$(1)/description +define Package/$(1)/description + $(TITLE) +endef +endif + + BUILD_PACKAGES += $(1) + $(STAMP_PREPARED): $$(if $(QUILT)$(DUMP),,$(call find_library_dependencies,$(1))) + + $(foreach FIELD, TITLE CATEGORY SECTION VERSION, + ifeq ($($(FIELD)),) + $$(error Package/$(1) is missing the $(FIELD) field) + endif + ) + + $(if $(DUMP), \ + $(if $(CHECK),,$(Dumpinfo/Package)), \ + $(foreach target, \ + $(if $(Package/$(1)/targets),$(Package/$(1)/targets), \ + $(if $(PKG_TARGETS),$(PKG_TARGETS), ipkg) \ + ), $(BuildTarget/$(target)) \ + ) \ + ) + $(if $(PKG_HOST_ONLY),,$(call Build/DefaultTargets,$(1))) +endef + +define pkg_install_files + $(foreach install_file,$(1),$(INSTALL_DIR) $(3)/`dirname $(install_file)`; $(INSTALL_DATA) $(2)/$(install_file) $(3)/`dirname $(install_file)`;) +endef + +define pkg_install_bin + $(foreach install_apps,$(1),$(INSTALL_DIR) $(3)/`dirname $(install_apps)`; $(INSTALL_BIN) $(2)/$(install_apps) $(3)/`dirname $(install_apps)`;) +endef + +Build/Prepare=$(call Build/Prepare/Default,) +Build/Configure=$(call Build/Configure/Default,) +Build/Compile=$(call Build/Compile/Default,) +Build/Install=$(if $(PKG_INSTALL),$(call Build/Install/Default,)) +Build/Dist=$(call Build/Dist/Default,) +Build/DistCheck=$(call Build/DistCheck/Default,) + +.NOTPARALLEL: + +.PHONY: prepare-package-install +prepare-package-install: + @mkdir -p $(PKG_INFO_DIR) + @rm -f $(PKG_INSTALL_STAMP) + @echo "$(filter-out essential nonshared,$(PKG_FLAGS))" > $(PKG_INSTALL_STAMP).flags + +$(PACKAGE_DIR): + mkdir -p $@ + +compile: +.install: .compile +install: compile + +force-clean-build: FORCE + rm -rf $(PKG_BUILD_DIR) + +clean-build: $(if $(wildcard $(PKG_BUILD_DIR)/.autoremove),force-clean-build) + +clean: force-clean-build + $(CleanStaging) + $(call Build/UninstallDev,$(STAGING_DIR),$(STAGING_DIR)/host) + $(Build/Clean) + rm -f $(STAGING_DIR)/packages/$(STAGING_FILES_LIST) + +dist: + $(Build/Dist) + +distcheck: + $(Build/DistCheck) diff --git a/include/prereq-build.mk b/include/prereq-build.mk new file mode 100644 index 0000000000..79b597fb17 --- /dev/null +++ b/include/prereq-build.mk @@ -0,0 +1,216 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/prereq.mk + +SHELL:=sh +PKG_NAME:=Build dependency + + +# Required for the toolchain +$(eval $(call TestHostCommand,working-make, \ + Please install GNU make v4.1 or later., \ + $(MAKE) -v | grep -E 'Make (4\.[1-9]|[5-9]\.)')) + +$(eval $(call TestHostCommand,case-sensitive-fs, \ + libreCMC can only be built on a case-sensitive filesystem, \ + rm -f $(TMP_DIR)/test.*; touch $(TMP_DIR)/test.fs; \ + test ! -f $(TMP_DIR)/test.FS)) + +$(eval $(call TestHostCommand,proper-umask, \ + Please build with umask 022 - other values produce broken packages, \ + umask | grep -xE 0?0[012][012])) + +ifndef IB +$(eval $(call SetupHostCommand,gcc, \ + Please install the GNU C Compiler (gcc) 6 or later, \ + $(CC) -dumpversion | grep -E '^([6-9]\.?|1[0-9]\.?)', \ + gcc -dumpversion | grep -E '^([6-9]\.?|1[0-9]\.?)', \ + gcc --version | grep -E 'Apple.(LLVM|clang)' )) + +$(eval $(call TestHostCommand,working-gcc, \ + Please reinstall the GNU C Compiler (6 or later) - \ + it appears to be broken, \ + echo 'int main(int argc, char **argv) { return 0; }' | \ + gcc -x c -o $(TMP_DIR)/a.out -)) + +$(eval $(call SetupHostCommand,g++, \ + Please install the GNU C++ Compiler (g++) 6 or later, \ + $(CXX) -dumpversion | grep -E '^([6-9]\.?|1[0-9]\.?)', \ + g++ -dumpversion | grep -E '^([6-9]\.?|1[0-9]\.?)', \ + g++ --version | grep -E 'Apple.(LLVM|clang)' )) + +$(eval $(call TestHostCommand,working-g++, \ + Please reinstall the GNU C++ Compiler (6 or later) - \ + it appears to be broken, \ + echo 'int main(int argc, char **argv) { return 0; }' | \ + g++ -x c++ -o $(TMP_DIR)/a.out - -lstdc++ && \ + $(TMP_DIR)/a.out)) + +$(eval $(call TestHostCommand,ncurses, \ + Please install ncurses. (Missing libncurses.so or ncurses.h), \ + echo 'int main(int argc, char **argv) { initscr(); return 0; }' | \ + gcc -include ncurses.h -x c -o $(TMP_DIR)/a.out - -lncurses)) +endif # IB + +ifeq ($(HOST_OS),Linux) + zlib_link_flags := -Wl,-Bstatic -lz -Wl,-Bdynamic +else + zlib_link_flags := -lz +endif + +$(eval $(call TestHostCommand,perl-data-dumper, \ + Please install the Perl Data::Dumper module, \ + perl -MData::Dumper -e 1)) + +$(eval $(call TestHostCommand,perl-findbin, \ + Please install the Perl FindBin module, \ + perl -MFindBin -e 1)) + +$(eval $(call TestHostCommand,perl-file-copy, \ + Please install the Perl File::Copy module, \ + perl -MFile::Copy -e 1)) + +$(eval $(call TestHostCommand,perl-file-compare, \ + Please install the Perl File::Compare module, \ + perl -MFile::Compare -e 1)) + +$(eval $(call TestHostCommand,perl-thread-queue, \ + Please install the Perl Thread::Queue module, \ + perl -MThread::Queue -e 1)) + +$(eval $(call SetupHostCommand,tar,Please install GNU 'tar', \ + gtar --version 2>&1 | grep GNU, \ + gnutar --version 2>&1 | grep GNU, \ + tar --version 2>&1 | grep GNU)) + +$(eval $(call SetupHostCommand,find,Please install GNU 'find', \ + gfind --version 2>&1 | grep GNU, \ + find --version 2>&1 | grep GNU)) + +$(eval $(call SetupHostCommand,bash,Please install GNU 'bash', \ + bash --version 2>&1 | grep GNU)) + +$(eval $(call SetupHostCommand,xargs, \ + Please install 'xargs' that supports '-r/--no-run-if-empty', \ + gxargs -r --version, \ + xargs -r --version)) + +$(eval $(call SetupHostCommand,patch,Please install GNU 'patch', \ + gpatch --version 2>&1 | grep 'Free Software Foundation', \ + patch --version 2>&1 | grep 'Free Software Foundation')) + +$(eval $(call SetupHostCommand,diff,Please install GNU diffutils, \ + gdiff --version 2>&1 | grep GNU, \ + diff --version 2>&1 | grep GNU)) + +$(eval $(call SetupHostCommand,cp,Please install GNU fileutils, \ + gcp --help 2>&1 | grep 'Copy SOURCE', \ + cp --help 2>&1 | grep 'Copy SOURCE')) + +$(eval $(call SetupHostCommand,seq,Please install seq, \ + gseq --version, \ + seq --version 2>&1 | grep seq)) + +$(eval $(call SetupHostCommand,awk,Please install GNU 'awk', \ + gawk --version 2>&1 | grep GNU, \ + awk --version 2>&1 | grep GNU)) + +$(eval $(call SetupHostCommand,grep,Please install GNU 'grep', \ + ggrep --version 2>&1 | grep GNU, \ + grep --version 2>&1 | grep GNU)) + +$(eval $(call SetupHostCommand,egrep,Please install GNU 'grep', \ + gegrep --version 2>&1 | grep GNU, \ + egrep --version 2>&1 | grep GNU)) + +$(eval $(call SetupHostCommand,getopt, \ + Please install an extended getopt version that supports --long, \ + gnugetopt -o t --long test -- --test | grep '^ *--test *--', \ + getopt -o t --long test -- --test | grep '^ *--test *--', \ + /usr/local/opt/gnu-getopt/bin/getopt -o t --long test -- --test | grep '^ *--test *--', \ + /opt/local/bin/getopt -o t --long test -- --test | grep '^ *--test *--')) + +$(eval $(call SetupHostCommand,realpath,Please install a 'realpath' utility, \ + grealpath /, \ + realpath /)) + +$(eval $(call SetupHostCommand,stat,Cannot find a file stat utility, \ + gnustat -c%s $(TOPDIR)/Makefile, \ + gstat -c%s $(TOPDIR)/Makefile, \ + stat -c%s $(TOPDIR)/Makefile)) + +$(eval $(call SetupHostCommand,unzip,Please install 'unzip', \ + unzip 2>&1 | grep zipfile, \ + unzip)) + +$(eval $(call SetupHostCommand,bzip2,Please install 'bzip2', \ + bzip2 --version = 3.6, \ + python3.11 -V 2>&1 | grep 'Python 3', \ + python3.10 -V 2>&1 | grep 'Python 3', \ + python3.9 -V 2>&1 | grep 'Python 3', \ + python3.8 -V 2>&1 | grep 'Python 3', \ + python3.7 -V 2>&1 | grep 'Python 3', \ + python3.6 -V 2>&1 | grep 'Python 3', \ + python3 -V 2>&1 | grep -E 'Python 3\.([6-9]|[0-9][0-9])\.?')) + +$(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \ + python3.11 -V 2>&1 | grep 'Python 3', \ + python3.10 -V 2>&1 | grep 'Python 3', \ + python3.9 -V 2>&1 | grep 'Python 3', \ + python3.8 -V 2>&1 | grep 'Python 3', \ + python3.7 -V 2>&1 | grep 'Python 3', \ + python3.6 -V 2>&1 | grep 'Python 3', \ + python3 -V 2>&1 | grep -E 'Python 3\.([6-9]|[0-9][0-9])\.?')) + +$(eval $(call TestHostCommand,python3-distutils, \ + Please install the Python3 distutils module, \ + $(STAGING_DIR_HOST)/bin/python3 -c 'import distutils')) + +$(eval $(call TestHostCommand,python3-jsmin, \ + Please install the jsmin Python module, \ + python3 -c "import jsmin" 2>&1 )) + +$(eval $(call SetupHostCommand,git,Please install Git (git-core) >= 1.7.12.2, \ + git --exec-path | xargs -I % -- grep -q -- --recursive %/git-submodule, \ + git submodule --help | grep -- --recursive)) + +$(eval $(call SetupHostCommand,file,Please install the 'file' package, \ + file --version 2>&1 | grep file)) + +$(eval $(call SetupHostCommand,rsync,Please install 'rsync', \ + rsync --version /dev/null 2>/dev/null; then \ + echo 'ok.'; \ + else \ + echo 'failed.'; \ + echo "$(PKG_NAME): $(strip $(2))" >> $(TMP_DIR)/.prereq-error; \ + fi + + check-$(1): FORCE + $(call Require/$(1)) + CHECK_$(1):=1 + + .SILENT: prereq-$(1) check-$(1) + .NOTPARALLEL: + endif + + PREREQ_PREV=$(1) +endef + + +define RequireCommand + define Require/$(1) + command -v $(1) + endef + + $$(eval $$(call Require,$(1),$(2))) +endef + +define RequireHeader + define Require/$(1) + [ -e "$(1)" ] + endef + + $$(eval $$(call Require,$(1),$(2))) +endef + +define CleanupPython2 + define Require/python2-cleanup + if [ -f "$(STAGING_DIR_HOST)/bin/python" ] && \ + $(STAGING_DIR_HOST)/bin/python -V 2>&1 | \ + grep -q 'Python 2'; then \ + rm $(STAGING_DIR_HOST)/bin/python; \ + fi + endef + + $$(eval $$(call Require,python2-cleanup)) +endef + +define QuoteHostCommand +'$(subst ','"'"',$(strip $(1)))' +endef + +# 1: display name +# 2: failure message +# 3: test +define TestHostCommand + define Require/$(1) + ($(3)) >/dev/null 2>/dev/null + endef + + $$(eval $$(call Require,$(1),$(2))) +endef + +# 1: canonical name +# 2: failure message +# 3+: candidates +define SetupHostCommand + define Require/$(1) + [ -f "$(STAGING_DIR_HOST)/bin/$(strip $(1))" ] && exit 0; \ + for cmd in $(call QuoteHostCommand,$(3)) $(call QuoteHostCommand,$(4)) \ + $(call QuoteHostCommand,$(5)) $(call QuoteHostCommand,$(6)) \ + $(call QuoteHostCommand,$(7)) $(call QuoteHostCommand,$(8)) \ + $(call QuoteHostCommand,$(9)) $(call QuoteHostCommand,$(10)) \ + $(call QuoteHostCommand,$(11)) $(call QuoteHostCommand,$(12)); do \ + if [ -n "$$$$$$$$cmd" ]; then \ + bin="$$$$$$$$(PATH="$(subst $(space),:,$(filter-out $(STAGING_DIR_HOST)/%,$(subst :,$(space),$(PATH))))" \ + command -v "$$$$$$$${cmd%% *}")"; \ + if [ -x "$$$$$$$$bin" ] && eval "$$$$$$$$cmd" >/dev/null 2>/dev/null; then \ + mkdir -p "$(STAGING_DIR_HOST)/bin"; \ + ln -sf "$$$$$$$$bin" "$(STAGING_DIR_HOST)/bin/$(strip $(1))"; \ + exit 0; \ + fi; \ + fi; \ + done; \ + exit 1 + endef + + $$(eval $$(call Require,$(1),$(if $(2),$(2),Missing $(1) command))) +endef diff --git a/include/quilt.mk b/include/quilt.mk new file mode 100644 index 0000000000..18cafe60a2 --- /dev/null +++ b/include/quilt.mk @@ -0,0 +1,181 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2007-2020 OpenWrt.org + +ifeq ($(TARGET_BUILD),1) + PKG_BUILD_DIR:=$(LINUX_DIR) +endif + +ifneq ($(filter host-refresh refresh,$(MAKECMDGOALS)),) + override QUILT=1 + override HOST_QUILT=1 +endif + +ifneq ($(PKG_BUILD_DIR),) + QUILT?=$(if $(wildcard $(PKG_BUILD_DIR)/.quilt_used),y) + ifneq ($(QUILT),) + STAMP_CHECKED:=$(PKG_BUILD_DIR)/.quilt_checked + override CONFIG_AUTOREBUILD= + override CONFIG_AUTOREMOVE= + quilt-check: $(STAMP_CHECKED) + endif +endif + +ifneq ($(HOST_BUILD_DIR),) + HOST_QUILT?=$(if $(findstring command,$(origin QUILT)),$(QUILT),$(if $(wildcard $(HOST_BUILD_DIR)/.quilt_used),y)) + ifneq ($(HOST_QUILT),) + HOST_STAMP_CHECKED:=$(HOST_BUILD_DIR)/.quilt_checked + override CONFIG_AUTOREBUILD= + override CONFIG_AUTOREMOVE= + host-quilt-check: $(HOST_STAMP_CHECKED) + endif +endif + +ifneq ($(if $(DUMP),1,$(__quilt_inc)),1) +__quilt_inc:=1 + +PATCH_DIR?=./patches +FILES_DIR?=./files +HOST_PATCH_DIR?=$(PATCH_DIR) +HOST_FILES_DIR?=$(FILES_DIR) + +QUILT_CMD:=quilt --quiltrc=- + +define filter_series +sed -e s,\\\#.*,, $(1) | grep -E \[a-zA-Z0-9\] +endef + +define PatchDir/Quilt + @mkdir -p "$(1)/patches$(if $(3),/$(patsubst %/,%,$(3)))" + @if [ -s "$(2)/series" ]; then \ + mkdir -p "$(1)/patches/$(3)"; \ + cp "$(2)/series" "$(1)/patches/$(3)"; \ + fi + @for patch in $$$$( (cd "$(2)" && if [ -f series ]; then $(call filter_series,series); else ls | sort; fi; ) 2>/dev/null ); do ( \ + cp "$(2)/$$$$patch" "$(1)/patches/$(3)"; \ + echo "$(3)$$$$patch" >> "$(1)/patches/series"; \ + ); done + $(if $(3),@echo $(3) >> "$(1)/patches/.subdirs") +endef + +define PatchDir/Default + @if [ -d "$(2)" ] && [ "$$$$(ls $(2) | wc -l)" -gt 0 ]; then \ + export PATCH="$(PATCH)"; \ + if [ -s "$(2)/series" ]; then \ + $(call filter_series,$(2)/series) | xargs -n1 \ + $(KPATCH) "$(1)" "$(2)"; \ + else \ + $(KPATCH) "$(1)" "$(2)"; \ + fi; \ + fi +endef + +define PatchDir +$(call PatchDir/$(if $(strip $(QUILT)),Quilt,Default),$(strip $(1)),$(strip $(2)),$(strip $(3))) +endef + +define HostPatchDir +$(call PatchDir/$(if $(strip $(HOST_QUILT)),Quilt,Default),$(strip $(1)),$(strip $(2)),$(strip $(3))) +endef + +define Host/Patch/Default + $(if $(HOST_QUILT),rm -rf $(HOST_BUILD_DIR)/patches; mkdir -p $(HOST_BUILD_DIR)/patches) + $(call HostPatchDir,$(HOST_BUILD_DIR),$(HOST_PATCH_DIR),) + $(if $(HOST_QUILT),touch $(HOST_BUILD_DIR)/.quilt_used) +endef + +define Build/Patch/Default + $(if $(QUILT),rm -rf $(PKG_BUILD_DIR)/patches; mkdir -p $(PKG_BUILD_DIR)/patches) + $(call PatchDir,$(PKG_BUILD_DIR),$(PATCH_DIR),) + $(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used) +endef + +kernel_files=$(foreach fdir,$(GENERIC_FILES_DIR) $(FILES_DIR),$(fdir)/.) +define Kernel/Patch/Default + $(if $(QUILT),rm -rf $(LINUX_DIR)/patches; mkdir -p $(LINUX_DIR)/patches) + $(if $(kernel_files),$(CP) $(kernel_files) $(LINUX_DIR)/) + find $(LINUX_DIR)/ -name \*.rej -or -name \*.orig | $(XARGS) rm -f + if [ -d $(GENERIC_PLATFORM_DIR)/patches$(if $(wildcard $(GENERIC_PLATFORM_DIR)/patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) ]; then \ + echo "generic patches directory is present. please move your patches to the pending directory" ; \ + exit 1; \ + fi + $(call PatchDir,$(LINUX_DIR),$(GENERIC_BACKPORT_DIR),generic-backport/) + $(call PatchDir,$(LINUX_DIR),$(GENERIC_PATCH_DIR),generic/) + $(call PatchDir,$(LINUX_DIR),$(GENERIC_HACK_DIR),generic-hack/) + $(call PatchDir,$(LINUX_DIR),$(PATCH_DIR),platform/) +endef + +define Quilt/RefreshDir + mkdir -p $(2) + -rm -f $(2)/* 2>/dev/null >/dev/null + @( \ + for patch in $$$$($(if $(3),grep "^$(3)",cat) $(1)/patches/series | awk '{print $$$$1}'); do \ + $(CP) -v "$(1)/patches/$$$$patch" $(2); \ + done; \ + ) +endef + +define Quilt/Refresh/Host + $(call Quilt/RefreshDir,$(HOST_BUILD_DIR),$(HOST_PATCH_DIR)) +endef + +define Quilt/Refresh/Package + $(call Quilt/RefreshDir,$(PKG_BUILD_DIR),$(PATCH_DIR)) +endef + +define Quilt/Refresh/Kernel + @[ -z "$$(grep -v '^generic/' $(PKG_BUILD_DIR)/patches/series | grep -v '^platform/')" ] || { \ + echo "All kernel patches must start with either generic/ or platform/"; \ + false; \ + } + $(call Quilt/RefreshDir,$(PKG_BUILD_DIR),$(GENERIC_BACKPORT_DIR),generic-backport/) + $(call Quilt/RefreshDir,$(PKG_BUILD_DIR),$(GENERIC_PATCH_DIR),generic/) + $(call Quilt/RefreshDir,$(PKG_BUILD_DIR),$(GENERIC_HACK_DIR),generic-hack/) + $(call Quilt/RefreshDir,$(PKG_BUILD_DIR),$(PATCH_DIR),platform/) +endef + +define Quilt/Template + $($(2)STAMP_CONFIGURED): $($(2)STAMP_CHECKED) + $(if $(NO_RECONFIGURE),$($(2)STAMP_BUILT),$($(2)STAMP_CONFIGURED)): FORCE + $($(2)STAMP_CHECKED): $($(2)STAMP_PREPARED) + if [ -s "$(1)/patches/series" ]; then \ + (cd "$(1)"; \ + if $(QUILT_CMD) next >/dev/null 2>&1; then \ + $(QUILT_CMD) push -a; \ + else \ + $(QUILT_CMD) top >/dev/null 2>&1; \ + fi \ + ); \ + fi + touch "$$@" + + $(3)quilt-check: $($(2)STAMP_PREPARED) FORCE + @[ -f "$(1)/.quilt_used" ] || { \ + echo "The source directory was not unpacked using quilt. Please rebuild with QUILT=1"; \ + false; \ + } + @[ -f "$(1)/patches/series" ] || { \ + echo "The source directory contains no quilt patches."; \ + false; \ + } + @[ -n "$$$$(ls $(1)/patches/series)" -o \ + "$$$$(cat $(1)/patches/series | $(MKHASH) md5)" = "$$(sort $(1)/patches/series | $(MKHASH) md5)" ] || { \ + echo "The patches are not sorted in the right order. Please fix."; \ + false; \ + } + + $(3)refresh: $(3)quilt-check + @cd "$(1)"; $(QUILT_CMD) pop -a -f >/dev/null 2>/dev/null + @cd "$(1)"; while $(QUILT_CMD) next 2>/dev/null >/dev/null && $(QUILT_CMD) push; do \ + QUILT_DIFF_OPTS="-p" $(QUILT_CMD) refresh -p ab --no-index --no-timestamps; \ + done; ! $(QUILT_CMD) next 2>/dev/null >/dev/null + $(Quilt/Refresh/$(4)) + + $(3)update: $(3)quilt-check + $(Quilt/Refresh/$(4)) +endef + +Build/Quilt=$(call Quilt/Template,$(PKG_BUILD_DIR),,,$(if $(TARGET_BUILD),Kernel,Package)) +Host/Quilt=$(call Quilt/Template,$(HOST_BUILD_DIR),HOST_,host-,Host) + +endif diff --git a/include/rootfs.mk b/include/rootfs.mk new file mode 100644 index 0000000000..f2ed648d2f --- /dev/null +++ b/include/rootfs.mk @@ -0,0 +1,101 @@ +ifdef CONFIG_USE_MKLIBS + define mklibs + rm -rf $(TMP_DIR)/mklibs-progs $(TMP_DIR)/mklibs-out + # first find all programs and add them to the mklibs list + find $(STAGING_DIR_ROOT) -type f -perm /100 -exec \ + file -r -N -F '' {} + | \ + awk ' /executable.*dynamically/ { print $$1 }' > $(TMP_DIR)/mklibs-progs + # find all loadable objects that are not regular libraries and add them to the list as well + find $(STAGING_DIR_ROOT) -type f -name \*.so\* -exec \ + file -r -N -F '' {} + | \ + awk ' /shared object/ { print $$1 }' > $(TMP_DIR)/mklibs-libs + mkdir -p $(TMP_DIR)/mklibs-out + $(STAGING_DIR_HOST)/bin/mklibs -D \ + -d $(TMP_DIR)/mklibs-out \ + --sysroot $(STAGING_DIR_ROOT) \ + `cat $(TMP_DIR)/mklibs-libs | sed 's:/*[^/]\+/*$$::' | uniq | sed 's:^$(STAGING_DIR_ROOT):-L :'` \ + --ldlib $(patsubst $(STAGING_DIR_ROOT)/%,/%,$(firstword $(wildcard \ + $(foreach name,ld-uClibc.so.* ld-linux.so.* ld-*.so ld-musl-*.so.*, \ + $(STAGING_DIR_ROOT)/lib/$(name) \ + )))) \ + --target $(REAL_GNU_TARGET_NAME) \ + `cat $(TMP_DIR)/mklibs-progs $(TMP_DIR)/mklibs-libs` 2>&1 + $(RSTRIP) $(TMP_DIR)/mklibs-out + for lib in `ls $(TMP_DIR)/mklibs-out/*.so.* 2>/dev/null`; do \ + LIB="$${lib##*/}"; \ + DEST="`ls "$(1)/lib/$$LIB" "$(1)/usr/lib/$$LIB" 2>/dev/null`"; \ + [ -n "$$DEST" ] || continue; \ + echo "Copying stripped library $$lib to $$DEST"; \ + cp "$$lib" "$$DEST" || exit 1; \ + done + endef +endif + +# where to build (and put) .ipk packages +opkg = \ + IPKG_NO_SCRIPT=1 \ + IPKG_INSTROOT=$(1) \ + TMPDIR=$(1)/tmp \ + $(STAGING_DIR_HOST)/bin/opkg \ + --offline-root $(1) \ + --force-postinstall \ + --add-dest root:/ \ + --add-arch all:100 \ + --add-arch $(if $(ARCH_PACKAGES),$(ARCH_PACKAGES),$(BOARD)):200 + +TARGET_DIR_ORIG := $(TARGET_ROOTFS_DIR)/root.orig-$(BOARD) + +ifdef CONFIG_CLEAN_IPKG + define clean_ipkg + -find $(1)/usr/lib/opkg/info -type f -and -not -name '*.control' -delete + -sed -i -ne '/^Require-User: /p' $(1)/usr/lib/opkg/info/*.control + awk ' \ + BEGIN { conffiles = 0; print "Conffiles:" } \ + /^Conffiles:/ { conffiles = 1; next } \ + !/^ / { conffiles = 0; next } \ + conffiles == 1 { print } \ + ' $(1)/usr/lib/opkg/status >$(1)/usr/lib/opkg/status.new + mv $(1)/usr/lib/opkg/status.new $(1)/usr/lib/opkg/status + -find $(1)/usr/lib/opkg -empty -delete + endef +endif + +define prepare_rootfs + $(if $(2),@if [ -d '$(2)' ]; then \ + $(call file_copy,$(2)/.,$(1)); \ + fi) + @mkdir -p $(1)/etc/rc.d + @mkdir -p $(1)/var/lock + @( \ + cd $(1); \ + for script in ./usr/lib/opkg/info/*.postinst; do \ + IPKG_INSTROOT=$(1) $$(command -v bash) $$script; \ + ret=$$?; \ + if [ $$ret -ne 0 ]; then \ + echo "postinst script $$script has failed with exit code $$ret" >&2; \ + exit 1; \ + fi; \ + done; \ + for script in ./etc/init.d/*; do \ + grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \ + if ! echo " $(3) " | grep -q " $$(basename $$script) "; then \ + IPKG_INSTROOT=$(1) $$(command -v bash) ./etc/rc.common $$script enable; \ + echo "Enabling" $$(basename $$script); \ + else \ + IPKG_INSTROOT=$(1) $$(command -v bash) ./etc/rc.common $$script disable; \ + echo "Disabling" $$(basename $$script); \ + fi; \ + done || true \ + ) + $(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(1)/usr/lib/opkg/status) + @-find $(1) -name CVS -o -name .svn -o -name .git -o -name '.#*' | $(XARGS) rm -rf + rm -rf \ + $(1)/boot \ + $(1)/tmp/* \ + $(1)/usr/lib/opkg/info/*.postinst* \ + $(1)/usr/lib/opkg/lists/* \ + $(1)/var/lock/*.lock + $(call clean_ipkg,$(1)) + $(call mklibs,$(1)) + $(if $(SOURCE_DATE_EPOCH),find $(1)/ -mindepth 1 -execdir touch -hcd "@$(SOURCE_DATE_EPOCH)" "{}" +) +endef diff --git a/include/scan.awk b/include/scan.awk new file mode 100644 index 0000000000..da8308d22b --- /dev/null +++ b/include/scan.awk @@ -0,0 +1,19 @@ +BEGIN { FS="/" } +$1 ~ /^feeds/ { FEEDS[$NF]=$0 } +$1 !~ /^feeds/ { PKGS[$NF]=$0 } +END { + # Filter-out libreCMC packages which have a feeds equivalent + for (pkg in PKGS) + if (pkg in FEEDS) { + print PKGS[pkg] > of + delete PKGS[pkg] + } + n = asort(PKGS) + for (i=1; i <= n; i++) { + print PKGS[i] + } + n = asort(FEEDS) + for (i=1; i <= n; i++){ + print FEEDS[i] + } +} diff --git a/include/scan.mk b/include/scan.mk new file mode 100644 index 0000000000..5032afa818 --- /dev/null +++ b/include/scan.mk @@ -0,0 +1,120 @@ +include $(TOPDIR)/include/verbose.mk +include $(TOPDIR)/rules.mk +TMP_DIR:=$(TOPDIR)/tmp + +all: $(TMP_DIR)/.$(SCAN_TARGET) + +SCAN_TARGET ?= packageinfo +SCAN_NAME ?= package +SCAN_DIR ?= package +TARGET_STAMP:=$(TMP_DIR)/info/.files-$(SCAN_TARGET).stamp +FILELIST:=$(TMP_DIR)/info/.files-$(SCAN_TARGET)-$(SCAN_COOKIE) +OVERRIDELIST:=$(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-$(SCAN_COOKIE) + +export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH) + +define feedname +$(if $(patsubst feeds/%,,$(1)),,$(word 2,$(subst /, ,$(1)))) +endef + +ifeq ($(SCAN_NAME),target) + SCAN_DEPS=image/Makefile profiles/*.mk $(TOPDIR)/include/kernel*.mk $(TOPDIR)/include/target.mk image/*.mk +else + SCAN_DEPS=$(TOPDIR)/include/package*.mk +ifneq ($(call feedname,$(SCAN_DIR)),) + SCAN_DEPS += $(TOPDIR)/feeds/$(call feedname,$(SCAN_DIR))/*.mk +endif +endif + +ifeq ($(IS_TTY),1) + ifneq ($(strip $(NO_COLOR)),1) + define progress + printf "\033[M\r$(1)" >&2; + endef + else + define progress + printf "\r$(1)" >&2; + endef + endif +else + define progress + :; + endef +endif + +define PackageDir + $(TMP_DIR)/.$(SCAN_TARGET): $(TMP_DIR)/info/.$(SCAN_TARGET)-$(1) + $(TMP_DIR)/info/.$(SCAN_TARGET)-$(1): $(SCAN_DIR)/$(2)/Makefile $(foreach DEP,$(DEPS_$(SCAN_DIR)/$(2)/Makefile) $(SCAN_DEPS),$(wildcard $(if $(filter /%,$(DEP)),$(DEP),$(SCAN_DIR)/$(2)/$(DEP)))) + { \ + $$(call progress,Collecting $(SCAN_NAME) info: $(SCAN_DIR)/$(2)) \ + echo Source-Makefile: $(SCAN_DIR)/$(2)/Makefile; \ + $(if $(3),echo Override: $(3),true); \ + $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 FEED="$(call feedname,$(2))" -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) 2>/dev/null || { \ + mkdir -p "$(TOPDIR)/logs/$(SCAN_DIR)/$(2)"; \ + $(NO_TRACE_MAKE) --no-print-dir -r DUMP=1 FEED="$(call feedname,$(2))" -C $(SCAN_DIR)/$(2) $(SCAN_MAKEOPTS) > $(TOPDIR)/logs/$(SCAN_DIR)/$(2)/dump.txt 2>&1; \ + $$(call progress,ERROR: please fix $(SCAN_DIR)/$(2)/Makefile - see logs/$(SCAN_DIR)/$(2)/dump.txt for details\n) \ + rm -f $$@; \ + }; \ + echo; \ + } > $$@.tmp + mv $$@.tmp $$@ +endef + +$(OVERRIDELIST): + rm -f $(TMP_DIR)/info/.overrides-$(SCAN_TARGET)-* + touch $@ + +ifeq ($(SCAN_NAME),target) + GREP_STRING=BuildTarget +else + GREP_STRING=(Build/DefaultTargets|BuildPackage|KernelPackage) +endif + +$(FILELIST): $(OVERRIDELIST) + rm -f $(TMP_DIR)/info/.files-$(SCAN_TARGET)-* + find -L $(SCAN_DIR) -mindepth 1 $(if $(SCAN_DEPTH),-maxdepth $(SCAN_DEPTH)) $(SCAN_EXTRA) -name Makefile | xargs grep -aHE 'call $(GREP_STRING)' | sed -e 's#^$(SCAN_DIR)/##' -e 's#/Makefile:.*##' | uniq | awk -v of=$(OVERRIDELIST) -f include/scan.awk > $@ + +$(TMP_DIR)/info/.files-$(SCAN_TARGET).mk: $(FILELIST) + ( \ + cat $< | awk '{print "$(SCAN_DIR)/" $$0 "/Makefile" }' | xargs grep -HE '^ *SCAN_DEPS *= *' | awk -F: '{ gsub(/^.*DEPS *= */, "", $$2); print "DEPS_" $$1 "=" $$2 }'; \ + awk -F/ -v deps="$$DEPS" -v of="$(OVERRIDELIST)" ' \ + BEGIN { \ + while (getline < (of)) \ + override[$$NF]=$$0; \ + close(of) \ + } \ + { \ + info=$$0; \ + gsub(/\//, "_", info); \ + dir=$$0; \ + pkg=""; \ + if($$NF in override) \ + pkg=override[$$NF]; \ + print "$$(eval $$(call PackageDir," info "," dir "," pkg "))"; \ + } ' < $<; \ + true; \ + ) > $@.tmp + mv $@.tmp $@ + +-include $(TMP_DIR)/info/.files-$(SCAN_TARGET).mk + +$(TARGET_STAMP):: + +( \ + $(NO_TRACE_MAKE) $(FILELIST); \ + MD5SUM=$$(cat $(FILELIST) $(OVERRIDELIST) | $(MKHASH) md5 | awk '{print $$1}'); \ + [ -f "$@.$$MD5SUM" ] || { \ + rm -f $@.*; \ + touch $@.$$MD5SUM; \ + touch $@; \ + } \ + ) + +$(TMP_DIR)/.$(SCAN_TARGET): $(TARGET_STAMP) + $(call progress,Collecting $(SCAN_NAME) info: merging...) + -cat $(FILELIST) | awk '{gsub(/\//, "_", $$0);print "$(TMP_DIR)/info/.$(SCAN_TARGET)-" $$0}' | xargs cat > $@ 2>/dev/null + $(call progress,Collecting $(SCAN_NAME) info: done) + echo + +FORCE: +.PHONY: FORCE +.NOTPARALLEL: diff --git a/include/shell.sh b/include/shell.sh new file mode 100644 index 0000000000..6ee0cf6030 --- /dev/null +++ b/include/shell.sh @@ -0,0 +1,15 @@ +getvar() { + eval "echo \"\${$1}\"" +} + +var2file() { + local var + eval "var=\"\${$1}\"" + if [ -n "$var" ]; then echo "$var" > "$2"; fi +} + +isset() { + local var + eval "var=\"\${$1}\"" + [ -n "$var" ] +} diff --git a/include/site/aarch64 b/include/site/aarch64 new file mode 100644 index 0000000000..c5aa9c5543 --- /dev/null +++ b/include/site/aarch64 @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} +ac_cv_c_bigendian=${ac_cv_c_bigendian=no} + +ac_cv_sizeof___int64=8 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=8 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=8 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=8 +ac_cv_sizeof_ssize_t=8 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=8 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=8 diff --git a/include/site/aarch64_be b/include/site/aarch64_be new file mode 100644 index 0000000000..19e75ab991 --- /dev/null +++ b/include/site/aarch64_be @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=no} +ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} + +ac_cv_sizeof___int64=8 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=8 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=8 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=8 +ac_cv_sizeof_ssize_t=8 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=8 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=8 diff --git a/include/site/arc b/include/site/arc new file mode 100644 index 0000000000..72a3805c64 --- /dev/null +++ b/include/site/arc @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} +ac_cv_c_bigendian=${ac_cv_c_bigendian=no} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=4 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=4 +ac_cv_sizeof_ssize_t=4 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=4 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=4 diff --git a/include/site/arm b/include/site/arm new file mode 100644 index 0000000000..72a3805c64 --- /dev/null +++ b/include/site/arm @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} +ac_cv_c_bigendian=${ac_cv_c_bigendian=no} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=4 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=4 +ac_cv_sizeof_ssize_t=4 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=4 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=4 diff --git a/include/site/armeb b/include/site/armeb new file mode 100644 index 0000000000..a5626a722b --- /dev/null +++ b/include/site/armeb @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=no} +ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=4 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=4 +ac_cv_sizeof_ssize_t=4 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=4 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=4 diff --git a/include/site/darwin b/include/site/darwin new file mode 100644 index 0000000000..ec38f67be6 --- /dev/null +++ b/include/site/darwin @@ -0,0 +1,2 @@ +ac_cv_func_futimens=no +ac_cv_func_utimensat=no diff --git a/include/site/i386 b/include/site/i386 new file mode 100644 index 0000000000..78f1557b79 --- /dev/null +++ b/include/site/i386 @@ -0,0 +1,3 @@ +#!/bin/sh +. $TOPDIR/include/site/i486 + diff --git a/include/site/i486 b/include/site/i486 new file mode 100644 index 0000000000..72a3805c64 --- /dev/null +++ b/include/site/i486 @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} +ac_cv_c_bigendian=${ac_cv_c_bigendian=no} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=4 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=4 +ac_cv_sizeof_ssize_t=4 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=4 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=4 diff --git a/include/site/i686 b/include/site/i686 new file mode 100644 index 0000000000..78f1557b79 --- /dev/null +++ b/include/site/i686 @@ -0,0 +1,3 @@ +#!/bin/sh +. $TOPDIR/include/site/i486 + diff --git a/include/site/linux b/include/site/linux new file mode 100644 index 0000000000..b193d25c45 --- /dev/null +++ b/include/site/linux @@ -0,0 +1,78 @@ +ac_atomic_add=yes +ac_atomic_sub=yes +ac_cv_c_gettext_without_libintl=yes +ac_cv_c_long_double=no +ac_cv_conv_longlong_to_float=yes +ac_cv_file__dev_zero=yes +ac_cv_func___va_copy=no +ac_cv_func__exit=yes +ac_cv_func_bcopy=yes +ac_cv_func_bzero=yes +ac_cv_func_bcmp=yes +ac_cv_func_creal=yes +ac_cv_func_cimag=yes +ac_cv_func_fchmod=yes +ac_cv_func_getaddrinfo=yes +ac_cv_func_getcwd=yes +ac_cv_func_getdomainname=yes +ac_cv_func_getpgrp_void=yes +ac_cv_func_getpwuid_r=yes +ac_cv_func_gettimeofday=yes +ac_cv_func_index=yes +ac_cv_func_lstat_dereferences_slashed_symlink=yes +ac_cv_func_lstat_empty_string_bug=no +ac_cv_func_lstat=yes +ac_cv_func_malloc_0_nonnull=yes +ac_cv_func_malloc_works=yes +ac_cv_func_memcmp_clean=yes +ac_cv_func_memcmp_working=yes +ac_cv_func_posix_getgrgid_r=yes +ac_cv_func_posix_getpwuid_r=yes +ac_cv_func_psignal=yes +ac_cv_func_pthread_key_delete=yes +ac_cv_func_realloc_0_nonnull=yes +ac_cv_func_realloc_works=yes +ac_cv_func_rename=yes +ac_cv_func_rindex=yes +ac_cv_func_setlocale=yes +ac_cv_func_setgrent_void=yes +ac_cv_func_setpgrp_void=yes +ac_cv_func_setresuid=no +ac_cv_func_setvbuf_reversed=no +ac_cv_func_stat_empty_string_bug=no +ac_cv_func_stat_ignores_trailing_slash=no +ac_cv_func_strerror=yes +ac_cv_func_strftime=yes +ac_cv_func_utimes=yes +ac_cv_func___adjtimex=yes +ac_cv_func_va_copy=no +ac_cv_func_vsnprintf=yes +ac_cv_have_accrights_in_msghdr=no +ac_cv_have_broken_snprintf=no +ac_cv_have_control_in_msghdr=yes +ac_cv_have_decl_sys_siglist=no +ac_cv_have_openpty_ctty_bug=yes +ac_cv_have_space_d_name_in_struct_dirent=yes +ac_cv_header_netinet_sctp_h=no +ac_cv_header_netinet_sctp_uio_h=no +ac_cv_int64_t=yes +ac_cv_lbl_unaligned_fail=no +ac_cv_linux_kernel_pppoe=yes +ac_cv_linux_vers=2 +ac_cv_pack_bitfields_reversed=yes +ac_cv_path_LDCONFIG= +ac_cv_regexec_segfault_emptystr=no +ac_cv_sctp=no +ac_cv_sys_restartable_syscalls=yes +ac_cv_time_r_type=POSIX +ac_cv_type_suseconds_t=yes +ac_cv_uchar=no +ac_cv_uint=yes +ac_cv_uint64_t=yes +ac_cv_ulong=yes +ac_cv_ushort=yes +ac_cv_va_copy=C99 +ac_cv_va_val_copy=yes +as_cv_unaligned_access=yes +ac_cv_func_malloc_0_nonnull=yes +ac_cv_func_realloc_0_nonnull=yes diff --git a/include/site/m68k b/include/site/m68k new file mode 100644 index 0000000000..0037600a09 --- /dev/null +++ b/include/site/m68k @@ -0,0 +1,28 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=no} +ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=4 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=4 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=4 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=4 diff --git a/include/site/mips b/include/site/mips new file mode 100644 index 0000000000..a5626a722b --- /dev/null +++ b/include/site/mips @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=no} +ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=4 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=4 +ac_cv_sizeof_ssize_t=4 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=4 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=4 diff --git a/include/site/mips64 b/include/site/mips64 new file mode 100644 index 0000000000..19e75ab991 --- /dev/null +++ b/include/site/mips64 @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=no} +ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} + +ac_cv_sizeof___int64=8 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=8 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=8 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=8 +ac_cv_sizeof_ssize_t=8 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=8 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=8 diff --git a/include/site/mips64el b/include/site/mips64el new file mode 100644 index 0000000000..c5aa9c5543 --- /dev/null +++ b/include/site/mips64el @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} +ac_cv_c_bigendian=${ac_cv_c_bigendian=no} + +ac_cv_sizeof___int64=8 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=8 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=8 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=8 +ac_cv_sizeof_ssize_t=8 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=8 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=8 diff --git a/include/site/mipsel b/include/site/mipsel new file mode 100644 index 0000000000..72a3805c64 --- /dev/null +++ b/include/site/mipsel @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} +ac_cv_c_bigendian=${ac_cv_c_bigendian=no} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=4 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=4 +ac_cv_sizeof_ssize_t=4 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=4 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=4 diff --git a/include/site/powerpc b/include/site/powerpc new file mode 100644 index 0000000000..a5626a722b --- /dev/null +++ b/include/site/powerpc @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=no} +ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=4 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=4 +ac_cv_sizeof_ssize_t=4 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=4 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=4 diff --git a/include/site/powerpc64 b/include/site/powerpc64 new file mode 100644 index 0000000000..6a66346b42 --- /dev/null +++ b/include/site/powerpc64 @@ -0,0 +1,26 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=no} +ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} + +ac_cv_sizeof_char=1 +ac_cv_sizeof_char_p=8 +ac_cv_sizeof_double=8 +ac_cv_sizeof_float=4 +ac_cv_sizeof_int=4 +ac_cv_sizeof_long=8 +ac_cv_sizeof_long_double=16 +ac_cv_sizeof_long_int=8 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long_long_int=8 +ac_cv_sizeof_short=2 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_signed_char=1 +ac_cv_sizeof_unsigned_char=1 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=8 +ac_cv_sizeof_unsigned_long_int=8 +ac_cv_sizeof_unsigned_long_long_int=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_unsigned_short_int=2 +ac_cv_sizeof_void_p=8 diff --git a/include/site/sparc b/include/site/sparc new file mode 100644 index 0000000000..a5626a722b --- /dev/null +++ b/include/site/sparc @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=no} +ac_cv_c_bigendian=${ac_cv_c_bigendian=yes} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=4 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=4 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=4 +ac_cv_sizeof_ssize_t=4 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=4 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=4 diff --git a/include/site/x86_64 b/include/site/x86_64 new file mode 100644 index 0000000000..b8d581d448 --- /dev/null +++ b/include/site/x86_64 @@ -0,0 +1,30 @@ +#!/bin/sh +. $TOPDIR/include/site/linux +ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} +ac_cv_c_bigendian=${ac_cv_c_bigendian=no} + +ac_cv_sizeof___int64=0 +ac_cv_sizeof_char=1 +ac_cv_sizeof_int=4 +ac_cv_sizeof_int16_t=2 +ac_cv_sizeof_int32_t=4 +ac_cv_sizeof_int64_t=8 +ac_cv_sizeof_long_int=8 +ac_cv_sizeof_long_long=8 +ac_cv_sizeof_long=8 +ac_cv_sizeof_off_t=8 +ac_cv_sizeof_short_int=2 +ac_cv_sizeof_short=2 +ac_cv_sizeof_size_t=8 +ac_cv_sizeof_ssize_t=8 +ac_cv_sizeof_u_int16_t=2 +ac_cv_sizeof_u_int32_t=4 +ac_cv_sizeof_u_int64_t=8 +ac_cv_sizeof_uint16_t=2 +ac_cv_sizeof_uint32_t=4 +ac_cv_sizeof_uint64_t=8 +ac_cv_sizeof_unsigned_int=4 +ac_cv_sizeof_unsigned_long=8 +ac_cv_sizeof_unsigned_long_long=8 +ac_cv_sizeof_unsigned_short=2 +ac_cv_sizeof_void_p=8 diff --git a/include/subdir.mk b/include/subdir.mk new file mode 100644 index 0000000000..95009f814e --- /dev/null +++ b/include/subdir.mk @@ -0,0 +1,106 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2007-2020 OpenWrt.org + +ifeq ($(MAKECMDGOALS),prereq) + SUBTARGETS:=prereq + PREREQ_ONLY:=1 +else + SUBTARGETS:=$(DEFAULT_SUBDIR_TARGETS) +endif + +subtarget-default = $(filter-out ., \ + $(if $($(1)/builddirs-$(2)),$($(1)/builddirs-$(2)), \ + $(if $($(1)/builddirs-default),$($(1)/builddirs-default), \ + $($(1)/builddirs)))) + +define subtarget + $(call warn_eval,$(1),t,T,$(1)/$(2): $($(1)/) $(foreach bd,$(call subtarget-default,$(1),$(2)),$(1)/$(bd)/$(2))) + +endef + +define ERROR + ($(call MESSAGE, $(2)); $(if $(BUILD_LOG), echo "$(2)" >> $(BUILD_LOG_DIR)/$(1)/error.txt;) $(if $(3),, exit 1;)) +endef + +lastdir=$(word $(words $(subst /, ,$(1))),$(subst /, ,$(1))) +diralias=$(if $(findstring $(1),$(call lastdir,$(1))),,$(call lastdir,$(1))) + +subdir_make_opts = \ + $(if $(SUBDIR_MAKE_DEBUG),-d) -r -C $(1) \ + BUILD_SUBDIR="$(1)" \ + BUILD_VARIANT="$(4)" \ + ALL_VARIANTS="$(5)" + +# 1: subdir +# 2: target +# 3: build type +# 4: build variant +# 5: all variants +log_make = \ + $(if $(call debug,$(1),v),,@)+ \ + $(if $(BUILD_LOG), \ + set -o pipefail; \ + mkdir -p $(BUILD_LOG_DIR)/$(1)$(if $(4),/$(4));) \ + $(SCRIPT_DIR)/time.pl "time: $(1)$(if $(4),/$(4))/$(if $(3),$(3)-)$(2)" \ + $$(SUBMAKE) $(subdir_make_opts) $(if $(3),$(3)-)$(2) \ + $(if $(BUILD_LOG),SILENT= 2>&1 | tee $(BUILD_LOG_DIR)/$(1)$(if $(4),/$(4))/$(if $(3),$(3)-)$(2).txt) + +ifdef CONFIG_AUTOREMOVE +rebuild_check = \ + @-$$(NO_TRACE_MAKE) $(subdir_make_opts) check-depends >/dev/null 2>/dev/null; \ + $(if $(BUILD_LOG),mkdir -p $(BUILD_LOG_DIR)/$(1)$(if $(4),/$(4));) \ + $$(NO_TRACE_MAKE) $(if $(BUILD_LOG),-d) -q $(subdir_make_opts) .$(if $(3),$(3)-)$(2) \ + > $(if $(BUILD_LOG),$(BUILD_LOG_DIR)/$(1)$(if $(4),/$(4))/check-$(if $(3),$(3)-)$(2).txt,/dev/null) 2>&1 || \ + $$(SUBMAKE) $(subdir_make_opts) clean-build >/dev/null 2>/dev/null + +endif + +# Parameters: +define subdir + $(call warn,$(1),d,D $(1)) + $(foreach bd,$($(1)/builddirs), + $(call warn,$(1),d,BD $(1)/$(bd)) + $(foreach target,$(SUBTARGETS) $($(1)/subtargets), + $(foreach btype,$(buildtypes-$(bd)), + $(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(btype)/$(target): $(if $(NO_DEPS)$(QUILT),,$($(1)/$(bd)/$(btype)/$(target)) $(call $(1)//$(btype)/$(target),$(1)/$(bd)/$(btype)))) + $(call log_make,$(1)/$(bd),$(target),$(btype),$(filter-out __default,$(variant)),$($(1)/$(bd)/variants)) \ + || $(call ERROR,$(2), ERROR: $(1)/$(bd) [$(btype)] failed to build.,$(findstring $(bd),$($(1)/builddirs-ignore-$(btype)-$(target)))) + $(if $(call diralias,$(bd)),$(call warn_eval,$(1)/$(bd),l,T,$(1)/$(call diralias,$(bd))/$(btype)/$(target): $(1)/$(bd)/$(btype)/$(target))) + ) + $(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(target): $(if $(NO_DEPS)$(QUILT),,$($(1)/$(bd)/$(target)) $(call $(1)//$(target),$(1)/$(bd)))) + $(foreach variant,$(filter-out *,$(if $(BUILD_VARIANT),$(BUILD_VARIANT),$(if $(strip $($(1)/$(bd)/variants)),$($(1)/$(bd)/variants),$(if $($(1)/$(bd)/default-variant),$($(1)/$(bd)/default-variant),__default)))), + $(if $(BUILD_LOG),@mkdir -p $(BUILD_LOG_DIR)/$(1)/$(bd)/$(filter-out __default,$(variant))) + $(if $($(1)/autoremove),$(call rebuild_check,$(1)/$(bd),$(target),,$(filter-out __default,$(variant)),$($(1)/$(bd)/variants))) + $(call log_make,$(1)/$(bd),$(target),,$(filter-out __default,$(variant)),$($(1)/$(bd)/variants)) \ + || $(call ERROR,$(1), ERROR: $(1)/$(bd) failed to build$(if $(filter-out __default,$(variant)), (build variant: $(variant))).,$(findstring $(bd),$($(1)/builddirs-ignore-$(target)))) + ) + $(if $(PREREQ_ONLY)$(DUMP_TARGET_DB),, + # aliases + $(if $(call diralias,$(bd)),$(call warn_eval,$(1)/$(bd),l,T,$(1)/$(call diralias,$(bd))/$(target): $(1)/$(bd)/$(target))) + ) + ) + ) + $(foreach target,$(SUBTARGETS) $($(1)/subtargets),$(call subtarget,$(1),$(target))) +endef + +ifndef DUMP_TARGET_DB +# Parameters: +define stampfile + $(1)/stamp-$(3):=$(if $(6),$(6),$(STAGING_DIR))/stamp/.$(2)_$(3)$(5) + $$($(1)/stamp-$(3)): $(TMP_DIR)/.build $(4) + @+$(SCRIPT_DIR)/timestamp.pl -n $$($(1)/stamp-$(3)) $(1) $(4) || \ + $(MAKE) $(if $(QUIET),--no-print-directory) $$($(1)/flags-$(3)) $(1)/$(3) + @mkdir -p $$$$(dirname $$($(1)/stamp-$(3))) + @touch $$($(1)/stamp-$(3)) + + $$(if $(call debug,$(1),v),,.SILENT: $$($(1)/stamp-$(3))) + + .PRECIOUS: $$($(1)/stamp-$(3)) # work around a make bug + + $(1)//clean:=$(1)/stamp-$(3)/clean + $(1)/stamp-$(3)/clean: FORCE + @rm -f $$($(1)/stamp-$(3)) + +endef +endif diff --git a/include/target.mk b/include/target.mk new file mode 100644 index 0000000000..e352e3e449 --- /dev/null +++ b/include/target.mk @@ -0,0 +1,355 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2007-2008 OpenWrt.org +# Copyright (C) 2016 LEDE Project + +ifneq ($(__target_inc),1) +__target_inc=1 + +# default device type +DEVICE_TYPE?=router + +# Default packages - the really basic set +DEFAULT_PACKAGES:=\ + base-files \ + ca-bundle \ + dropbear \ + fstools \ + libc \ + libgcc \ + libustream-wolfssl \ + logd \ + mtd \ + netifd \ + opkg \ + uci \ + uclient-fetch \ + urandom-seed \ + urngd + +DEFAULT_PACKAGES+=busybox procd + +# include ujail on systems with enough storage +ifeq ($(CONFIG_SMALL_FLASH),) +DEFAULT_PACKAGES+=procd-ujail +endif + +# include seccomp ld-preload hooks if kernel supports it +ifneq ($(CONFIG_SECCOMP),) +DEFAULT_PACKAGES+=procd-seccomp +endif + +# For the basic set +DEFAULT_PACKAGES.basic:= +# For nas targets +DEFAULT_PACKAGES.nas:=\ + block-mount \ + fdisk \ + lsblk \ + mdadm +# For router targets +DEFAULT_PACKAGES.router:=\ + dnsmasq \ + firewall4 \ + nftables \ + kmod-nft-offload \ + odhcp6c \ + odhcpd-ipv6only \ + ppp \ + ppp-mod-pppoe + +ifneq ($(DUMP),) + all: dumpinfo +endif + +target_conf=$(subst .,_,$(subst -,_,$(subst /,_,$(1)))) +ifeq ($(DUMP),) + PLATFORM_DIR:=$(firstword $(wildcard $(TOPDIR)/target/linux/feeds/$(BOARD) $(TOPDIR)/target/linux/$(BOARD))) + SUBTARGET:=$(strip $(foreach subdir,$(patsubst $(PLATFORM_DIR)/%/target.mk,%,$(wildcard $(PLATFORM_DIR)/*/target.mk)),$(if $(CONFIG_TARGET_$(call target_conf,$(BOARD)_$(subdir))),$(subdir)))) +else + PLATFORM_DIR:=${CURDIR} + ifeq ($(SUBTARGETS),) + SUBTARGETS:=$(strip $(patsubst $(PLATFORM_DIR)/%/target.mk,%,$(wildcard $(PLATFORM_DIR)/*/target.mk))) + endif +endif + +TARGETID:=$(BOARD)$(if $(SUBTARGET),/$(SUBTARGET)) +PLATFORM_SUBDIR:=$(PLATFORM_DIR)$(if $(SUBTARGET),/$(SUBTARGET)) + +ifneq ($(TARGET_BUILD),1) + ifndef DUMP + include $(PLATFORM_DIR)/Makefile + ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) + include $(PLATFORM_SUBDIR)/target.mk + endif + endif +else + ifneq ($(SUBTARGET),) + -include ./$(SUBTARGET)/target.mk + endif +endif + +# Add device specific packages (here below to allow device type set from subtarget) +DEFAULT_PACKAGES += $(DEFAULT_PACKAGES.$(DEVICE_TYPE)) + +filter_packages = $(filter-out -% $(patsubst -%,%,$(filter -%,$(1))),$(1)) +extra_packages = $(if $(filter wpad wpad-% nas,$(1)),iwinfo) + +define ProfileDefault + NAME:= + PRIORITY:= + PACKAGES:= +endef + +ifndef Profile +define Profile + $(eval $(call ProfileDefault)) + $(eval $(call Profile/$(1))) + dumpinfo : $(call shexport,Profile/$(1)/Description) + PACKAGES := $(filter-out -%,$(PACKAGES)) + DUMPINFO += \ + echo "Target-Profile: $(1)"; \ + $(if $(PRIORITY), echo "Target-Profile-Priority: $(PRIORITY)"; ) \ + echo "Target-Profile-Name: $(NAME)"; \ + echo "Target-Profile-Packages: $(PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES) $(PACKAGES))"; \ + echo "Target-Profile-Description:"; \ + echo "$$$$$$$$$(call shvar,Profile/$(1)/Description)"; \ + echo "@@"; \ + echo; +endef +endif + +ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) + define IncludeProfiles + -include $(sort $(wildcard $(PLATFORM_DIR)/profiles/*.mk)) + -include $(sort $(wildcard $(PLATFORM_SUBDIR)/profiles/*.mk)) + endef +else + define IncludeProfiles + -include $(sort $(wildcard $(PLATFORM_DIR)/profiles/*.mk)) + endef +endif + +PROFILE?=$(call qstrip,$(CONFIG_TARGET_PROFILE)) + +ifeq ($(TARGET_BUILD),1) + ifneq ($(DUMP),) + $(eval $(call IncludeProfiles)) + endif +endif + +ifneq ($(TARGET_BUILD)$(if $(DUMP),,1),) + include $(INCLUDE_DIR)/kernel-version.mk +endif + +GENERIC_PLATFORM_DIR := $(TOPDIR)/target/linux/generic +GENERIC_BACKPORT_DIR := $(GENERIC_PLATFORM_DIR)/backport$(if $(wildcard $(GENERIC_PLATFORM_DIR)/backport-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) +GENERIC_PATCH_DIR := $(GENERIC_PLATFORM_DIR)/pending$(if $(wildcard $(GENERIC_PLATFORM_DIR)/pending-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) +GENERIC_HACK_DIR := $(GENERIC_PLATFORM_DIR)/hack$(if $(wildcard $(GENERIC_PLATFORM_DIR)/hack-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER)) +GENERIC_FILES_DIR := $(foreach dir,$(wildcard $(GENERIC_PLATFORM_DIR)/files $(GENERIC_PLATFORM_DIR)/files-$(KERNEL_PATCHVER)),"$(dir)") + +__config_name_list = $(1)/config-$(KERNEL_PATCHVER) $(1)/config-default +__config_list = $(firstword $(wildcard $(call __config_name_list,$(1)))) +find_kernel_config=$(if $(__config_list),$(__config_list),$(lastword $(__config_name_list))) + +GENERIC_LINUX_CONFIG = $(call find_kernel_config,$(GENERIC_PLATFORM_DIR)) +LINUX_TARGET_CONFIG = $(call find_kernel_config,$(PLATFORM_DIR)) +ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) + LINUX_SUBTARGET_CONFIG = $(call find_kernel_config,$(PLATFORM_SUBDIR)) +endif + +# config file list used for compiling +LINUX_KCONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG) $(LINUX_SUBTARGET_CONFIG) $(TOPDIR)/env/kernel-config) + +# default config list for reconfiguring +# defaults to subtarget if subtarget exists and target does not +# defaults to target otherwise +USE_SUBTARGET_CONFIG = $(if $(wildcard $(LINUX_TARGET_CONFIG)),,$(if $(LINUX_SUBTARGET_CONFIG),1)) + +LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG) $(if $(USE_SUBTARGET_CONFIG),$(LINUX_SUBTARGET_CONFIG))) +LINUX_RECONFIG_TARGET = $(if $(USE_SUBTARGET_CONFIG),$(LINUX_SUBTARGET_CONFIG),$(LINUX_TARGET_CONFIG)) + +CFG_TARGET = $(CONFIG_TARGET) +ifeq ($(CFG_TARGET),platform) + CFG_TARGET = target + $(warning Deprecation warning: use CONFIG_TARGET=target instead.) +else ifeq ($(CFG_TARGET),subtarget_platform) + CFG_TARGET = subtarget_target + $(warning Deprecation warning: use CONFIG_TARGET=subtarget_target instead.) +endif + +# select the config file to be changed by kernel_menuconfig/kernel_oldconfig +ifeq ($(CFG_TARGET),target) + LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG)) + LINUX_RECONFIG_TARGET = $(LINUX_TARGET_CONFIG) +else ifeq ($(CFG_TARGET),subtarget) + LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_TARGET_CONFIG) $(LINUX_SUBTARGET_CONFIG)) + LINUX_RECONFIG_TARGET = $(LINUX_SUBTARGET_CONFIG) +else ifeq ($(CFG_TARGET),subtarget_target) + LINUX_RECONFIG_LIST = $(wildcard $(GENERIC_LINUX_CONFIG) $(LINUX_SUBTARGET_CONFIG) $(LINUX_TARGET_CONFIG)) + LINUX_RECONFIG_TARGET = $(LINUX_TARGET_CONFIG) +else ifeq ($(CFG_TARGET),env) + LINUX_RECONFIG_LIST = $(LINUX_KCONFIG_LIST) + LINUX_RECONFIG_TARGET = $(TOPDIR)/env/kernel-config +else ifneq ($(strip $(CFG_TARGET)),) + $(error CONFIG_TARGET=$(CFG_TARGET) is invalid. Valid: target|subtarget|subtarget_target|env) +endif + +__linux_confcmd = $(2) $(patsubst %,+,$(wordlist 2,9999,$(1))) $(1) + +LINUX_CONF_CMD = $(SCRIPT_DIR)/kconfig.pl $(call __linux_confcmd,$(LINUX_KCONFIG_LIST)) +LINUX_RECONF_CMD = $(SCRIPT_DIR)/kconfig.pl $(call __linux_confcmd,$(LINUX_RECONFIG_LIST)) +LINUX_RECONF_DIFF = $(SCRIPT_DIR)/kconfig.pl - '>' $(call __linux_confcmd,$(filter-out $(LINUX_RECONFIG_TARGET),$(LINUX_RECONFIG_LIST))) $(1) $(GENERIC_PLATFORM_DIR)/config-filter + +ifeq ($(DUMP),1) + BuildTarget=$(BuildTargets/DumpCurrent) + + CPU_CFLAGS = -Os -pipe + ifneq ($(findstring mips,$(ARCH)),) + ifneq ($(findstring mips64,$(ARCH)),) + CPU_TYPE ?= mips64 + else + CPU_TYPE ?= mips32 + endif + CPU_CFLAGS += -mno-branch-likely + CPU_CFLAGS_mips32 = -mips32 -mtune=mips32 + CPU_CFLAGS_mips64 = -mips64 -mtune=mips64 -mabi=64 + CPU_CFLAGS_mips64r2 = -mips64r2 -mtune=mips64r2 -mabi=64 + CPU_CFLAGS_4kec = -mips32r2 -mtune=4kec + CPU_CFLAGS_24kc = -mips32r2 -mtune=24kc + CPU_CFLAGS_74kc = -mips32r2 -mtune=74kc + CPU_CFLAGS_octeonplus = -march=octeon+ -mabi=64 + endif + ifeq ($(ARCH),i386) + CPU_TYPE ?= pentium-mmx + CPU_CFLAGS_pentium-mmx = -march=pentium-mmx + CPU_CFLAGS_pentium4 = -march=pentium4 + endif + ifneq ($(findstring arm,$(ARCH)),) + CPU_TYPE ?= xscale + endif + ifeq ($(ARCH),powerpc) + CPU_CFLAGS_603e:=-mcpu=603e + CPU_CFLAGS_8540:=-mcpu=8540 + CPU_CFLAGS_405:=-mcpu=405 + CPU_CFLAGS_440:=-mcpu=440 + CPU_CFLAGS_464fp:=-mcpu=464fp + endif + ifeq ($(ARCH),powerpc64) + CPU_TYPE ?= powerpc64 + CPU_CFLAGS_e5500:=-mcpu=e5500 + CPU_CFLAGS_powerpc64:=-mcpu=powerpc64 + endif + ifeq ($(ARCH),sparc) + CPU_TYPE = sparc + CPU_CFLAGS_ultrasparc = -mcpu=ultrasparc + endif + ifeq ($(ARCH),aarch64) + CPU_TYPE ?= generic + CPU_CFLAGS_generic = -mcpu=generic + CPU_CFLAGS_cortex-a53 = -mcpu=cortex-a53 + endif + ifeq ($(ARCH),arc) + CPU_TYPE ?= arc700 + CPU_CFLAGS += -matomic + CPU_CFLAGS_arc700 = -mcpu=arc700 + CPU_CFLAGS_archs = -mcpu=archs + endif + ifneq ($(CPU_TYPE),) + ifndef CPU_CFLAGS_$(CPU_TYPE) + $(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type) + endif + endif + DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE))) + + ifneq ($(BOARD),) + TMP_CONFIG:=$(TMP_DIR)/.kconfig-$(call target_conf,$(TARGETID)) + $(TMP_CONFIG): $(LINUX_KCONFIG_LIST) + $(LINUX_CONF_CMD) > $@ || rm -f $@ + -include $(TMP_CONFIG) + .SILENT: $(TMP_CONFIG) + .PRECIOUS: $(TMP_CONFIG) + + ifdef KERNEL_TESTING_PATCHVER + ifneq ($(KERNEL_TESTING_PATCHVER),$(KERNEL_PATCHVER)) + FEATURES += testing-kernel + endif + endif + ifneq ($(CONFIG_OF),) + FEATURES += dt + endif + ifneq ($(CONFIG_GENERIC_GPIO)$(CONFIG_GPIOLIB),) + FEATURES += gpio + endif + ifneq ($(CONFIG_PCI),) + FEATURES += pci + endif + ifneq ($(CONFIG_PCIEPORTBUS),) + FEATURES += pcie + endif + ifneq ($(CONFIG_USB)$(CONFIG_USB_SUPPORT),) + ifneq ($(CONFIG_USB_ARCH_HAS_HCD)$(CONFIG_USB_EHCI_HCD),) + FEATURES += usb + endif + endif + ifneq ($(CONFIG_PCMCIA)$(CONFIG_PCCARD),) + FEATURES += pcmcia + endif + ifneq ($(CONFIG_VGA_CONSOLE)$(CONFIG_FB),) + FEATURES += display + endif + ifneq ($(CONFIG_RTC_CLASS),) + FEATURES += rtc + endif + ifneq ($(CONFIG_VIRTIO),) + FEATURES += virtio + endif + ifneq ($(CONFIG_CPU_MIPS32_R2),) + FEATURES += mips16 + endif + FEATURES += $(foreach v,6 7,$(if $(CONFIG_CPU_V$(v)),arm_v$(v))) + + # remove duplicates + FEATURES:=$(sort $(FEATURES)) + endif +endif + +CUR_SUBTARGET:=$(SUBTARGET) +ifeq ($(SUBTARGETS),) + CUR_SUBTARGET := default +endif + +define BuildTargets/DumpCurrent + .PHONY: dumpinfo + dumpinfo : export DESCRIPTION=$$(Target/Description) + dumpinfo: + @echo 'Target: $(TARGETID)'; \ + echo 'Target-Board: $(BOARD)'; \ + echo 'Target-Name: $(BOARDNAME)$(if $(SUBTARGETS),$(if $(SUBTARGET),))'; \ + echo 'Target-Arch: $(ARCH)'; \ + echo 'Target-Arch-Packages: $(if $(ARCH_PACKAGES),$(ARCH_PACKAGES),$(ARCH)$(if $(CPU_TYPE),_$(CPU_TYPE))$(if $(CPU_SUBTYPE),_$(CPU_SUBTYPE)))'; \ + echo 'Target-Features: $(FEATURES)'; \ + echo 'Target-Depends: $(DEPENDS)'; \ + echo 'Target-Optimization: $(if $(CFLAGS),$(CFLAGS),$(DEFAULT_CFLAGS))'; \ + echo 'CPU-Type: $(CPU_TYPE)$(if $(CPU_SUBTYPE),+$(CPU_SUBTYPE))'; \ + echo 'Linux-Version: $(LINUX_VERSION)'; \ + $(if $(LINUX_TESTING_VERSION),echo 'Linux-Testing-Version: $(LINUX_TESTING_VERSION)';) \ + echo 'Linux-Release: $(LINUX_RELEASE)'; \ + echo 'Linux-Kernel-Arch: $(LINUX_KARCH)'; \ + $(if $(SUBTARGET),,$(if $(DEFAULT_SUBTARGET), echo 'Default-Subtarget: $(DEFAULT_SUBTARGET)'; )) \ + echo 'Target-Description:'; \ + echo "$$$$DESCRIPTION"; \ + echo '@@'; \ + echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \ + $(DUMPINFO) + $(if $(CUR_SUBTARGET),$(SUBMAKE) -r --no-print-directory -C image -s DUMP=1 SUBTARGET=$(CUR_SUBTARGET)) + $(if $(SUBTARGET),,@$(foreach SUBTARGET,$(SUBTARGETS),$(SUBMAKE) -s DUMP=1 SUBTARGET=$(SUBTARGET); )) +endef + +include $(INCLUDE_DIR)/kernel.mk +ifeq ($(TARGET_BUILD),1) + include $(INCLUDE_DIR)/kernel-build.mk + BuildTarget?=$(BuildKernel) +endif + +endif #__target_inc diff --git a/include/toolchain-build.mk b/include/toolchain-build.mk new file mode 100644 index 0000000000..b7a253b71b --- /dev/null +++ b/include/toolchain-build.mk @@ -0,0 +1,23 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2009-2020 OpenWrt.org + +override CONFIG_AUTOREBUILD= +override CONFIG_AUTOREMOVE= + +HOST_BUILD_PREFIX:=$(TOOLCHAIN_DIR) +BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN) + +include $(INCLUDE_DIR)/host-build.mk +include $(INCLUDE_DIR)/hardening.mk + +HOST_STAMP_PREPARED=$(HOST_BUILD_DIR)/.prepared + +define FixupLibdir + if [ -d $(1)/lib64 -a \! -L $(1)/lib64 ]; then \ + mkdir -p $(1)/lib; \ + mv $(1)/lib64/* $(1)/lib/; \ + rm -rf $(1)/lib64; \ + fi + ln -sf lib $(1)/lib64 +endef diff --git a/include/toplevel.mk b/include/toplevel.mk new file mode 100644 index 0000000000..e5396a999f --- /dev/null +++ b/include/toplevel.mk @@ -0,0 +1,269 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2007-2020 OpenWrt.org + +PREP_MK= LIBRECMC_BUILD= QUIET=0 + +export IS_TTY=$(if $(MAKE_TERMOUT),1,0) + +include $(TOPDIR)/include/verbose.mk + +ifeq ($(SDK),1) + include $(TOPDIR)/include/version.mk +else + REVISION:=$(shell $(TOPDIR)/scripts/getver.sh) + SOURCE_DATE_EPOCH:=$(shell $(TOPDIR)/scripts/get_source_date_epoch.sh) +endif + +export REVISION +export SOURCE_DATE_EPOCH +export GIT_CONFIG_PARAMETERS='core.autocrlf=false' +export GIT_ASKPASS:=/bin/true +export MAKE_JOBSERVER=$(filter --jobserver%,$(MAKEFLAGS)) +export GNU_HOST_NAME:=$(shell $(TOPDIR)/scripts/config.guess) +export HOST_OS:=$(shell uname) +export HOST_ARCH:=$(shell uname -m) + +ifeq ($(HOST_OS),Darwin) + ifneq ($(filter /Applications/Xcode.app/% /Library/Developer/%,$(MAKE)),) + $(error Please use a newer version of GNU make. The version shipped by Apple is not supported) + endif +endif + +# prevent perforce from messing with the patch utility +unexport P4PORT P4USER P4CONFIG P4CLIENT + +# prevent user defaults for quilt from interfering +unexport QUILT_PATCHES QUILT_PATCH_OPTS + +unexport C_INCLUDE_PATH CROSS_COMPILE ARCH + +# prevent distro default LPATH from interfering +unexport LPATH + +# make sure that a predefined CFLAGS variable does not disturb packages +export CFLAGS= +export LDFLAGS= + +empty:= +space:= $(empty) $(empty) +path:=$(subst :,$(space),$(PATH)) +path:=$(filter-out .%,$(path)) +path:=$(subst $(space),:,$(path)) +export PATH:=$(path) + +unexport TAR_OPTIONS + +ifeq ($(FORCE),) + .config scripts/config/conf scripts/config/mconf: staging_dir/host/.prereq-build +endif + +SCAN_COOKIE?=$(shell echo $$$$) +export SCAN_COOKIE + +SUBMAKE:=umask 022; $(SUBMAKE) + +ULIMIT_FIX=_limit=`ulimit -n`; [ "$$_limit" = "unlimited" -o "$$_limit" -ge 1024 ] || ulimit -n 1024; + +prepare-mk: staging_dir/host/.prereq-build FORCE ; + +ifdef SDK + IGNORE_PACKAGES = linux +endif + +_ignore = $(foreach p,$(IGNORE_PACKAGES),--ignore $(p)) + +prepare-tmpinfo: FORCE + @+$(MAKE) -r -s staging_dir/host/.prereq-build $(PREP_MK) + mkdir -p tmp/info + $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="packageinfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPTH=5 SCAN_EXTRA="" + $(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPTH=3 SCAN_EXTRA="" SCAN_MAKEOPTS="TARGET_BUILD=1" + for type in package target; do \ + f=tmp/.$${type}info; t=tmp/.config-$${type}.in; \ + [ "$$t" -nt "$$f" ] || ./scripts/$${type}-metadata.pl $(_ignore) config "$$f" > "$$t" || { rm -f "$$t"; echo "Failed to build $$t"; false; break; }; \ + done + [ tmp/.config-feeds.in -nt tmp/.packageauxvars ] || ./scripts/feeds feed_config > tmp/.config-feeds.in + ./scripts/package-metadata.pl mk tmp/.packageinfo > tmp/.packagedeps || { rm -f tmp/.packagedeps; false; } + ./scripts/package-metadata.pl pkgaux tmp/.packageinfo > tmp/.packageauxvars || { rm -f tmp/.packageauxvars; false; } + ./scripts/package-metadata.pl usergroup tmp/.packageinfo > tmp/.packageusergroup || { rm -f tmp/.packageusergroup; false; } + touch $(TOPDIR)/tmp/.build + +.config: ./scripts/config/conf $(if $(CONFIG_HAVE_DOT_CONFIG),,prepare-tmpinfo) + @+if [ \! -e .config ] || ! grep CONFIG_HAVE_DOT_CONFIG .config >/dev/null; then \ + [ -e $(HOME)/.librecmc/defconfig ] && cp $(HOME)/.librecmc/defconfig .config; \ + $(_SINGLE)$(NO_TRACE_MAKE) menuconfig $(PREP_MK); \ + fi + +ifeq ($(RECURSIVE_DEP_IS_ERROR),1) + KCONF_FLAGS=--fatalrecursive +endif +ifneq ($(DISTRO_PKG_CONFIG),) +scripts/config/%onf: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH) +endif +scripts/config/%onf: CFLAGS+= -O2 +scripts/config/%onf: FORCE + @$(_SINGLE)$(SUBMAKE) $(if $(findstring s,$(LIBRECMC_VERBOSE)),,-s) \ + -C scripts/config $(notdir $@) + +$(eval $(call rdep,scripts/config,scripts/config/mconf)) + +config: scripts/config/conf prepare-tmpinfo FORCE + [ -L .config ] && export KCONFIG_OVERWRITECONFIG=1; \ + $< $(KCONF_FLAGS) Config.in + +config-clean: FORCE + $(_SINGLE)$(NO_TRACE_MAKE) -C scripts/config clean + +defconfig: scripts/config/conf prepare-tmpinfo FORCE + touch .config + @if [ ! -s .config -a -e $(HOME)/.librecmc/defconfig ]; then cp $(HOME)/.librecmc/defconfig .config; fi + [ -L .config ] && export KCONFIG_OVERWRITECONFIG=1; \ + $< $(KCONF_FLAGS) --defconfig=.config Config.in + +confdefault-y=allyes +confdefault-m=allmod +confdefault-n=allno +confdefault:=$(confdefault-$(CONFDEFAULT)) + +oldconfig: scripts/config/conf prepare-tmpinfo FORCE + [ -L .config ] && export KCONFIG_OVERWRITECONFIG=1; \ + $< $(KCONF_FLAGS) --$(if $(confdefault),$(confdefault),old)config Config.in + +menuconfig: scripts/config/mconf prepare-tmpinfo FORCE + if [ \! -e .config -a -e $(HOME)/.librecmc/defconfig ]; then \ + cp $(HOME)/.librecmc/defconfig .config; \ + fi + [ -L .config ] && export KCONFIG_OVERWRITECONFIG=1; \ + $< Config.in + +nconfig: scripts/config/nconf prepare-tmpinfo FORCE + if [ \! -e .config -a -e $(HOME)/.librecmc/defconfig ]; then \ + cp $(HOME)/.librecmc/defconfig .config; \ + fi + [ -L .config ] && export KCONFIG_OVERWRITECONFIG=1; \ + $< Config.in + +xconfig: scripts/config/qconf prepare-tmpinfo FORCE + if [ \! -e .config -a -e $(HOME)/.librecmc/defconfig ]; then \ + cp $(HOME)/.librecmc/defconfig .config; \ + fi + $< Config.in + +prepare_kernel_conf: .config toolchain/install FORCE + +ifeq ($(wildcard staging_dir/host/bin/quilt),) + prepare_kernel_conf: + @+$(SUBMAKE) -r tools/quilt/compile +else + prepare_kernel_conf: ; +endif + +kernel_oldconfig: prepare_kernel_conf + $(_SINGLE)$(NO_TRACE_MAKE) -C target/linux oldconfig + +ifneq ($(DISTRO_PKG_CONFIG),) +kernel_menuconfig: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH) +kernel_nconfig: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH) +kernel_xconfig: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH) +endif +kernel_menuconfig: prepare_kernel_conf + $(_SINGLE)$(NO_TRACE_MAKE) -C target/linux menuconfig + +kernel_nconfig: prepare_kernel_conf + $(_SINGLE)$(NO_TRACE_MAKE) -C target/linux nconfig + +kernel_xconfig: prepare_kernel_conf + $(_SINGLE)$(NO_TRACE_MAKE) -C target/linux xconfig + +staging_dir/host/.prereq-build: include/prereq-build.mk + mkdir -p tmp + @$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prereq-build.mk prereq 2>/dev/null || { \ + echo "Prerequisite check failed. Use FORCE=1 to override."; \ + false; \ + } + ifneq ($(realpath $(TOPDIR)/include/prepare.mk),) + @$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prepare.mk prepare 2>/dev/null || { \ + echo "Preparation failed."; \ + false; \ + } + endif + touch $@ + +printdb: FORCE + @$(_SINGLE)$(NO_TRACE_MAKE) -p $@ V=99 DUMP_TARGET_DB=1 2>&1 + +ifndef SDK + DOWNLOAD_DIRS = tools/download toolchain/download package/download target/download +else + DOWNLOAD_DIRS = package/download +endif + +download: .config FORCE $(if $(wildcard $(TOPDIR)/staging_dir/host/bin/flock),,tools/flock/compile) + @+$(foreach dir,$(DOWNLOAD_DIRS),$(SUBMAKE) $(dir);) + +clean dirclean: .config + @+$(SUBMAKE) -r $@ + +prereq:: prepare-tmpinfo .config + @+$(NO_TRACE_MAKE) -r -s $@ + +check: .config FORCE + @+$(NO_TRACE_MAKE) -r -s $@ QUIET= V=s + +val.%: FORCE + @+$(NO_TRACE_MAKE) -r -s $@ QUIET= V=s + +WARN_PARALLEL_ERROR = $(if $(BUILD_LOG),,$(and $(filter -j,$(MAKEFLAGS)),$(findstring s,$(LIBRECMC_VERBOSE)))) + +ifeq ($(SDK),1) + +%:: + @+$(PREP_MK) $(NO_TRACE_MAKE) -r -s prereq + @./scripts/config/conf $(KCONF_FLAGS) --defconfig=.config Config.in + @+$(ULIMIT_FIX) $(SUBMAKE) -r $@ + +else + +%:: + @+$(PREP_MK) $(NO_TRACE_MAKE) -r -s prereq + @( \ + cp .config tmp/.config; \ + ./scripts/config/conf $(KCONF_FLAGS) --defconfig=tmp/.config -w tmp/.config Config.in > /dev/null 2>&1; \ + if ./scripts/kconfig.pl '>' .config tmp/.config | grep -q CONFIG; then \ + printf "$(_R)WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!$(_N)\n" >&2; \ + fi \ + ) + @+$(ULIMIT_FIX) $(SUBMAKE) -r $@ $(if $(WARN_PARALLEL_ERROR), || { \ + printf "$(_R)Build failed - please re-run with -j1 to see the real error message$(_N)\n" >&2; \ + false; \ + } ) + +endif + +# update all feeds, re-create index files, install symlinks +package/symlinks: + ./scripts/feeds update -a + ./scripts/feeds install -a + +# re-create index files, install symlinks +package/symlinks-install: + ./scripts/feeds update -i + ./scripts/feeds install -a + +# remove all symlinks, don't touch ./feeds +package/symlinks-clean: + ./scripts/feeds uninstall -a + +help: + cat README.md + +distclean: + rm -rf bin build_dir .ccache .config* dl feeds key-build* logs package/feeds staging_dir tmp + @$(_SINGLE)$(SUBMAKE) -C scripts/config clean + +ifeq ($(findstring v,$(DEBUG)),) + .SILENT: symlinkclean clean dirclean distclean config-clean download help tmpinfo-clean .config scripts/config/mconf scripts/config/conf menuconfig staging_dir/host/.prereq-build tmp/.prereq-package prepare-tmpinfo +endif +.PHONY: help FORCE +.NOTPARALLEL: + diff --git a/include/trusted-firmware-a.mk b/include/trusted-firmware-a.mk new file mode 100644 index 0000000000..34fb71c56f --- /dev/null +++ b/include/trusted-firmware-a.mk @@ -0,0 +1,98 @@ +PKG_NAME ?= trusted-firmware-a +PKG_CPE_ID ?= cpe:/a:arm:arm_trusted_firmware + +ifndef PKG_SOURCE_PROTO +PKG_SOURCE = trusted-firmware-a-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot +endif + +PKG_BUILD_DIR = $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) + +PKG_TARGETS := bin +PKG_FLAGS:=nonshared + +PKG_LICENSE:=BSD-3-Clause +PKG_LICENSE_FILES:=docs/license.rst + +PKG_BUILD_PARALLEL:=1 + +export GCC_HONOUR_COPTS=s + +define Package/trusted-firmware-a/install/default + $(CP) $(patsubst %,$(PKG_BUILD_DIR)/build/$(PLAT)/release/%,$(TFA_IMAGE)) $(1)/ +endef + +Package/trusted-firmware-a/install = $(Package/trusted-firmware-a/install/default) + +define Trusted-Firmware-A/Init + BUILD_TARGET:= + BUILD_SUBTARGET:= + BUILD_DEVICES:= + NAME:= + DEPENDS:= + HIDDEN:= + DEFAULT:= + PLAT:= + VARIANT:=$(1) + TFA_IMAGE:= +endef + +TARGET_DEP = TARGET_$(BUILD_TARGET)$(if $(BUILD_SUBTARGET),_$(BUILD_SUBTARGET)) + +define Build/Trusted-Firmware-A/Target + $(eval $(call Trusted-Firmware-A/Init,$(1))) + $(eval $(call Trusted-Firmware-A/Default,$(1))) + $(eval $(call Trusted-Firmware-A/$(1),$(1))) + + define Package/trusted-firmware-a-$(1) + SECTION:=boot + CATEGORY:=Boot Loaders + TITLE:=Trusted-Firmware-A for $(NAME) + VARIANT:=$(VARIANT) + DEPENDS:=@!IN_SDK $(DEPENDS) + HIDDEN:=$(HIDDEN) + ifneq ($(BUILD_TARGET),) + DEPENDS += @$(TARGET_DEP) + ifneq ($(BUILD_DEVICES),) + DEFAULT := y if ($(TARGET_DEP)_Default \ + $(patsubst %,|| $(TARGET_DEP)_DEVICE_%,$(BUILD_DEVICES)) \ + $(patsubst %,|| $(patsubst TARGET_%,TARGET_DEVICE_%,$(TARGET_DEP))_DEVICE_%,$(BUILD_DEVICES))) + endif + endif + $(if $(DEFAULT),DEFAULT:=$(DEFAULT)) + URL:=https://www.trustedfirmware.org/projects/tf-a/ + endef + + define Package/trusted-firmware-a-$(1)/install + $$(Package/trusted-firmware-a/install) + endef +endef + +define Build/Configure/Trusted-Firmware-A + $(INSTALL_DIR) $(STAGING_DIR)/usr/include +endef + +define Build/Compile/Trusted-Firmware-A + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + CROSS_COMPILE=$(TARGET_CROSS) \ + OPENSSL_DIR=$(STAGING_DIR_HOST) \ + PLAT=$(PLAT) \ + BUILD_STRING="libreCMC v$(PKG_VERSION)-$(PKG_RELEASE) ($(VARIANT))" \ + $(TFA_MAKE_FLAGS) +endef + +define BuildPackage/Trusted-Firmware-A/Defaults + Build/Configure/Default = $$$$(Build/Configure/Trusted-Firmware-A) + Build/Compile/Default = $$$$(Build/Compile/Trusted-Firmware-A) +endef + +define BuildPackage/Trusted-Firmware-A + $(eval $(call BuildPackage/Trusted-Firmware-A/Defaults)) + $(foreach type,$(if $(DUMP),$(TFA_TARGETS),$(BUILD_VARIANT)), \ + $(eval $(call Build/Trusted-Firmware-A/Target,$(type))) + ) + $(eval $(call Build/DefaultTargets)) + $(foreach type,$(if $(DUMP),$(TFA_TARGETS),$(BUILD_VARIANT)), \ + $(call BuildPackage,trusted-firmware-a-$(type)) + ) +endef diff --git a/include/u-boot.mk b/include/u-boot.mk new file mode 100644 index 0000000000..58370c4cb8 --- /dev/null +++ b/include/u-boot.mk @@ -0,0 +1,111 @@ +PKG_NAME ?= u-boot + +ifndef PKG_SOURCE_PROTO +PKG_SOURCE = $(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL = \ + https://mirror.cyberbits.eu/u-boot \ + https://ftp.denx.de/pub/u-boot \ + ftp://ftp.denx.de/pub/u-boot +endif + +PKG_BUILD_DIR = $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) + +PKG_TARGETS := bin +PKG_FLAGS:=nonshared + +PKG_LICENSE:=GPL-2.0 GPL-2.0+ +PKG_LICENSE_FILES:=Licenses/README + +PKG_BUILD_PARALLEL:=1 + +export GCC_HONOUR_COPTS=s + +define Package/u-boot/install/default + $(CP) $(patsubst %,$(PKG_BUILD_DIR)/%,$(UBOOT_IMAGE)) $(1)/ +endef + +Package/u-boot/install = $(Package/u-boot/install/default) + +define U-Boot/Init + BUILD_TARGET:= + BUILD_SUBTARGET:= + BUILD_DEVICES:= + NAME:= + DEPENDS:= + HIDDEN:= + DEFAULT:= + VARIANT:=$(1) + UBOOT_CONFIG:=$(1) + UBOOT_IMAGE:=u-boot.bin +endef + +TARGET_DEP = TARGET_$(BUILD_TARGET)$(if $(BUILD_SUBTARGET),_$(BUILD_SUBTARGET)) + +UBOOT_MAKE_FLAGS = \ + HOSTCC="$(HOSTCC)" \ + HOSTCFLAGS="$(HOST_CFLAGS) $(HOST_CPPFLAGS) -std=gnu11" \ + HOSTLDFLAGS="$(HOST_LDFLAGS)" \ + LOCALVERSION="-libreCMC-$(REVISION)" \ + STAGING_PREFIX="$(STAGING_DIR_HOST)" \ + PKG_CONFIG_PATH="$(STAGING_DIR_HOST)/lib/pkgconfig" \ + PKG_CONFIG_LIBDIR="$(STAGING_DIR_HOST)/lib/pkgconfig" \ + PKG_CONFIG_EXTRAARGS="--static" \ + $(if $(findstring c,$(LIBRECMC_VERBOSE)),V=1,V='') + +define Build/U-Boot/Target + $(eval $(call U-Boot/Init,$(1))) + $(eval $(call U-Boot/Default,$(1))) + $(eval $(call U-Boot/$(1),$(1))) + + define Package/u-boot-$(1) + SECTION:=boot + CATEGORY:=Boot Loaders + TITLE:=U-Boot for $(NAME) + VARIANT:=$(VARIANT) + DEPENDS:=@!IN_SDK $(DEPENDS) + HIDDEN:=$(HIDDEN) + ifneq ($(BUILD_TARGET),) + DEPENDS += @$(TARGET_DEP) + ifneq ($(BUILD_DEVICES),) + DEFAULT := y if ($(TARGET_DEP)_Default \ + $(patsubst %,|| $(TARGET_DEP)_DEVICE_%,$(BUILD_DEVICES)) \ + $(patsubst %,|| $(patsubst TARGET_%,TARGET_DEVICE_%,$(TARGET_DEP))_DEVICE_%,$(BUILD_DEVICES))) + endif + endif + $(if $(DEFAULT),DEFAULT:=$(DEFAULT)) + URL:=http://www.denx.de/wiki/U-Boot + endef + + define Package/u-boot-$(1)/install + $$(Package/u-boot/install) + endef +endef + +define Build/Configure/U-Boot + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIGURE_VARS) $(UBOOT_CONFIG)_config +endef + +DTC=$(wildcard $(LINUX_DIR)/scripts/dtc/dtc) + +define Build/Compile/U-Boot + +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + CROSS_COMPILE=$(TARGET_CROSS) \ + $(if $(DTC),DTC="$(DTC)") \ + $(UBOOT_MAKE_FLAGS) +endef + +define BuildPackage/U-Boot/Defaults + Build/Configure/Default = $$$$(Build/Configure/U-Boot) + Build/Compile/Default = $$$$(Build/Compile/U-Boot) +endef + +define BuildPackage/U-Boot + $(eval $(call BuildPackage/U-Boot/Defaults)) + $(foreach type,$(if $(DUMP),$(UBOOT_TARGETS),$(BUILD_VARIANT)), \ + $(eval $(call Build/U-Boot/Target,$(type))) + ) + $(eval $(call Build/DefaultTargets)) + $(foreach type,$(if $(DUMP),$(UBOOT_TARGETS),$(BUILD_VARIANT)), \ + $(call BuildPackage,u-boot-$(type)) + ) +endef diff --git a/include/uclibc++.mk b/include/uclibc++.mk new file mode 100644 index 0000000000..10f8d98e15 --- /dev/null +++ b/include/uclibc++.mk @@ -0,0 +1,2 @@ +$(warn uclibc++.mk is deprecated. Please remove it and CXX_DEPENDS) +CXX_DEPENDS = +libstdcpp diff --git a/include/unpack.mk b/include/unpack.mk new file mode 100644 index 0000000000..ebece69978 --- /dev/null +++ b/include/unpack.mk @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +HOST_TAR:=$(TAR) +TAR_CMD=$(HOST_TAR) -C $(1)/.. $(TAR_OPTIONS) +UNZIP_CMD=unzip -q -d $(1)/.. $(DL_DIR)/$(PKG_SOURCE) + +ifeq ($(PKG_SOURCE),) + PKG_UNPACK ?= true +else + +ifeq ($(strip $(UNPACK_CMD)),) + ifeq ($(strip $(PKG_CAT)),) + # try to autodetect file type + EXT:=$(call ext,$(PKG_SOURCE)) + EXT1:=$(EXT) + + ifeq ($(filter gz tgz,$(EXT)),$(EXT)) + EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=)) + DECOMPRESS_CMD:=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | + endif + ifeq ($(filter bzip2 bz2 bz tbz2 tbz,$(EXT)),$(EXT)) + EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=)) + DECOMPRESS_CMD:=bzcat $(DL_DIR)/$(PKG_SOURCE) | + endif + ifeq ($(filter xz txz,$(EXT)),$(EXT)) + EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=)) + DECOMPRESS_CMD:=xzcat $(DL_DIR)/$(PKG_SOURCE) | + endif + ifeq (zst,$(EXT)) + EXT:=$(call ext,$(PKG_SOURCE:.$(EXT)=)) + DECOMPRESS_CMD:=zstdcat $(DL_DIR)/$(PKG_SOURCE) | + endif + ifeq ($(filter tgz tbz tbz2 txz,$(EXT1)),$(EXT1)) + EXT:=tar + endif + DECOMPRESS_CMD ?= cat $(DL_DIR)/$(PKG_SOURCE) | + ifeq ($(EXT),tar) + UNPACK_CMD=$(DECOMPRESS_CMD) $(TAR_CMD) + endif + ifeq ($(EXT),cpio) + UNPACK_CMD=$(DECOMPRESS_CMD) (cd $(1)/..; $(STAGING_DIR_HOST)/bin/cpio -i -d) + endif + ifeq ($(EXT),zip) + UNPACK_CMD=$(UNZIP_CMD) + endif + endif + + # compatibility code for packages that set PKG_CAT + ifeq ($(strip $(UNPACK_CMD)),) + # use existing PKG_CAT + UNPACK_CMD=$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | $(TAR_CMD) + ifeq ($(PKG_CAT),unzip) + UNPACK_CMD=$(UNZIP_CMD) + endif + # replace zcat with $(ZCAT), because some system don't support it properly + ifeq ($(PKG_CAT),zcat) + UNPACK_CMD=gzip -dc $(DL_DIR)/$(PKG_SOURCE) | $(TAR_CMD) + endif + endif +endif + +ifdef PKG_BUILD_DIR + PKG_UNPACK ?= $(SH_FUNC) $(call UNPACK_CMD,$(PKG_BUILD_DIR)) +endif +ifdef HOST_BUILD_DIR + HOST_UNPACK ?= $(SH_FUNC) $(call UNPACK_CMD,$(HOST_BUILD_DIR)) +endif + +endif # PKG_SOURCE + diff --git a/include/verbose.mk b/include/verbose.mk new file mode 100644 index 0000000000..7f3796a316 --- /dev/null +++ b/include/verbose.mk @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2006-2020 OpenWrt.org + +ifndef LIBRECMC_VERBOSE + LIBRECMC_VERBOSE:= +endif +ifeq ("$(origin V)", "command line") + LIBRECMC_VERBOSE:=$(V) +endif + +ifeq ($(LIBRECMC_VERBOSE),1) + LIBRECMC_VERBOSE:=w +endif +ifeq ($(LIBRECMC_VERBOSE),99) + LIBRECMC_VERBOSE:=s +endif + +ifeq ($(NO_TRACE_MAKE),) +NO_TRACE_MAKE := $(MAKE) V=s$(LIBRECMC_VERBOSE) +export NO_TRACE_MAKE +endif + +ifeq ($(IS_TTY),1) + ifneq ($(strip $(NO_COLOR)),1) + _Y:=\\033[33m + _R:=\\033[31m + _N:=\\033[m + endif +endif + +define ERROR_MESSAGE + printf "$(_R)%s$(_N)\n" "$(1)" >&8 +endef + +ifeq ($(findstring s,$(LIBRECMC_VERBOSE)),) + define MESSAGE + printf "$(_Y)%s$(_N)\n" "$(1)" >&8 + endef + + ifeq ($(QUIET),1) + ifneq ($(CURDIR),$(TOPDIR)) + _DIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR}) + else + _DIR:= + endif + _NULL:=$(if $(MAKECMDGOALS),$(shell \ + $(call MESSAGE, make[$(MAKELEVEL)]$(if $(_DIR), -C $(_DIR)) $(MAKECMDGOALS)); \ + )) + SUBMAKE=$(MAKE) + else + SILENT:=>/dev/null $(if $(findstring w,$(LIBRECMC_VERBOSE)),,2>&1) + export QUIET:=1 + SUBMAKE=cmd() { $(SILENT) $(MAKE) -s "$$@" < /dev/null || { echo "make $$*: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on"; false; } } 8>&1 9>&2; cmd + endif + + .SILENT: $(MAKECMDGOALS) +else + SUBMAKE=$(MAKE) -w + define MESSAGE + printf "%s\n" "$(1)" + endef +endif diff --git a/include/version.mk b/include/version.mk new file mode 100644 index 0000000000..441d669a55 --- /dev/null +++ b/include/version.mk @@ -0,0 +1,108 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Copyright (C) 2012-2015 OpenWrt.org +# Copyright (C) 2016 LEDE Project + +# Substituted by SDK, do not remove +# REVISION:=x +# SOURCE_DATE_EPOCH:=x + +PKG_CONFIG_DEPENDS += \ + CONFIG_VERSION_HOME_URL \ + CONFIG_VERSION_BUG_URL \ + CONFIG_VERSION_NUMBER \ + CONFIG_VERSION_CODE \ + CONFIG_VERSION_REPO \ + CONFIG_VERSION_DIST \ + CONFIG_VERSION_MANUFACTURER \ + CONFIG_VERSION_MANUFACTURER_URL \ + CONFIG_VERSION_PRODUCT \ + CONFIG_VERSION_SUPPORT_URL \ + CONFIG_VERSION_HWREV \ + +sanitize = $(call tolower,$(subst _,-,$(subst $(space),-,$(1)))) + +VERSION_NUMBER:=$(call qstrip,$(CONFIG_VERSION_NUMBER)) +VERSION_NUMBER:=$(if $(VERSION_NUMBER),$(VERSION_NUMBER),v6.0-BETA0) + +VERSION_CODE:=$(call qstrip,$(CONFIG_VERSION_CODE)) +VERSION_CODE:=$(if $(VERSION_CODE),$(VERSION_CODE),$(REVISION)) + +VERSION_REPO:=$(call qstrip,$(CONFIG_VERSION_REPO)) +VERSION_REPO:=$(if $(VERSION_REPO),$(VERSION_REPO),https://librecmc.org/librecmc/downloads/snapshots/%v) + +VERSION_DIST:=$(call qstrip,$(CONFIG_VERSION_DIST)) +VERSION_DIST:=$(if $(VERSION_DIST),$(VERSION_DIST),libreCMC) +VERSION_DIST_SANITIZED:=$(call sanitize,$(VERSION_DIST)) + +VERSION_MANUFACTURER:=$(call qstrip,$(CONFIG_VERSION_MANUFACTURER)) +VERSION_MANUFACTURER:=$(if $(VERSION_MANUFACTURER),$(VERSION_MANUFACTURER),libreCMC) + +VERSION_MANUFACTURER_URL:=$(call qstrip,$(CONFIG_VERSION_MANUFACTURER_URL)) +VERSION_MANUFACTURER_URL:=$(if $(VERSION_MANUFACTURER_URL),$(VERSION_MANUFACTURER_URL),https://librecmc.org/) + +VERSION_BUG_URL:=$(call qstrip,$(CONFIG_VERSION_BUG_URL)) +VERSION_BUG_URL:=$(if $(VERSION_BUG_URL),$(VERSION_BUG_URL),https://gogs.librecmc.org/libreCMC/libreCMC/issues) + +VERSION_HOME_URL:=$(call qstrip,$(CONFIG_VERSION_HOME_URL)) +VERSION_HOME_URL:=$(if $(VERSION_HOME_URL),$(VERSION_HOME_URL),https://librecmc.org/) + +VERSION_SUPPORT_URL:=$(call qstrip,$(CONFIG_VERSION_SUPPORT_URL)) +VERSION_SUPPORT_URL:=$(if $(VERSION_SUPPORT_URL),$(VERSION_SUPPORT_URL)) + +VERSION_PRODUCT:=$(call qstrip,$(CONFIG_VERSION_PRODUCT)) +VERSION_PRODUCT:=$(if $(VERSION_PRODUCT),$(VERSION_PRODUCT),Generic) + +VERSION_HWREV:=$(call qstrip,$(CONFIG_VERSION_HWREV)) +VERSION_HWREV:=$(if $(VERSION_HWREV),$(VERSION_HWREV),v0) + +define taint2sym +$(CONFIG_$(firstword $(subst :, ,$(subst +,,$(subst -,,$(1)))))) +endef + +define taint2name +$(lastword $(subst :, ,$(1))) +endef + +VERSION_TAINT_SPECS := \ + -ALL_KMODS:no-all \ + -IPV6:no-ipv6 \ + +USE_GLIBC:glibc \ + +USE_MKLIBS:mklibs \ + +BUSYBOX_CUSTOM:busybox \ + +OVERRIDE_PKGS:override \ + +VERSION_TAINTS := $(strip $(foreach taint,$(VERSION_TAINT_SPECS), \ + $(if $(findstring +,$(taint)), \ + $(if $(call taint2sym,$(taint)),$(call taint2name,$(taint))), \ + $(if $(call taint2sym,$(taint)),,$(call taint2name,$(taint))) \ + ))) + +PKG_CONFIG_DEPENDS += $(foreach taint,$(VERSION_TAINT_SPECS),$(call taint2sym,$(taint))) + +# escape commas, backslashes, squotes, and ampersands for sed +define sed_escape +$(subst &,\&,$(subst $(comma),\$(comma),$(subst ','\'',$(subst \,\\,$(1))))) +endef +#' + +VERSION_SED_SCRIPT:=$(SED) 's,%U,$(call sed_escape,$(VERSION_REPO)),g' \ + -e 's,%V,$(call sed_escape,$(VERSION_NUMBER)),g' \ + -e 's,%v,\L$(call sed_escape,$(subst $(space),_,$(VERSION_NUMBER))),g' \ + -e 's,%C,$(call sed_escape,$(VERSION_CODE)),g' \ + -e 's,%c,\L$(call sed_escape,$(subst $(space),_,$(VERSION_CODE))),g' \ + -e 's,%D,$(call sed_escape,$(VERSION_DIST)),g' \ + -e 's,%d,\L$(call sed_escape,$(subst $(space),_,$(VERSION_DIST))),g' \ + -e 's,%R,$(call sed_escape,$(REVISION)),g' \ + -e 's,%T,$(call sed_escape,$(BOARD)),g' \ + -e 's,%S,$(call sed_escape,$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic)),g' \ + -e 's,%A,$(call sed_escape,$(ARCH_PACKAGES)),g' \ + -e 's,%t,$(call sed_escape,$(VERSION_TAINTS)),g' \ + -e 's,%M,$(call sed_escape,$(VERSION_MANUFACTURER)),g' \ + -e 's,%m,$(call sed_escape,$(VERSION_MANUFACTURER_URL)),g' \ + -e 's,%b,$(call sed_escape,$(VERSION_BUG_URL)),g' \ + -e 's,%u,$(call sed_escape,$(VERSION_HOME_URL)),g' \ + -e 's,%s,$(call sed_escape,$(VERSION_SUPPORT_URL)),g' \ + -e 's,%P,$(call sed_escape,$(VERSION_PRODUCT)),g' \ + -e 's,%h,$(call sed_escape,$(VERSION_HWREV)),g' + diff --git a/package/Makefile b/package/Makefile new file mode 100644 index 0000000000..209be34674 --- /dev/null +++ b/package/Makefile @@ -0,0 +1,114 @@ +# +# Copyright (C) 2006-2010 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +curdir:=package + +include $(INCLUDE_DIR)/feeds.mk +include $(INCLUDE_DIR)/rootfs.mk + +-include $(TMP_DIR)/.packagedeps +package-y += kernel/linux +$(curdir)/autoremove:=1 +$(curdir)/builddirs:=$(sort $(package-) $(package-y) $(package-m)) +$(curdir)/builddirs-default:=. $(sort $(package-y) $(package-m)) +$(curdir)/builddirs-prereq:=. $(sort $(prereq-y) $(prereq-m)) +ifdef CHECK_ALL +$(curdir)/builddirs-check:=$($(curdir)/builddirs) +$(curdir)/builddirs-download:=$($(curdir)/builddirs) +endif +ifneq ($(IGNORE_ERRORS),) + package-y-filter := $(package-y) + package-m-filter := $(filter-out $(package-y),$(package-m)) + package-n-filter := $(filter-out $(package-y) $(package-m),$(package-)) + package-ignore-errors := $(filter n m y,$(IGNORE_ERRORS)) + package-ignore-errors := $(if $(package-ignore-errors),$(package-ignore-errors),n m) + package-ignore-subdirs := $(sort $(foreach m,$(package-ignore-errors),$(package-$(m)-filter))) + $(curdir)/builddirs-ignore-download := $(package-ignore-subdirs) + $(curdir)/builddirs-ignore-compile := $(package-ignore-subdirs) + $(curdir)/builddirs-ignore-host-download := $(package-ignore-subdirs) + $(curdir)/builddirs-ignore-host-compile := $(package-ignore-subdirs) +endif + +PACKAGE_INSTALL_FILES:= \ + $(foreach pkg,$(sort $(package-y)), \ + $(foreach variant, \ + $(if $(strip $(package/$(pkg)/variants)), \ + $(package/$(pkg)/variants), \ + $(if $(package/$(pkg)/default-variant), \ + $(package/$(pkg)/default-variant), \ + default \ + ) \ + ), \ + $(PKG_INFO_DIR)/$(lastword $(subst /,$(space),$(pkg))).$(variant).install \ + ) \ + ) + +$(curdir)/cleanup: $(TMP_DIR)/.build + rm -rf $(STAGING_DIR_ROOT) + +$(curdir)/merge: + rm -rf $(PACKAGE_DIR_ALL) + mkdir -p $(PACKAGE_DIR_ALL) + -$(foreach pdir,$(PACKAGE_SUBDIRS),$(if $(wildcard $(pdir)/*.ipk),ln -s $(pdir)/*.ipk $(PACKAGE_DIR_ALL);)) + +$(curdir)/merge-index: $(curdir)/merge + (cd $(PACKAGE_DIR_ALL) && $(SCRIPT_DIR)/ipkg-make-index.sh . 2>&1 > Packages; ) + +ifndef SDK + $(curdir)/compile: $(curdir)/system/opkg/host/compile +endif + +$(curdir)/install: $(TMP_DIR)/.build $(curdir)/merge $(if $(CONFIG_TARGET_PER_DEVICE_ROOTFS),$(curdir)/merge-index) + - find $(STAGING_DIR_ROOT) -type d | $(XARGS) chmod 0755 + rm -rf $(TARGET_DIR) $(TARGET_DIR_ORIG) + mkdir -p $(TARGET_DIR)/tmp + $(file >$(TMP_DIR)/opkg_install_list,\ + $(call opkg_package_files,\ + $(foreach pkg,$(shell cat $(PACKAGE_INSTALL_FILES) 2>/dev/null),$(pkg)$(call GetABISuffix,$(pkg))))) + $(call opkg,$(TARGET_DIR)) install $$(cat $(TMP_DIR)/opkg_install_list) + @for file in $(PACKAGE_INSTALL_FILES); do \ + [ -s $$file.flags ] || continue; \ + for flag in `cat $$file.flags`; do \ + $(call opkg,$(TARGET_DIR)) flag $$flag `cat $$file`; \ + done; \ + done || true + + $(CP) $(TARGET_DIR) $(TARGET_DIR_ORIG) + + $(call prepare_rootfs,$(TARGET_DIR),$(TOPDIR)/files) + +$(curdir)/index: FORCE + @echo Generating package index... + @for d in $(PACKAGE_SUBDIRS); do ( \ + mkdir -p $$d; \ + cd $$d || continue; \ + $(SCRIPT_DIR)/ipkg-make-index.sh . 2>&1 > Packages.manifest; \ + grep -vE '^(Maintainer|LicenseFiles|Source|SourceName|Require|SourceDateEpoch)' Packages.manifest > Packages; \ + case "$$(((64 + $$(stat -L -c%s Packages)) % 128))" in 110|111) \ + $(call ERROR_MESSAGE,WARNING: Applying padding in $$d/Packages to workaround usign SHA-512 bug!); \ + { echo ""; echo ""; } >> Packages;; \ + esac; \ + gzip -9nc Packages > Packages.gz; \ + ); done +ifdef CONFIG_SIGNED_PACKAGES + @echo Signing package index... + @for d in $(PACKAGE_SUBDIRS); do ( \ + [ -d $$d ] && \ + cd $$d || continue; \ + $(STAGING_DIR_HOST)/bin/usign -S -m Packages -s $(BUILD_KEY); \ + ); done +endif + +$(curdir)/flags-install:= -j1 + +$(eval $(call stampfile,$(curdir),package,prereq,.config)) +$(eval $(call stampfile,$(curdir),package,cleanup,$(TMP_DIR)/.build)) +$(eval $(call stampfile,$(curdir),package,compile,$(TMP_DIR)/.build)) +$(eval $(call stampfile,$(curdir),package,install,$(TMP_DIR)/.build)) +$(eval $(call stampfile,$(curdir),package,check,$(TMP_DIR)/.build)) + +$(eval $(call subdir,$(curdir))) diff --git a/package/base-files/Makefile b/package/base-files/Makefile new file mode 100644 index 0000000000..9525f367ff --- /dev/null +++ b/package/base-files/Makefile @@ -0,0 +1,236 @@ +# +# Copyright (C) 2007-2021 OpenWrt.org +# Copyright (C) 2010 Vertical Communications +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk +include $(INCLUDE_DIR)/kernel.mk +include $(INCLUDE_DIR)/version.mk +include $(INCLUDE_DIR)/feeds.mk + +PKG_NAME:=base-files +PKG_FLAGS:=nonshared +PKG_RELEASE:=$(COMMITCOUNT) + +PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ +PKG_BUILD_DEPENDS:=usign/host ucert/host +PKG_LICENSE:=GPL-2.0 + +# Extend depends from version.mk +PKG_CONFIG_DEPENDS += \ + CONFIG_SIGNED_PACKAGES CONFIG_TARGET_INIT_PATH CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE \ + CONFIG_NAND_SUPPORT \ + CONFIG_LEGACY_SDCARD_SUPPORT \ + CONFIG_EMMC_SUPPORT \ + CONFIG_CLEAN_IPKG \ + CONFIG_PER_FEED_REPO \ + $(foreach feed,$(FEEDS_AVAILABLE),CONFIG_FEED_$(feed)) + +include $(INCLUDE_DIR)/package.mk + +ifneq ($(DUMP),1) + STAMP_CONFIGURED:=$(strip $(STAMP_CONFIGURED))_$(shell echo $(CONFIG_TARGET_INIT_PATH) | $(MKHASH) md5) + TARGET:=-$(BOARD) +endif + +define Package/base-files + SECTION:=base + CATEGORY:=Base system + DEPENDS:=+netifd +libc +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:openwrt-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool + TITLE:=Base filesystem for libreCMC + URL:=http://openwrt.org/ + VERSION:=$(PKG_RELEASE)-$(REVISION) +endef + +define Package/base-files/conffiles +/etc/config/ +/etc/config/network +/etc/config/system +/etc/dropbear/ +/etc/ethers +/etc/group +/etc/hosts +/etc/inittab +/etc/iproute2/rt_protos +/etc/iproute2/rt_tables +/etc/passwd +/etc/profile +/etc/profile.d +/etc/protocols +/etc/rc.local +/etc/services +/etc/shadow +/etc/shells +/etc/shinit +/etc/sysctl.conf +/etc/sysupgrade.conf +$(call $(TARGET)/conffiles) +endef + +define Package/base-files/description + This package contains a base filesystem and system scripts for libreCMC. +endef + +define ImageConfigOptions + mkdir -p $(1)/lib/preinit + echo 'pi_suppress_stderr="$(CONFIG_TARGET_PREINIT_SUPPRESS_STDERR)"' >$(1)/lib/preinit/00_preinit.conf + echo 'fs_failsafe_wait_timeout=$(if $(CONFIG_TARGET_PREINIT_TIMEOUT),$(CONFIG_TARGET_PREINIT_TIMEOUT),2)' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_init_path="$(TARGET_INIT_PATH)"' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_init_env=$(if $(CONFIG_TARGET_INIT_ENV),$(CONFIG_TARGET_INIT_ENV),"")' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_init_cmd=$(if $(CONFIG_TARGET_INIT_CMD),$(CONFIG_TARGET_INIT_CMD),"/sbin/init")' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_init_suppress_stderr="$(CONFIG_TARGET_INIT_SUPPRESS_STDERR)"' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_ifname=$(if $(CONFIG_TARGET_PREINIT_IFNAME),$(CONFIG_TARGET_PREINIT_IFNAME),"")' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_ip=$(if $(CONFIG_TARGET_PREINIT_IP),$(CONFIG_TARGET_PREINIT_IP),"192.168.10.1")' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_netmask=$(if $(CONFIG_TARGET_PREINIT_NETMASK),$(CONFIG_TARGET_PREINIT_NETMASK),"255.255.255.0")' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_broadcast=$(if $(CONFIG_TARGET_PREINIT_BROADCAST),$(CONFIG_TARGET_PREINIT_BROADCAST),"192.168.10.255")' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_preinit_net_messages="$(CONFIG_TARGET_PREINIT_SHOW_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_preinit_no_failsafe_netmsg="$(CONFIG_TARGET_PREINIT_SUPPRESS_FAILSAFE_NETMSG)"' >>$(1)/lib/preinit/00_preinit.conf + echo 'pi_preinit_no_failsafe="$(CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE)"' >>$(1)/lib/preinit/00_preinit.conf +endef + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) +endef + +define Build/Compile/Default + +endef +Build/Compile = $(Build/Compile/Default) + +ifdef CONFIG_SIGNED_PACKAGES + define Build/Configure + [ -s $(BUILD_KEY) -a -s $(BUILD_KEY).pub ] || \ + $(STAGING_DIR_HOST)/bin/usign -G -s $(BUILD_KEY) -p $(BUILD_KEY).pub -c "Local build key" + + [ -s $(BUILD_KEY).ucert ] || \ + $(STAGING_DIR_HOST)/bin/ucert -I -c $(BUILD_KEY).ucert -p $(BUILD_KEY).pub -s $(BUILD_KEY) + + endef + +ifndef CONFIG_BUILDBOT + define Package/base-files/install-key + mkdir -p $(1)/etc/opkg/keys + $(CP) $(BUILD_KEY).pub $(1)/etc/opkg/keys/`$(STAGING_DIR_HOST)/bin/usign -F -p $(BUILD_KEY).pub` + + endef +endif +endif + +ifeq ($(CONFIG_NAND_SUPPORT),) + define Package/base-files/nand-support + rm -f $(1)/lib/upgrade/nand.sh + endef +endif + +ifeq ($(CONFIG_EMMC_SUPPORT),) + define Package/base-files/emmc-support + rm -f $(1)/lib/upgrade/emmc.sh + endef +endif + +ifeq ($(CONFIG_LEGACY_SDCARD_SUPPORT),) + define Package/base-files/legacy-sdcard-support + rm -f $(1)/lib/upgrade/legacy-sdcard.sh + endef +endif + + +define Package/base-files/install + $(CP) ./files/* $(1)/ + $(Package/base-files/install-key) + $(Package/base-files/nand-support) + $(Package/base-files/legacy-sdcard-support) + $(Package/base-files/emmc-support) + if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \ + $(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \ + fi + if [ -d $(PLATFORM_DIR)/base-files/. ]; then \ + $(CP) $(PLATFORM_DIR)/base-files/* $(1)/; \ + fi + $(if $(filter-out $(PLATFORM_DIR),$(PLATFORM_SUBDIR)), \ + if [ -d $(PLATFORM_SUBDIR)/base-files/. ]; then \ + $(CP) $(PLATFORM_SUBDIR)/base-files/* $(1)/; \ + fi; \ + ) + + $(VERSION_SED_SCRIPT) \ + $(1)/etc/banner \ + $(1)/etc/device_info \ + $(1)/etc/openwrt_release \ + $(1)/etc/openwrt_version \ + $(1)/usr/lib/os-release + + + $(SED) "s#%PATH%#$(TARGET_INIT_PATH)#g" \ + $(1)/sbin/hotplug-call \ + $(1)/etc/preinit \ + $(1)/etc/profile + + mkdir -p \ + $(1)/CONTROL \ + $(1)/dev \ + $(1)/etc/config \ + $(1)/etc/crontabs \ + $(1)/etc/rc.d \ + $(1)/overlay \ + $(1)/lib/firmware \ + $(1)/mnt \ + $(1)/proc \ + $(1)/tmp \ + $(1)/usr/lib \ + $(1)/usr/bin \ + $(1)/sys \ + $(1)/www \ + $(1)/root + + $(LN) /proc/mounts $(1)/etc/mtab + $(if $(LIB_SUFFIX),-$(LN) lib $(1)/lib$(LIB_SUFFIX)) + $(if $(LIB_SUFFIX),-$(LN) lib $(1)/usr/lib$(LIB_SUFFIX)) + +ifneq ($(CONFIG_TARGET_ROOTFS_PERSIST_VAR),y) + rm -f $(1)/var + $(LN) tmp $(1)/var +else + mkdir -p $(1)/var + $(LN) /tmp/run $(1)/var/run +endif + $(LN) /tmp/resolv.conf /tmp/TZ /tmp/localtime $(1)/etc/ + + chmod 0600 $(1)/etc/shadow + chmod 1777 $(1)/tmp + + $(call ImageConfigOptions,$(1)) + $(call Package/base-files/install-target,$(1)) + for conffile in $(1)/etc/config/*; do \ + if [ -f "$$$$conffile" ]; then \ + grep "$$$${conffile##$(1)}" $(1)/CONTROL/conffiles || \ + echo "$$$${conffile##$(1)}" >> $(1)/CONTROL/conffiles; \ + fi \ + done + + $(if $(CONFIG_INCLUDE_CONFIG), \ + echo -e "# Build configuration for board $(BOARD)/$(SUBTARGET)/$(PROFILE)\n" >$(1)/etc/build.config; \ + cat $(BIN_DIR)/config.buildinfo >>$(1)/etc/build.config; \ + cat $(BIN_DIR)/feeds.buildinfo >>$(1)/etc/build.feeds; \ + cat $(BIN_DIR)/version.buildinfo >>$(1)/etc/build.version) + + $(if $(CONFIG_CLEAN_IPKG),, \ + mkdir -p $(1)/etc/opkg; \ + $(call FeedSourcesAppend,$(1)/etc/opkg/distfeeds.conf); \ + $(VERSION_SED_SCRIPT) $(1)/etc/opkg/distfeeds.conf) + $(if $(CONFIG_IPK_FILES_CHECKSUMS),, \ + rm -f $(1)/sbin/pkg_check) + + $(if $(CONFIG_TARGET_PREINIT_DISABLE_FAILSAFE), \ + rm -f $(1)/etc/banner.failsafe,) +endef + +ifneq ($(DUMP),1) + -include $(PLATFORM_DIR)/base-files.mk + -include $(PLATFORM_SUBDIR)/base-files.mk +endif + +$(eval $(call BuildPackage,base-files)) diff --git a/package/base-files/files/bin/board_detect b/package/base-files/files/bin/board_detect new file mode 100755 index 0000000000..94f45bec53 --- /dev/null +++ b/package/base-files/files/bin/board_detect @@ -0,0 +1,14 @@ +#!/bin/sh + +CFG=$1 + +[ -n "$CFG" ] || CFG=/etc/board.json + +[ -d "/etc/board.d/" -a ! -s "$CFG" ] && { + for a in $(ls /etc/board.d/*); do + [ -s $a ] || continue; + $(. $a) + done +} + +[ -s "$CFG" ] || return 1 diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate new file mode 100755 index 0000000000..3bd3e7affc --- /dev/null +++ b/package/base-files/files/bin/config_generate @@ -0,0 +1,533 @@ +#!/bin/sh + +CFG=/etc/board.json + +. /usr/share/libubox/jshn.sh + +[ -s $CFG ] || /bin/board_detect || exit 1 +[ -s /etc/config/network -a -s /etc/config/system ] && exit 0 + +generate_bridge() { + local name=$1 + local macaddr=$2 + uci -q batch <<-EOF + set network.$name=device + set network.$name.name=$name + set network.$name.type=bridge + EOF + if [ -n "$macaddr" ]; then + uci -q batch <<-EOF + set network.$name.macaddr=$macaddr + EOF + fi +} + +bridge_vlan_id=0 +generate_bridge_vlan() { + local name=$1_vlan + local device=$2 + local ports="$3" + local vlan="$4" + uci -q batch <<-EOF + set network.$name=bridge-vlan + set network.$name.device='$device' + set network.$name.vlan='$vlan' + set network.$name.ports='$ports' + EOF +} + +generate_static_network() { + uci -q batch <<-EOF + delete network.loopback + set network.loopback='interface' + set network.loopback.device='lo' + set network.loopback.proto='static' + set network.loopback.ipaddr='127.0.0.1' + set network.loopback.netmask='255.0.0.0' + EOF + [ -e /proc/sys/net/ipv6 ] && { + uci -q batch <<-EOF + delete network.globals + set network.globals='globals' + set network.globals.ula_prefix='auto' + EOF + } + + if json_is_a dsl object; then + json_select dsl + if json_is_a atmbridge object; then + json_select atmbridge + local vpi vci encaps payload nameprefix + json_get_vars vpi vci encaps payload nameprefix + uci -q batch <<-EOF + delete network.atm + set network.atm='atm-bridge' + set network.atm.vpi='$vpi' + set network.atm.vci='$vci' + set network.atm.encaps='$encaps' + set network.atm.payload='$payload' + set network.atm.nameprefix='$nameprefix' + EOF + json_select .. + fi + + if json_is_a modem object; then + json_select modem + local type annex firmware tone xfer_mode + json_get_vars type annex firmware tone xfer_mode + uci -q batch <<-EOF + delete network.dsl + set network.dsl='dsl' + set network.dsl.annex='$annex' + set network.dsl.firmware='$firmware' + set network.dsl.tone='$tone' + set network.dsl.xfer_mode='$xfer_mode' + EOF + json_select .. + fi + json_select .. + fi +} + +addr_offset=2 +generate_network() { + local ports device macaddr protocol type ipaddr netmask vlan + local bridge=$2 + + json_select network + json_select "$1" + json_get_vars device macaddr metric protocol ipaddr netmask vlan + json_get_values ports ports + json_select .. + json_select .. + + [ -n "$device" -o -n "$ports" ] || return + + # Force bridge for "lan" as it may have other devices (e.g. wireless) + # bridged + [ "$1" = "lan" -a -z "$ports" ] && { + ports="$device" + } + + [ -n "$ports" -a -z "$bridge" ] && { + uci -q batch <<-EOF + add network device + set network.@device[-1].name='br-$1' + set network.@device[-1].type='bridge' + EOF + for port in $ports; do uci add_list network.@device[-1].ports="$port"; done + [ -n "$macaddr" ] && { + for port in $ports; do + uci -q batch <<-EOF + add network device + set network.@device[-1].name='$port' + set network.@device[-1].macaddr='$macaddr' + EOF + done + } + device=br-$1 + type= + macaddr="" + } + + [ -n "$bridge" ] && { + [ -z "$ports" ] && ports="$device" + if [ -z "$vlan" ]; then + bridge_vlan_id=$((bridge_vlan_id + 1)) + vlan=$bridge_vlan_id + fi + generate_bridge_vlan $1 $bridge "$ports" $vlan + device=$bridge.$vlan + type="" + } + + if [ -n "$macaddr" ]; then + uci -q batch <<-EOF + add network device + set network.@device[-1].name='$device' + set network.@device[-1].macaddr='$macaddr' + EOF + fi + + uci -q batch <<-EOF + delete network.$1 + set network.$1='interface' + set network.$1.type='$type' + set network.$1.device='$device' + set network.$1.metric='$metric' + set network.$1.proto='none' + EOF + + case "$protocol" in + static) + local ipad + case "$1" in + lan) ipad=${ipaddr:-"192.168.10.1"} ;; + *) ipad=${ipaddr:-"192.168.$((addr_offset++)).1"} ;; + esac + + netm=${netmask:-"255.255.255.0"} + + uci -q batch <<-EOF + set network.$1.proto='static' + set network.$1.ipaddr='$ipad' + set network.$1.netmask='$netm' + EOF + [ -e /proc/sys/net/ipv6 ] && uci set network.$1.ip6assign='60' + ;; + + dhcp) + # fixup IPv6 slave interface if parent is a bridge + [ "$type" = "bridge" ] && device="br-$1" + + uci set network.$1.proto='dhcp' + [ -e /proc/sys/net/ipv6 ] && { + uci -q batch <<-EOF + delete network.${1}6 + set network.${1}6='interface' + set network.${1}6.device='$device' + set network.${1}6.proto='dhcpv6' + EOF + } + ;; + + pppoe) + uci -q batch <<-EOF + set network.$1.proto='pppoe' + set network.$1.username='username' + set network.$1.password='password' + EOF + [ -e /proc/sys/net/ipv6 ] && { + uci -q batch <<-EOF + set network.$1.ipv6='1' + delete network.${1}6 + set network.${1}6='interface' + set network.${1}6.device='@${1}' + set network.${1}6.proto='dhcpv6' + EOF + } + ;; + esac +} + +generate_switch_vlans_ports() { + local switch="$1" + local port ports role roles num attr val + + # + # autogenerate vlans + # + + if json_is_a roles array; then + json_get_keys roles roles + json_select roles + + for role in $roles; do + json_select "$role" + json_get_vars ports + json_select .. + + uci -q batch <<-EOF + add network switch_vlan + set network.@switch_vlan[-1].device='$switch' + set network.@switch_vlan[-1].vlan='$role' + set network.@switch_vlan[-1].ports='$ports' + EOF + done + + json_select .. + fi + + + # + # write port specific settings + # + + if json_is_a ports array; then + json_get_keys ports ports + json_select ports + + for port in $ports; do + json_select "$port" + json_get_vars num + + if json_is_a attr object; then + json_get_keys attr attr + json_select attr + uci -q batch <<-EOF + add network switch_port + set network.@switch_port[-1].device='$switch' + set network.@switch_port[-1].port=$num + EOF + + for attr in $attr; do + json_get_var val "$attr" + uci -q set network.@switch_port[-1].$attr="$val" + done + json_select .. + fi + json_select .. + done + + json_select .. + fi +} + +generate_switch() { + local key="$1" + local vlans + + json_select switch + json_select "$key" + json_get_vars enable reset blinkrate cpu_port \ + ar8xxx_mib_type ar8xxx_mib_poll_interval + + uci -q batch <<-EOF + add network switch + set network.@switch[-1].name='$key' + set network.@switch[-1].reset='$reset' + set network.@switch[-1].enable_vlan='$enable' + set network.@switch[-1].blinkrate='$blinkrate' + set network.@switch[-1].ar8xxx_mib_type='$ar8xxx_mib_type' + set network.@switch[-1].ar8xxx_mib_poll_interval='$ar8xxx_mib_poll_interval' + EOF + + generate_switch_vlans_ports "$1" + + json_select .. + json_select .. +} + +generate_static_system() { + uci -q batch <<-EOF + delete system.@system[0] + add system system + set system.@system[-1].hostname='libreCMC' + set system.@system[-1].timezone='UTC' + set system.@system[-1].ttylogin='0' + set system.@system[-1].log_size='64' + set system.@system[-1].urandom_seed='0' + + delete system.ntp + set system.ntp='timeserver' + set system.ntp.enabled='1' + set system.ntp.enable_server='0' + add_list system.ntp.server='0.librecmc.pool.ntp.org' + add_list system.ntp.server='1.librecmc.pool.ntp.org' + add_list system.ntp.server='2.librecmc.pool.ntp.org' + add_list system.ntp.server='3.librecmc.pool.ntp.org' + EOF + + if json_is_a system object; then + json_select system + local hostname + if json_get_var hostname hostname; then + uci -q set "system.@system[-1].hostname=$hostname" + fi + + local compat_version + if json_get_var compat_version compat_version; then + uci -q set "system.@system[-1].compat_version=$compat_version" + else + uci -q set "system.@system[-1].compat_version=1.0" + fi + + if json_is_a ntpserver array; then + local keys key + json_get_keys keys ntpserver + json_select ntpserver + uci -q delete "system.ntp.server" + + for key in $keys; do + local server + if json_get_var server "$key"; then + uci -q add_list "system.ntp.server=$server" + fi + done + json_select .. + fi + json_select .. + fi +} + +generate_rssimon() { + local key="$1" + local cfg="rssid_$key" + local refresh threshold + + json_select rssimon + json_select "$key" + json_get_vars refresh threshold + json_select .. + json_select .. + + uci -q batch <<-EOF + delete system.$cfg + set system.$cfg='rssid' + set system.$cfg.dev='$key' + set system.$cfg.refresh='$refresh' + set system.$cfg.threshold='$threshold' + EOF +} + +generate_led() { + local key="$1" + local cfg="led_$key" + + json_select led + json_select "$key" + json_get_vars name sysfs type trigger default + + uci -q batch <<-EOF + delete system.$cfg + set system.$cfg='led' + set system.$cfg.name='$name' + set system.$cfg.sysfs='$sysfs' + set system.$cfg.trigger='$trigger' + set system.$cfg.default='$default' + EOF + + case "$type" in + gpio) + local gpio inverted + json_get_vars gpio inverted + uci -q batch <<-EOF + set system.$cfg.trigger='gpio' + set system.$cfg.gpio='$gpio' + set system.$cfg.inverted='$inverted' + EOF + ;; + + netdev) + local device mode + json_get_vars device mode + uci -q batch <<-EOF + set system.$cfg.trigger='netdev' + set system.$cfg.mode='$mode' + set system.$cfg.dev='$device' + EOF + ;; + + usb) + local device + json_get_vars device + uci -q batch <<-EOF + set system.$cfg.trigger='usbdev' + set system.$cfg.interval='50' + set system.$cfg.dev='$device' + EOF + ;; + + usbport) + local ports port + json_get_values ports ports + uci set system.$cfg.trigger='usbport' + for port in $ports; do + uci add_list system.$cfg.port=$port + done + ;; + + rssi) + local iface minq maxq offset factor + json_get_vars iface minq maxq offset factor + uci -q batch <<-EOF + set system.$cfg.trigger='rssi' + set system.$cfg.iface='rssid_$iface' + set system.$cfg.minq='$minq' + set system.$cfg.maxq='$maxq' + set system.$cfg.offset='$offset' + set system.$cfg.factor='$factor' + EOF + ;; + + switch) + local port_mask speed_mask mode + json_get_vars port_mask speed_mask mode + uci -q batch <<-EOF + set system.$cfg.port_mask='$port_mask' + set system.$cfg.speed_mask='$speed_mask' + set system.$cfg.mode='$mode' + EOF + ;; + + portstate) + local port_state + json_get_vars port_state + uci -q batch <<-EOF + set system.$cfg.port_state='$port_state' + EOF + ;; + + timer|oneshot) + local delayon delayoff + json_get_vars delayon delayoff + uci -q batch <<-EOF + set system.$cfg.trigger='$type' + set system.$cfg.delayon='$delayon' + set system.$cfg.delayoff='$delayoff' + EOF + ;; + esac + + json_select .. + json_select .. +} + +generate_gpioswitch() { + local cfg="$1" + + json_select gpioswitch + json_select "$cfg" + local name pin default + json_get_vars name pin default + uci -q batch <<-EOF + delete system.$cfg + set system.$cfg='gpio_switch' + set system.$cfg.name='$name' + set system.$cfg.gpio_pin='$pin' + set system.$cfg.value='$default' + EOF + json_select .. + json_select .. +} + +json_init +json_load "$(cat ${CFG})" + +umask 077 + +if [ ! -s /etc/config/network ]; then + bridge_name="" + touch /etc/config/network + generate_static_network + + json_get_vars bridge + [ -n "$bridge" ] && { + json_select bridge + json_get_vars name macaddr + generate_bridge "$name" "$macaddr" + json_select .. + bridge_name=$name + } + + json_get_keys keys network + for key in $keys; do generate_network $key $bridge_name; done + + json_get_keys keys switch + for key in $keys; do generate_switch $key; done +fi + +if [ ! -s /etc/config/system ]; then + touch /etc/config/system + generate_static_system + + json_get_keys keys rssimon + for key in $keys; do generate_rssimon $key; done + + json_get_keys keys gpioswitch + for key in $keys; do generate_gpioswitch $key; done + + json_get_keys keys led + for key in $keys; do generate_led $key; done +fi +uci commit diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh new file mode 100755 index 0000000000..5d5eac3ea8 --- /dev/null +++ b/package/base-files/files/bin/ipcalc.sh @@ -0,0 +1,71 @@ +#!/bin/sh + +awk -f - $* <limit) end=limit + + print "IP="int2ip(ipaddr) + print "NETMASK="int2ip(netmask) + print "BROADCAST="int2ip(broadcast) + print "NETWORK="int2ip(network) + print "PREFIX="32-bitcount(compl32(netmask)) + + # range calculations: + # ipcalc + + if (ARGC > 3) { + print "START="int2ip(start) + print "END="int2ip(end) + } +} +EOF diff --git a/package/base-files/files/etc/banner b/package/base-files/files/etc/banner new file mode 100644 index 0000000000..c4dc4efb81 --- /dev/null +++ b/package/base-files/files/etc/banner @@ -0,0 +1,9 @@ + + ____ _____ ____ + _ _ _ | __|| || __| + | (_) |__ _ _ ___ | | | | | || | + | | | '_ \ '_/ -_)| |__ | | | || |__ + |_|_|_.__/_| \___||____||_|_|_||____| + ----------------------------------------- + %C Version: %V + diff --git a/package/base-files/files/etc/banner.failsafe b/package/base-files/files/etc/banner.failsafe new file mode 100644 index 0000000000..49855e7133 --- /dev/null +++ b/package/base-files/files/etc/banner.failsafe @@ -0,0 +1,15 @@ +================= FAILSAFE MODE active ================ +special commands: +* firstboot reset settings to factory defaults +* mount_root mount root-partition with config files + +after mount_root: +* passwd change root's password +* /etc/config directory with config files + +for more help see: +https://openwrt.org/docs/guide-user/troubleshooting/ +- failsafe_and_factory_reset +- root_password_reset +======================================================= + diff --git a/package/base-files/files/etc/board.d/99-default_network b/package/base-files/files/etc/board.d/99-default_network new file mode 100644 index 0000000000..49d2a3b354 --- /dev/null +++ b/package/base-files/files/etc/board.d/99-default_network @@ -0,0 +1,16 @@ +# +# Copyright (C) 2013-2015 OpenWrt.org +# + +. /lib/functions/uci-defaults.sh + +board_config_update + +json_is_a network object && exit 0 + +ucidef_set_interface_lan 'eth0' +[ -d /sys/class/net/eth1 ] && ucidef_set_interface_wan 'eth1' + +board_config_flush + +exit 0 diff --git a/package/base-files/files/etc/device_info b/package/base-files/files/etc/device_info new file mode 100644 index 0000000000..4045e9e027 --- /dev/null +++ b/package/base-files/files/etc/device_info @@ -0,0 +1,4 @@ +DEVICE_MANUFACTURER='%M' +DEVICE_MANUFACTURER_URL='%m' +DEVICE_PRODUCT='%P' +DEVICE_REVISION='%h' diff --git a/package/base-files/files/etc/diag.sh b/package/base-files/files/etc/diag.sh new file mode 100644 index 0000000000..37a8ec758e --- /dev/null +++ b/package/base-files/files/etc/diag.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# Copyright (C) 2006-2019 OpenWrt.org + +. /lib/functions/leds.sh + +boot="$(get_dt_led boot)" +failsafe="$(get_dt_led failsafe)" +running="$(get_dt_led running)" +upgrade="$(get_dt_led upgrade)" + +set_led_state() { + status_led="$boot" + + case "$1" in + preinit) + status_led_blink_preinit + ;; + failsafe) + status_led_off + [ -n "$running" ] && { + status_led="$running" + status_led_off + } + status_led="$failsafe" + status_led_blink_failsafe + ;; + preinit_regular) + status_led_blink_preinit_regular + ;; + upgrade) + [ -n "$running" ] && { + status_led="$running" + status_led_off + } + status_led="$upgrade" + status_led_blink_preinit_regular + ;; + done) + status_led_off + [ "$status_led" != "$running" ] && \ + status_led_restore_trigger "boot" + [ -n "$running" ] && { + status_led="$running" + status_led_on + } + ;; + esac +} + +set_state() { + [ -n "$boot" -o -n "$failsafe" -o -n "$running" -o -n "$upgrade" ] && set_led_state "$1" +} diff --git a/package/base-files/files/etc/ethers b/package/base-files/files/etc/ethers new file mode 100644 index 0000000000..2b05eb5424 --- /dev/null +++ b/package/base-files/files/etc/ethers @@ -0,0 +1,6 @@ +# +# Lookup man 5 ethers for syntax documentation +# +# Examples : +# 02:00:11:22:33:44 libreCMC.lan +# 02:00:11:22:33:44 192.168.10.1 diff --git a/package/base-files/files/etc/fstab b/package/base-files/files/etc/fstab new file mode 100644 index 0000000000..6e9b7baf53 --- /dev/null +++ b/package/base-files/files/etc/fstab @@ -0,0 +1 @@ +# diff --git a/package/base-files/files/etc/group b/package/base-files/files/etc/group new file mode 100644 index 0000000000..5b06dc6db9 --- /dev/null +++ b/package/base-files/files/etc/group @@ -0,0 +1,11 @@ +root:x:0: +daemon:x:1: +adm:x:4: +mail:x:8: +dialout:x:20: +audio:x:29: +www-data:x:33: +ftp:x:55: +users:x:100: +network:x:101: +nogroup:x:65534: diff --git a/package/base-files/files/etc/hosts b/package/base-files/files/etc/hosts new file mode 100644 index 0000000000..b7713ebcc6 --- /dev/null +++ b/package/base-files/files/etc/hosts @@ -0,0 +1,5 @@ +127.0.0.1 localhost + +::1 localhost ip6-localhost ip6-loopback +ff02::1 ip6-allnodes +ff02::2 ip6-allrouters diff --git a/package/base-files/files/etc/hotplug.d/net/00-sysctl b/package/base-files/files/etc/hotplug.d/net/00-sysctl new file mode 100644 index 0000000000..8abe7f8bbd --- /dev/null +++ b/package/base-files/files/etc/hotplug.d/net/00-sysctl @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$ACTION" = add ]; then + for CONF in /etc/sysctl.d/*.conf /etc/sysctl.conf; do + [ ! -f "$CONF" ] && continue; + sed -ne "/^[[:space:]]*net\..*\.$DEVICENAME\./p" "$CONF" | \ + sysctl -e -p - | logger -t sysctl + done +fi diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot new file mode 100755 index 0000000000..749d9e9711 --- /dev/null +++ b/package/base-files/files/etc/init.d/boot @@ -0,0 +1,55 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006-2011 OpenWrt.org + +START=10 +STOP=90 + +uci_apply_defaults() { + . /lib/functions/system.sh + + cd /etc/uci-defaults || return 0 + files="$(ls)" + [ -z "$files" ] && return 0 + mkdir -p /tmp/.uci + for file in $files; do + ( . "./$(basename $file)" ) && rm -f "$file" + done + uci commit +} + +boot() { + [ -f /proc/mounts ] || /sbin/mount_root + [ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc + + mkdir -p /var/lock + chmod 1777 /var/lock + mkdir -p /var/log + mkdir -p /var/run + mkdir -p /var/state + mkdir -p /var/tmp + mkdir -p /tmp/.uci + chmod 0700 /tmp/.uci + touch /var/log/wtmp + touch /var/log/lastlog + mkdir -p /tmp/resolv.conf.d + touch /tmp/resolv.conf.d/resolv.conf.auto + ln -sf /tmp/resolv.conf.d/resolv.conf.auto /tmp/resolv.conf + grep -q debugfs /proc/filesystems && /bin/mount -o noatime -t debugfs debugfs /sys/kernel/debug + grep -q bpf /proc/filesystems && /bin/mount -o nosuid,nodev,noexec,noatime,mode=0700 -t bpf bpffs /sys/fs/bpf + grep -q pstore /proc/filesystems && /bin/mount -o noatime -t pstore pstore /sys/fs/pstore + [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe + + /sbin/kmodloader + + [ ! -f /etc/config/wireless ] && { + # compat for bcm47xx and mvebu + sleep 1 + } + + /bin/config_generate + uci_apply_defaults + sync + + # temporary hack until configd exists + /sbin/reload_config +} diff --git a/package/base-files/files/etc/init.d/done b/package/base-files/files/etc/init.d/done new file mode 100755 index 0000000000..32d6118df7 --- /dev/null +++ b/package/base-files/files/etc/init.d/done @@ -0,0 +1,17 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +START=95 +boot() { + mount_root done + rm -f /sysupgrade.tgz && sync + + # process user commands + [ -f /etc/rc.local ] && { + sh /etc/rc.local + } + + # set leds to normal state + . /etc/diag.sh + set_state done +} diff --git a/package/base-files/files/etc/init.d/gpio_switch b/package/base-files/files/etc/init.d/gpio_switch new file mode 100755 index 0000000000..24d790b065 --- /dev/null +++ b/package/base-files/files/etc/init.d/gpio_switch @@ -0,0 +1,66 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2015 OpenWrt.org + +START=94 +STOP=10 +USE_PROCD=1 + + +load_gpio_switch() +{ + local name + local gpio_pin + local value + + config_get gpio_pin "$1" gpio_pin + config_get name "$1" name + config_get value "$1" value 0 + + [ -z "$gpio_pin" ] && { + echo >&2 "Skipping gpio_switch '$name' due to missing gpio_pin" + return 1 + } + + local gpio_path + if [ -n "$(echo "$gpio_pin" | grep -E "^[0-9]+$")" ]; then + gpio_path="/sys/class/gpio/gpio${gpio_pin}" + + # export GPIO pin for access + [ -d "$gpio_path" ] || { + echo "$gpio_pin" >/sys/class/gpio/export + # we need to wait a bit until the GPIO appears + [ -d "$gpio_path" ] || sleep 1 + } + + # direction attribute only exists if the kernel supports changing the + # direction of a GPIO + if [ -e "${gpio_path}/direction" ]; then + # set the pin to output with high or low pin value + { [ "$value" = "0" ] && echo "low" || echo "high"; } \ + >"$gpio_path/direction" + else + { [ "$value" = "0" ] && echo "0" || echo "1"; } \ + >"$gpio_path/value" + fi + else + gpio_path="/sys/class/gpio/${gpio_pin}" + + [ -d "$gpio_path" ] && { + { [ "$value" = "0" ] && echo "0" || echo "1"; } \ + >"$gpio_path/value" + } + fi +} + +service_triggers() +{ + procd_add_reload_trigger "system" +} + +start_service() +{ + [ -e /sys/class/gpio/ ] && { + config_load system + config_foreach load_gpio_switch gpio_switch + } +} diff --git a/package/base-files/files/etc/init.d/led b/package/base-files/files/etc/init.d/led new file mode 100755 index 0000000000..51cb8b5178 --- /dev/null +++ b/package/base-files/files/etc/init.d/led @@ -0,0 +1,141 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008 OpenWrt.org + +START=96 + +load_led() { + local name + local sysfs + local trigger + local dev + local ports + local mode + local default + local delayon + local delayoff + local interval + + config_get sysfs $1 sysfs + config_get name $1 name "$sysfs" + config_get trigger $1 trigger "none" + config_get dev $1 dev + config_get ports $1 port + config_get mode $1 mode + config_get_bool default $1 default "0" + config_get delayon $1 delayon + config_get delayoff $1 delayoff + config_get interval $1 interval "50" + config_get port_state $1 port_state + config_get delay $1 delay "150" + config_get message $1 message "" + config_get gpio $1 gpio "0" + config_get inverted $1 inverted "0" + + # execute application led trigger + [ -f "/usr/libexec/led-trigger/${trigger}" ] && { + . "/usr/libexec/led-trigger/${trigger}" + return 0 + } + + [ "$trigger" = "usbdev" ] && { + # Backward compatibility: translate to the new trigger + trigger="usbport" + # Translate port of root hub, e.g. 4-1 -> usb4-port1 + ports=$(echo "$dev" | sed -n 's/^\([0-9]*\)-\([0-9]*\)$/usb\1-port\2/p') + # Translate port of extra hub, e.g. 2-2.4 -> 2-2-port4 + [ -z "$ports" ] && ports=$(echo "$dev" | sed -n 's/\./-port/p') + } + + [ -e /sys/class/leds/${sysfs}/brightness ] && { + echo "setting up led ${name}" + + printf "%s %s %d\n" \ + "$sysfs" \ + "$(sed -ne 's/^.*\[\(.*\)\].*$/\1/p' /sys/class/leds/${sysfs}/trigger)" \ + "$(cat /sys/class/leds/${sysfs}/brightness)" \ + >> /var/run/led.state + + [ "$default" = 0 ] && + echo 0 >/sys/class/leds/${sysfs}/brightness + + echo $trigger > /sys/class/leds/${sysfs}/trigger 2> /dev/null + ret="$?" + + [ $default = 1 ] && + cat /sys/class/leds/${sysfs}/max_brightness > /sys/class/leds/${sysfs}/brightness + + [ $ret = 0 ] || { + echo >&2 "Skipping trigger '$trigger' for led '$name' due to missing kernel module" + return 1 + } + case "$trigger" in + "netdev") + [ -n "$dev" ] && { + echo $dev > /sys/class/leds/${sysfs}/device_name + for m in $mode; do + [ -e "/sys/class/leds/${sysfs}/$m" ] && \ + echo 1 > /sys/class/leds/${sysfs}/$m + done + echo $interval > /sys/class/leds/${sysfs}/interval + } + ;; + + "timer"|"oneshot") + [ -n "$delayon" ] && \ + echo $delayon > /sys/class/leds/${sysfs}/delay_on + [ -n "$delayoff" ] && \ + echo $delayoff > /sys/class/leds/${sysfs}/delay_off + ;; + + "usbport") + local p + + for p in $ports; do + echo 1 > /sys/class/leds/${sysfs}/ports/$p + done + ;; + + "port_state") + [ -n "$port_state" ] && \ + echo $port_state > /sys/class/leds/${sysfs}/port_state + ;; + + "gpio") + echo $gpio > /sys/class/leds/${sysfs}/gpio + echo $inverted > /sys/class/leds/${sysfs}/inverted + ;; + + switch[0-9]*) + local port_mask speed_mask + + config_get port_mask $1 port_mask + [ -n "$port_mask" ] && \ + echo $port_mask > /sys/class/leds/${sysfs}/port_mask + config_get speed_mask $1 speed_mask + [ -n "$speed_mask" ] && \ + echo $speed_mask > /sys/class/leds/${sysfs}/speed_mask + [ -n "$mode" ] && \ + echo "$mode" > /sys/class/leds/${sysfs}/mode + ;; + esac + } +} + +start() { + [ -e /sys/class/leds/ ] && { + [ -s /var/run/led.state ] && { + local led trigger brightness + while read led trigger brightness; do + [ -e "/sys/class/leds/$led/trigger" ] && \ + echo "$trigger" > "/sys/class/leds/$led/trigger" + + [ -e "/sys/class/leds/$led/brightness" ] && \ + echo "$brightness" > "/sys/class/leds/$led/brightness" + done < /var/run/led.state + rm /var/run/led.state + } + + config_load system + config_foreach load_led led + } +} diff --git a/package/base-files/files/etc/init.d/sysctl b/package/base-files/files/etc/init.d/sysctl new file mode 100755 index 0000000000..4db56444c7 --- /dev/null +++ b/package/base-files/files/etc/init.d/sysctl @@ -0,0 +1,44 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +START=11 + +apply_defaults() { + local mem="$(awk '/^MemTotal:/ {print $2}' /proc/meminfo)" + local min_free frag_low_thresh frag_high_thresh + + if [ "$mem" -gt 65536 ]; then # 128M + min_free=16384 + elif [ "$mem" -gt 32768 ]; then # 64M + min_free=8192 + else + min_free=1024 + frag_low_thresh=393216 + frag_high_thresh=524288 + fi + + sysctl -qw vm.min_free_kbytes="$min_free" + + [ "$frag_low_thresh" ] && sysctl -qw \ + net.ipv4.ipfrag_low_thresh="$frag_low_thresh" \ + net.ipv4.ipfrag_high_thresh="$frag_high_thresh" \ + net.ipv6.ip6frag_low_thresh="$frag_low_thresh" \ + net.ipv6.ip6frag_high_thresh="$frag_high_thresh" \ + net.netfilter.nf_conntrack_frag6_low_thresh="$frag_low_thresh" \ + net.netfilter.nf_conntrack_frag6_high_thresh="$frag_high_thresh" + + # first set default, then all interfaces to avoid races with appearing interfaces + if [ -d /proc/sys/net/ipv6/conf ]; then + echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra + for iface in /proc/sys/net/ipv6/conf/*/accept_ra; do + echo 0 > "$iface" + done + fi +} + +start() { + apply_defaults + for CONF in /etc/sysctl.d/*.conf /etc/sysctl.conf; do + [ -f "$CONF" ] && sysctl -e -p "$CONF" >&- + done +} diff --git a/package/base-files/files/etc/init.d/sysfixtime b/package/base-files/files/etc/init.d/sysfixtime new file mode 100755 index 0000000000..aab5b153d0 --- /dev/null +++ b/package/base-files/files/etc/init.d/sysfixtime @@ -0,0 +1,34 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2013-2014 OpenWrt.org + +START=00 +STOP=90 + +RTC_DEV=/dev/rtc0 +HWCLOCK=/sbin/hwclock + +boot() { + start && exit 0 + + local maxtime="$(maxtime)" + local curtime="$(date +%s)" + [ $curtime -lt $maxtime ] && date -s @$maxtime +} + +start() { + [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -u -f $RTC_DEV +} + +stop() { + [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -w -u -f $RTC_DEV && \ + logger -t sysfixtime "saved '$(date)' to $RTC_DEV" +} + +maxtime() { + local file newest + + for file in $( find /etc -type f ) ; do + [ -z "$newest" -o "$newest" -ot "$file" ] && newest=$file + done + [ "$newest" ] && date -r "$newest" +%s +} diff --git a/package/base-files/files/etc/init.d/system b/package/base-files/files/etc/init.d/system new file mode 100755 index 0000000000..7519ceb5d9 --- /dev/null +++ b/package/base-files/files/etc/init.d/system @@ -0,0 +1,45 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2014 OpenWrt.org + +START=10 +USE_PROCD=1 + +validate_system_section() { + uci_load_validate system system "$1" "$2" \ + 'hostname:string:libreCMC' \ + 'conloglevel:uinteger' \ + 'buffersize:uinteger' \ + 'timezone:string:UTC' \ + 'zonename:string' +} + +system_config() { + [ "$2" = 0 ] || { + echo "validation failed" + return 1 + } + + echo "$hostname" > /proc/sys/kernel/hostname + [ -z "$conloglevel" -a -z "$buffersize" ] || dmesg ${conloglevel:+-n $conloglevel} ${buffersize:+-s $buffersize} + echo "$timezone" > /tmp/TZ + [ -n "$zonename" ] && [ -f "/usr/share/zoneinfo/${zonename// /_}" ] \ + && ln -sf "/usr/share/zoneinfo/${zonename// /_}" /tmp/localtime \ + && rm -f /tmp/TZ + + # apply timezone to kernel + hwclock -u --systz +} + +reload_service() { + config_load system + config_foreach validate_system_section system system_config +} + +service_triggers() { + procd_add_reload_trigger "system" + procd_add_validation validate_system_section +} + +start_service() { + reload_service +} diff --git a/package/base-files/files/etc/init.d/umount b/package/base-files/files/etc/init.d/umount new file mode 100755 index 0000000000..b764ae1582 --- /dev/null +++ b/package/base-files/files/etc/init.d/umount @@ -0,0 +1,13 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +STOP=90 + +restart() { + : +} + +stop() { + sync + /bin/umount -a -d -r +} diff --git a/package/base-files/files/etc/inittab b/package/base-files/files/etc/inittab new file mode 100644 index 0000000000..9820e7144b --- /dev/null +++ b/package/base-files/files/etc/inittab @@ -0,0 +1,3 @@ +::sysinit:/etc/init.d/rcS S boot +::shutdown:/etc/init.d/rcS K shutdown +::askconsole:/usr/libexec/login.sh diff --git a/package/base-files/files/etc/iproute2/ematch_map b/package/base-files/files/etc/iproute2/ematch_map new file mode 100644 index 0000000000..4d6bb2f039 --- /dev/null +++ b/package/base-files/files/etc/iproute2/ematch_map @@ -0,0 +1,8 @@ +# lookup table for ematch kinds +1 cmp +2 nbyte +3 u32 +4 meta +7 canid +8 ipset +9 ipt diff --git a/package/base-files/files/etc/iproute2/rt_protos b/package/base-files/files/etc/iproute2/rt_protos new file mode 100644 index 0000000000..5b61798aec --- /dev/null +++ b/package/base-files/files/etc/iproute2/rt_protos @@ -0,0 +1,18 @@ +# +# Reserved protocols. +# +0 unspec +1 redirect +2 kernel +3 boot +4 static +8 gated +9 ra +10 mrt +11 zebra +12 bird +13 dnrouted +14 xorp +15 ntk +16 dhcp +42 babel diff --git a/package/base-files/files/etc/iproute2/rt_tables b/package/base-files/files/etc/iproute2/rt_tables new file mode 100644 index 0000000000..5fc09b3c0c --- /dev/null +++ b/package/base-files/files/etc/iproute2/rt_tables @@ -0,0 +1,12 @@ +# +# reserved values +# +128 prelocal +255 local +254 main +253 default +0 unspec +# +# local +# +#1 inr.ruhep diff --git a/package/base-files/files/etc/openwrt_release b/package/base-files/files/etc/openwrt_release new file mode 100644 index 0000000000..d03400ca05 --- /dev/null +++ b/package/base-files/files/etc/openwrt_release @@ -0,0 +1,7 @@ +DISTRIB_ID='%D' +DISTRIB_RELEASE='%V' +DISTRIB_REVISION='%R' +DISTRIB_TARGET='%S' +DISTRIB_ARCH='%A' +DISTRIB_DESCRIPTION='%D %V %C' +DISTRIB_TAINTS='%t' diff --git a/package/base-files/files/etc/openwrt_version b/package/base-files/files/etc/openwrt_version new file mode 100644 index 0000000000..48157ed97f --- /dev/null +++ b/package/base-files/files/etc/openwrt_version @@ -0,0 +1 @@ +%C diff --git a/package/base-files/files/etc/os-release b/package/base-files/files/etc/os-release new file mode 120000 index 0000000000..c4c75b419c --- /dev/null +++ b/package/base-files/files/etc/os-release @@ -0,0 +1 @@ +../usr/lib/os-release \ No newline at end of file diff --git a/package/base-files/files/etc/passwd b/package/base-files/files/etc/passwd new file mode 100644 index 0000000000..1d06a80361 --- /dev/null +++ b/package/base-files/files/etc/passwd @@ -0,0 +1,5 @@ +root:x:0:0:root:/root:/bin/ash +daemon:*:1:1:daemon:/var:/bin/false +ftp:*:55:55:ftp:/home/ftp:/bin/false +network:*:101:101:network:/var:/bin/false +nobody:*:65534:65534:nobody:/var:/bin/false diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit new file mode 100755 index 0000000000..829574f5f1 --- /dev/null +++ b/package/base-files/files/etc/preinit @@ -0,0 +1,29 @@ +#!/bin/sh +# Copyright (C) 2006-2016 OpenWrt.org +# Copyright (C) 2010 Vertical Communications + +[ -z "$PREINIT" ] && exec /sbin/init + +export PATH="%PATH%" + +. /lib/functions.sh +. /lib/functions/preinit.sh +. /lib/functions/system.sh + +boot_hook_init preinit_essential +boot_hook_init preinit_main +boot_hook_init failsafe +boot_hook_init initramfs +boot_hook_init preinit_mount_root + +for pi_source_file in /lib/preinit/*; do + . $pi_source_file +done + +boot_run_hook preinit_essential + +pi_mount_skip_next=false +pi_jffs2_mount_success=false +pi_failsafe_net_message=false + +boot_run_hook preinit_main diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile new file mode 100644 index 0000000000..76b149b9fa --- /dev/null +++ b/package/base-files/files/etc/profile @@ -0,0 +1,40 @@ +[ -e /tmp/.failsafe ] && export FAILSAFE=1 + +[ -f /etc/banner ] && cat /etc/banner +[ -n "$FAILSAFE" ] && cat /etc/banner.failsafe + +grep -Fsq '/ overlay ro,' /proc/mounts && { + echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.' + echo 'Please try to remove files from /overlay/upper/... and reboot!' +} + +export PATH="%PATH%" +export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) +export HOME=${HOME:-/root} +export PS1='\u@\h:\w\$ ' +export ENV=/etc/shinit + +case "$TERM" in + xterm*|rxvt*) + export PS1='\[\e]0;\u@\h: \w\a\]'$PS1 + ;; +esac + +[ -n "$FAILSAFE" ] || { + for FILE in /etc/profile.d/*.sh; do + [ -e "$FILE" ] && . "$FILE" + done + unset FILE +} + +if ( grep -qs '^root::' /etc/shadow && \ + [ -z "$FAILSAFE" ] ) +then +cat << EOF +=== WARNING! ===================================== +There is no root password defined on this device! +Use the "passwd" command to set up a new password +in order to prevent unauthorized SSH logins. +-------------------------------------------------- +EOF +fi diff --git a/package/base-files/files/etc/protocols b/package/base-files/files/etc/protocols new file mode 100644 index 0000000000..26bc775ed6 --- /dev/null +++ b/package/base-files/files/etc/protocols @@ -0,0 +1,57 @@ +# Internet (IP) protocols +# +# Updated from http://www.iana.org/assignments/protocol-numbers and other +# sources. +# New protocols will be added on request if they have been officially +# assigned by IANA and are not historical. +# If you need a huge list of used numbers please install the nmap package. + +ip 0 IP # internet protocol, pseudo protocol number +#hopopt 0 HOPOPT # IPv6 Hop-by-Hop Option [RFC1883] +icmp 1 ICMP # internet control message protocol +igmp 2 IGMP # Internet Group Management +ggp 3 GGP # gateway-gateway protocol +ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'') +st 5 ST # ST datagram mode +tcp 6 TCP # transmission control protocol +egp 8 EGP # exterior gateway protocol +igp 9 IGP # any private interior gateway (Cisco) +pup 12 PUP # PARC universal packet protocol +udp 17 UDP # user datagram protocol +hmp 20 HMP # host monitoring protocol +xns-idp 22 XNS-IDP # Xerox NS IDP +rdp 27 RDP # "reliable datagram" protocol +iso-tp4 29 ISO-TP4 # ISO Transport Protocol class 4 [RFC905] +dccp 33 DCCP # Datagram Congestion Control Protocol [RFC4340] +xtp 36 XTP # Xpress Transfer Protocol +ddp 37 DDP # Datagram Delivery Protocol +idpr-cmtp 38 IDPR-CMTP # IDPR Control Message Transport +ipv6 41 IPv6 # Internet Protocol, version 6 +ipv6-route 43 IPv6-Route # Routing Header for IPv6 +ipv6-frag 44 IPv6-Frag # Fragment Header for IPv6 +idrp 45 IDRP # Inter-Domain Routing Protocol +rsvp 46 RSVP # Reservation Protocol +gre 47 GRE # General Routing Encapsulation +esp 50 IPSEC-ESP # Encap Security Payload [RFC2046] +ah 51 IPSEC-AH # Authentication Header [RFC2402] +skip 57 SKIP # SKIP +ipv6-icmp 58 IPv6-ICMP # ICMP for IPv6 +ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6 +ipv6-opts 60 IPv6-Opts # Destination Options for IPv6 +rspf 73 RSPF CPHB # Radio Shortest Path First (officially CPHB) +vmtp 81 VMTP # Versatile Message Transport +eigrp 88 EIGRP # Enhanced Interior Routing Protocol (Cisco) +ospf 89 OSPFIGP # Open Shortest Path First IGP +ax.25 93 AX.25 # AX.25 frames +ipip 94 IPIP # IP-within-IP Encapsulation Protocol +etherip 97 ETHERIP # Ethernet-within-IP Encapsulation [RFC3378] +encap 98 ENCAP # Yet Another IP encapsulation [RFC1241] +# 99 # any private encryption scheme +pim 103 PIM # Protocol Independent Multicast +ipcomp 108 IPCOMP # IP Payload Compression Protocol +vrrp 112 VRRP # Virtual Router Redundancy Protocol +l2tp 115 L2TP # Layer Two Tunneling Protocol [RFC2661] +isis 124 ISIS # IS-IS over IPv4 +sctp 132 SCTP # Stream Control Transmission Protocol +fc 133 FC # Fibre Channel + diff --git a/package/base-files/files/etc/rc.button/failsafe b/package/base-files/files/etc/rc.button/failsafe new file mode 100755 index 0000000000..ba958fa885 --- /dev/null +++ b/package/base-files/files/etc/rc.button/failsafe @@ -0,0 +1,5 @@ +#!/bin/sh + +[ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button + +return 0 diff --git a/package/base-files/files/etc/rc.button/power b/package/base-files/files/etc/rc.button/power new file mode 100755 index 0000000000..c245744172 --- /dev/null +++ b/package/base-files/files/etc/rc.button/power @@ -0,0 +1,7 @@ +#!/bin/sh + +[ "${ACTION}" = "released" ] || exit 0 + +exec /sbin/poweroff + +return 0 diff --git a/package/base-files/files/etc/rc.button/reboot b/package/base-files/files/etc/rc.button/reboot new file mode 100755 index 0000000000..cd547e3329 --- /dev/null +++ b/package/base-files/files/etc/rc.button/reboot @@ -0,0 +1,12 @@ +#!/bin/sh + +[ "${ACTION}" = "released" ] || exit 0 + +if [ "$SEEN" -ge 5 ] +then + echo "REBOOT" > /dev/console + sync + reboot +fi + +return 0 diff --git a/package/base-files/files/etc/rc.button/reset b/package/base-files/files/etc/rc.button/reset new file mode 100755 index 0000000000..2403122ad2 --- /dev/null +++ b/package/base-files/files/etc/rc.button/reset @@ -0,0 +1,31 @@ +#!/bin/sh + +. /lib/functions.sh + +OVERLAY="$( grep ' /overlay ' /proc/mounts )" + +case "$ACTION" in +pressed) + [ -z "$OVERLAY" ] && return 0 + + return 5 +;; +timeout) + . /etc/diag.sh + set_state failsafe +;; +released) + if [ "$SEEN" -lt 1 ] + then + echo "REBOOT" > /dev/console + sync + reboot + elif [ "$SEEN" -ge 5 -a -n "$OVERLAY" ] + then + echo "FACTORY RESET" > /dev/console + jffs2reset -y && reboot & + fi +;; +esac + +return 0 diff --git a/package/base-files/files/etc/rc.button/rfkill b/package/base-files/files/etc/rc.button/rfkill new file mode 100755 index 0000000000..fbdda40ed5 --- /dev/null +++ b/package/base-files/files/etc/rc.button/rfkill @@ -0,0 +1,32 @@ +#!/bin/sh + +[ "${ACTION}" = "released" -o -n "${TYPE}" ] || exit 0 + +. /lib/functions.sh + +rfkill_state=0 + +wifi_rfkill_set() { + uci set wireless.$1.disabled=$rfkill_state +} + +wifi_rfkill_check() { + local disabled + config_get disabled $1 disabled + [ "$disabled" = "1" ] || rfkill_state=1 +} + +config_load wireless +case "${TYPE}" in +"switch") + [ "${ACTION}" = "released" ] && rfkill_state=1 + ;; +*) + config_foreach wifi_rfkill_check wifi-device + ;; +esac +config_foreach wifi_rfkill_set wifi-device +uci commit wireless +wifi up + +return 0 diff --git a/package/base-files/files/etc/rc.common b/package/base-files/files/etc/rc.common new file mode 100755 index 0000000000..d747303844 --- /dev/null +++ b/package/base-files/files/etc/rc.common @@ -0,0 +1,194 @@ +#!/bin/sh +# Copyright (C) 2006-2012 OpenWrt.org + +. $IPKG_INSTROOT/lib/functions.sh +. $IPKG_INSTROOT/lib/functions/service.sh + +initscript=$1 +action=${2:-help} +shift 2 + +start() { + return 0 +} + +stop() { + return 0 +} + +reload() { + restart +} + +restart() { + trap '' TERM + stop "$@" + trap - TERM + start "$@" +} + +boot() { + start "$@" +} + +shutdown() { + stop +} + +disable() { + name="$(basename "${initscript}")" + rm -f "$IPKG_INSTROOT"/etc/rc.d/S??$name + rm -f "$IPKG_INSTROOT"/etc/rc.d/K??$name +} + +enable() { + err=1 + name="$(basename "${initscript}")" + [ "$START" ] && \ + ln -sf "../init.d/$name" "$IPKG_INSTROOT/etc/rc.d/S${START}${name##S[0-9][0-9]}" && \ + err=0 + [ "$STOP" ] && \ + ln -sf "../init.d/$name" "$IPKG_INSTROOT/etc/rc.d/K${STOP}${name##K[0-9][0-9]}" && \ + err=0 + return $err +} + +enabled() { + name="$(basename "${initscript}")" + name="${name##[SK][0-9][0-9]}" + { + [ -z "${START:-}" ] || [ -L "$IPKG_INSTROOT/etc/rc.d/S${START}$name" ] + } && { + [ -z "${STOP:-}" ] || [ -L "$IPKG_INSTROOT/etc/rc.d/K${STOP}$name" ] + } +} + +depends() { + return 0 +} + +ALL_HELP="" +ALL_COMMANDS="boot shutdown depends" +extra_command() { + local cmd="$1" + local help="$2" + + local extra="$(printf "%-16s%s" "${cmd}" "${help}")" + ALL_HELP="${ALL_HELP}\t${extra}\n" + ALL_COMMANDS="${ALL_COMMANDS} ${cmd}" +} + +help() { + cat </dev/null >/dev/null; then + service_started + fi + } + + trace() { + TRACE_SYSCALLS=1 + start "$@" + } + + info() { + json_init + json_add_string name "$(basename ${basescript:-$initscript})" + json_add_boolean verbose "1" + _procd_ubus_call list + } + + stop() { + procd_lock + stop_service "$@" + procd_kill "$(basename ${basescript:-$initscript})" "$1" + if eval "type service_stopped" 2>/dev/null >/dev/null; then + service_stopped + fi + } + + reload() { + if eval "type reload_service" 2>/dev/null >/dev/null; then + procd_lock + reload_service "$@" + else + start + fi + } + + running() { + service_running "$@" + } + + status() { + if eval "type status_service" 2>/dev/null >/dev/null; then + status_service "$@" + else + _procd_status "$(basename ${basescript:-$initscript})" "$1" + fi + } +} + +ALL_COMMANDS="${ALL_COMMANDS} ${EXTRA_COMMANDS}" +ALL_HELP="${ALL_HELP}${EXTRA_HELP}" +list_contains ALL_COMMANDS "$action" || action=help +$action "$@" diff --git a/package/base-files/files/etc/rc.local b/package/base-files/files/etc/rc.local new file mode 100644 index 0000000000..56394773c3 --- /dev/null +++ b/package/base-files/files/etc/rc.local @@ -0,0 +1,4 @@ +# Put your custom commands here that should be executed once +# the system init finished. By default this file does nothing. + +exit 0 diff --git a/package/base-files/files/etc/services b/package/base-files/files/etc/services new file mode 100644 index 0000000000..968f9e78be --- /dev/null +++ b/package/base-files/files/etc/services @@ -0,0 +1,173 @@ +echo 7/tcp +echo 7/udp +discard 9/tcp +discard 9/udp +daytime 13/tcp +daytime 13/udp +netstat 15/tcp +chargen 19/tcp +chargen 19/udp +ftp-data 20/tcp +ftp 21/tcp +ssh 22/tcp +ssh 22/udp +telnet 23/tcp +smtp 25/tcp +time 37/tcp +time 37/udp +whois 43/tcp +domain 53/tcp +domain 53/udp +bootps 67/tcp +bootps 67/udp +bootpc 68/tcp +bootpc 68/udp +tftp 69/udp +finger 79/tcp +www 80/tcp http +kerberos 88/tcp kerberos5 krb5 kerberos-sec +kerberos 88/udp kerberos5 krb5 kerberos-sec +pop3 110/tcp +pop3 110/udp +sunrpc 111/tcp rpcbind +sunrpc 111/udp rpcbind +auth 113/tcp ident +sftp 115/tcp +nntp 119/tcp +ntp 123/tcp +ntp 123/udp +netbios-ns 137/tcp +netbios-ns 137/udp +netbios-dgm 138/tcp +netbios-dgm 138/udp +netbios-ssn 139/tcp +netbios-ssn 139/udp +imap2 143/tcp imap +imap2 143/udp imap +snmp 161/tcp +snmp 161/udp +snmp-trap 162/tcp snmptrap +snmp-trap 162/udp snmptrap +xdmcp 177/tcp +xdmcp 177/udp +bgp 179/tcp +bgp 179/udp +imap3 220/tcp +imap3 220/udp +ldap 389/tcp +ldap 389/udp +https 443/tcp +https 443/udp +microsoft-ds 445/tcp +microsoft-ds 445/udp +isakmp 500/tcp +isakmp 500/udp +rtsp 554/tcp +rtsp 554/udp +ipp 631/tcp +ipp 631/udp +syslog 514/udp +printer 515/tcp spooler +dhcpv6-client 546/tcp +dhcpv6-client 546/udp +dhcpv6-server 547/tcp +dhcpv6-server 547/udp +afpovertcp 548/tcp +afpovertcp 548/udp +nntps 563/tcp snntp +nntps 563/udp snntp +submission 587/tcp +submission 587/udp +ldaps 636/tcp +ldaps 636/udp +tinc 655/tcp +tinc 655/udp +rsync 873/tcp +rsync 873/udp +ftps-data 989/tcp +ftps 990/tcp +imaps 993/tcp +imaps 993/udp +ircs 994/tcp +ircs 994/udp +pop3s 995/tcp +pop3s 995/udp +socks 1080/tcp +socks 1080/udp +openvpn 1194/tcp +openvpn 1194/udp +l2f 1701/tcp l2tp +l2f 1701/udp l2tp +radius 1812/tcp +radius 1812/udp +radius-acct 1813/tcp radacct +radius-acct 1813/udp radacct +nfs 2049/tcp +nfs 2049/udp +dict 2628/tcp +dict 2628/udp +gpsd 2947/tcp +gpsd 2947/udp +icpv2 3130/tcp icp +icpv2 3130/udp icp +mysql 3306/tcp +mysql 3306/udp +nut 3493/tcp +nut 3493/udp +distcc 3632/tcp +distcc 3632/udp +daap 3689/tcp +daap 3689/udp +svn 3690/tcp subversion +svn 3690/udp subversion +epmd 4369/tcp +epmd 4369/udp +iax 4569/tcp +iax 4569/udp +mtn 4691/tcp +mtn 4691/udp +munin 4949/tcp +sip 5060/tcp +sip 5060/udp +sip-tls 5061/tcp +sip-tls 5061/udp +xmpp-client 5222/tcp jabber-client +xmpp-client 5222/udp jabber-client +xmpp-server 5269/tcp jabber-server +xmpp-server 5269/udp jabber-server +mdns 5353/tcp +mdns 5353/udp +postgresql 5432/tcp postgres +postgresql 5432/udp postgres +x11 6000/tcp +x11 6000/udp +mysql-proxy 6446/tcp +mysql-proxy 6446/udp +bacula-dir 9101/tcp +bacula-dir 9101/udp +bacula-fd 9102/tcp +bacula-fd 9102/udp +bacula-sd 9103/tcp +bacula-sd 9103/udp +nbd 10809/tcp +zabbix-agent 10050/tcp +zabbix-agent 10050/udp +zabbix-trapper 10051/tcp +zabbix-trapper 10051/udp +hkp 11371/tcp +hkp 11371/udp +ssmtp 465/tcp smtps +spamd 783/tcp +zebrasrv 2600/tcp +zebra 2601/tcp +ripd 2602/tcp +ripngd 2603/tcp +ospfd 2604/tcp +bgpd 2605/tcp +ospf6d 2606/tcp +ospfapi 2607/tcp +isisd 2608/tcp +sane-port 6566/tcp sane saned +ircd 6667/tcp +git 9418/tcp + diff --git a/package/base-files/files/etc/shadow b/package/base-files/files/etc/shadow new file mode 100644 index 0000000000..39bdb9c90a --- /dev/null +++ b/package/base-files/files/etc/shadow @@ -0,0 +1,5 @@ +root:::0:99999:7::: +daemon:*:0:0:99999:7::: +ftp:*:0:0:99999:7::: +network:*:0:0:99999:7::: +nobody:*:0:0:99999:7::: diff --git a/package/base-files/files/etc/shells b/package/base-files/files/etc/shells new file mode 100644 index 0000000000..006aa38ced --- /dev/null +++ b/package/base-files/files/etc/shells @@ -0,0 +1 @@ +/bin/ash diff --git a/package/base-files/files/etc/shinit b/package/base-files/files/etc/shinit new file mode 100644 index 0000000000..8df9771e65 --- /dev/null +++ b/package/base-files/files/etc/shinit @@ -0,0 +1,12 @@ +[ -x /bin/more ] || [ -x /usr/bin/more ] || alias more=less +[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi + +alias ll='ls -alF --color=auto' + +[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc + +[ -x /usr/bin/arp -o -x /sbin/arp ] || arp() { cat /proc/net/arp; } +[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; } + +[ -n "$KSH_VERSION" -o \! -s "$HOME/.shinit" ] || . "$HOME/.shinit" +[ -z "$KSH_VERSION" -o \! -s "$HOME/.mkshrc" ] || . "$HOME/.mkshrc" diff --git a/package/base-files/files/etc/sysctl.conf b/package/base-files/files/etc/sysctl.conf new file mode 100644 index 0000000000..ae04212f42 --- /dev/null +++ b/package/base-files/files/etc/sysctl.conf @@ -0,0 +1 @@ +# Defaults are configured in /etc/sysctl.d/* and can be customized in this file diff --git a/package/base-files/files/etc/sysctl.d/10-default.conf b/package/base-files/files/etc/sysctl.d/10-default.conf new file mode 100644 index 0000000000..bc8c579695 --- /dev/null +++ b/package/base-files/files/etc/sysctl.d/10-default.conf @@ -0,0 +1,27 @@ +# Do not edit, changes to this file will be lost on upgrades +# /etc/sysctl.conf can be used to customize sysctl settings + +kernel.panic=3 +kernel.core_pattern=/tmp/%e.%t.%p.%s.core +fs.suid_dumpable=2 + +fs.protected_hardlinks=1 +fs.protected_symlinks=1 + +net.core.bpf_jit_enable=1 + +net.ipv4.conf.default.arp_ignore=1 +net.ipv4.conf.all.arp_ignore=1 +net.ipv4.ip_forward=1 +net.ipv4.icmp_echo_ignore_broadcasts=1 +net.ipv4.icmp_ignore_bogus_error_responses=1 +net.ipv4.igmp_max_memberships=100 +net.ipv4.tcp_fin_timeout=30 +net.ipv4.tcp_keepalive_time=120 +net.ipv4.tcp_syncookies=1 +net.ipv4.tcp_timestamps=1 +net.ipv4.tcp_sack=1 +net.ipv4.tcp_dsack=1 + +net.ipv6.conf.default.forwarding=1 +net.ipv6.conf.all.forwarding=1 diff --git a/package/base-files/files/etc/sysupgrade.conf b/package/base-files/files/etc/sysupgrade.conf new file mode 100644 index 0000000000..e06fd5e332 --- /dev/null +++ b/package/base-files/files/etc/sysupgrade.conf @@ -0,0 +1,5 @@ +## This file contains files and directories that should +## be preserved during an upgrade. + +# /etc/example.conf +# /etc/openvpn/ diff --git a/package/base-files/files/etc/uci-defaults/10_migrate-shadow b/package/base-files/files/etc/uci-defaults/10_migrate-shadow new file mode 100644 index 0000000000..481444f35e --- /dev/null +++ b/package/base-files/files/etc/uci-defaults/10_migrate-shadow @@ -0,0 +1,10 @@ +ppwd="$(sed -ne '/^root:/s/^root:\([^:]*\):.*$/\1/p' /etc/passwd)" +spwd="$(sed -ne '/^root:/s/^root:\([^:]*\):.*$/\1/p' /etc/shadow)" + +if [ -n "${ppwd#[\!x]}" ] && [ -z "${spwd#[\!x]}" ]; then + logger -t migrate-shadow "Moving root password hash into shadow database" + sed -i -e "s:^root\:[^\:]*\::root\:x\::" /etc/passwd + sed -i -e "s:^root\:[^\:]*\::root\:$ppwd\::" /etc/shadow +fi + +exit 0 diff --git a/package/base-files/files/etc/uci-defaults/12_network-generate-ula b/package/base-files/files/etc/uci-defaults/12_network-generate-ula new file mode 100644 index 0000000000..19d7ed7f2e --- /dev/null +++ b/package/base-files/files/etc/uci-defaults/12_network-generate-ula @@ -0,0 +1,13 @@ +[ "$(uci -q get network.globals.ula_prefix)" != "auto" ] && exit 0 + +r1=$(dd if=/dev/urandom bs=1 count=1 |hexdump -e '1/1 "%02x"') +r2=$(dd if=/dev/urandom bs=2 count=1 |hexdump -e '2/1 "%02x"') +r3=$(dd if=/dev/urandom bs=2 count=1 |hexdump -e '2/1 "%02x"') + +uci -q batch <<-EOF >/dev/null + set network.globals.ula_prefix=fd$r1:$r2:$r3::/48 + commit network +EOF + +exit 0 + diff --git a/package/base-files/files/etc/uci-defaults/13_fix-group-user b/package/base-files/files/etc/uci-defaults/13_fix-group-user new file mode 100644 index 0000000000..74f501e8f7 --- /dev/null +++ b/package/base-files/files/etc/uci-defaults/13_fix-group-user @@ -0,0 +1,9 @@ +. /lib/functions.sh + +for file in $(grep -sl Require-User /usr/lib/opkg/info/*.control); do + file="${file##*/}" + file="${file%.control}" + add_group_and_user "${file}" +done + +exit 0 diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh new file mode 100644 index 0000000000..4b1b838572 --- /dev/null +++ b/package/base-files/files/lib/functions.sh @@ -0,0 +1,436 @@ +# Copyright (C) 2006-2014 OpenWrt.org +# Copyright (C) 2006 Fokus Fraunhofer +# Copyright (C) 2010 Vertical Communications + + +debug () { + ${DEBUG:-:} "$@" +} + +# newline +N=" +" + +_C=0 +NO_EXPORT=1 +LOAD_STATE=1 +LIST_SEP=" " + +# xor multiple hex values of the same length +xor() { + local val + local ret="0x$1" + local retlen=${#1} + + shift + while [ -n "$1" ]; do + val="0x$1" + ret=$((ret ^ val)) + shift + done + + printf "%0${retlen}x" "$ret" +} + +append() { + local var="$1" + local value="$2" + local sep="${3:- }" + + eval "export ${NO_EXPORT:+-n} -- \"$var=\${$var:+\${$var}\${value:+\$sep}}\$value\"" +} + +list_contains() { + local var="$1" + local str="$2" + local val + + eval "val=\" \${$var} \"" + [ "${val%% $str *}" != "$val" ] +} + +config_load() { + [ -n "$IPKG_INSTROOT" ] && return 0 + uci_load "$@" +} + +reset_cb() { + config_cb() { return 0; } + option_cb() { return 0; } + list_cb() { return 0; } +} +reset_cb + +package() { + return 0 +} + +config () { + local cfgtype="$1" + local name="$2" + + export ${NO_EXPORT:+-n} CONFIG_NUM_SECTIONS=$((CONFIG_NUM_SECTIONS + 1)) + name="${name:-cfg$CONFIG_NUM_SECTIONS}" + append CONFIG_SECTIONS "$name" + export ${NO_EXPORT:+-n} CONFIG_SECTION="$name" + config_set "$CONFIG_SECTION" "TYPE" "${cfgtype}" + [ -n "$NO_CALLBACK" ] || config_cb "$cfgtype" "$name" +} + +option () { + local varname="$1"; shift + local value="$*" + + config_set "$CONFIG_SECTION" "${varname}" "${value}" + [ -n "$NO_CALLBACK" ] || option_cb "$varname" "$*" +} + +list() { + local varname="$1"; shift + local value="$*" + local len + + config_get len "$CONFIG_SECTION" "${varname}_LENGTH" 0 + [ $len = 0 ] && append CONFIG_LIST_STATE "${CONFIG_SECTION}_${varname}" + len=$((len + 1)) + config_set "$CONFIG_SECTION" "${varname}_ITEM$len" "$value" + config_set "$CONFIG_SECTION" "${varname}_LENGTH" "$len" + append "CONFIG_${CONFIG_SECTION}_${varname}" "$value" "$LIST_SEP" + [ -n "$NO_CALLBACK" ] || list_cb "$varname" "$*" +} + +config_unset() { + config_set "$1" "$2" "" +} + +# config_get