Skip to content
Snippets Groups Projects
  1. Mar 09, 2022
  2. Mar 05, 2022
    • Georgi Valkov's avatar
      mkhash: fix build errors on FreeBSD 13.0 · 1324403e
      Georgi Valkov authored
      
      be64enc, be16dec, and be32dec are declared on FreeBSD 13.0, in
      /usr/include/sys/endian.h so we should not declare them.
      
      Fixes the following error during feeds update:
      staging_dir/host/bin/mkhash: No such file or directory
      
      gcc scripts/mkhash.c
      scripts/mkhash.c:111:1: error: redefinition of 'be64enc'
        111 | be64enc(void *buf, uint64_t u)
      
      Signed-off-by: default avatarGeorgi Valkov <gvalkov@abv.bg>
      1324403e
  3. Feb 28, 2022
  4. Feb 26, 2022
  5. Feb 24, 2022
  6. Feb 22, 2022
  7. Feb 19, 2022
    • Eneas U de Queiroz's avatar
      build: scripts/config - update to kconfig-v5.14 · 009293c5
      Eneas U de Queiroz authored
      
      Functional Changes
      ---------- -------
      - make 'imply' not impose any restrictions: allow symbols implied by y
        to become m
      - change "modules" from sub-option to first-level attribute
      
      Bugfixes
      --------
      - nconf: fix core dump when searching in empty menu
      - nconf: stop endless search loops
      - xconfig: fix content of the main widget
      - xconfig: fix support for the split view mode
      
      Other Changes
      ----- -------
      - highlight xconfig 'comment' lines with '***'
      - xconfig: navigate menus on hyperlinks
      - xconfig: drop support for Qt4
      - improve host ncurses detection
      
      Update the 'option modules' usage to just 'modules' in Config.in.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      009293c5
  8. Feb 14, 2022
    • Paul Spooren's avatar
      feeds: use git-src-full to allow Git versioning · 7fae1e56
      Paul Spooren authored
      
      Both $(AUTORELEASE) and $(PKG_SRC_VERSION) (from luci.git) use the Git
      log to determine releases and package timestamps.
      
      Feeds are shallow cloned by default, resulting in an incomplete Git log
      and therefore different local package versions than offered upstream.
      
      This commits sets the default feeds to use `src-git-full` to solve that.
      
      Add fixes from "2b1d92f1: scripts/feeds: silence git warning by selecting
      pull style" to `src-git-full`
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      7fae1e56
    • Paul Spooren's avatar
      build: store source_date_epoch as integer · 2120cad3
      Paul Spooren authored
      
      The value is retreived from a env variable which defaults to be read as
      a string. However the SOURCE_DATE_EPOCH is a unix timestamp aka integer.
      
      Fix this to allow downstream tools to parse the value directly.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      2120cad3
  9. Jan 24, 2022
  10. Jan 17, 2022
    • Ansuel Smith's avatar
      treewide: drop use of which · 88204bfa
      Ansuel Smith authored
      
      Ubuntu started to flag which as deprecated and it
      seems which is not really standard and may vary
      across Distro.
      Drop the use of which and use the standard 'command -v'
      for this simple task.
      Which is still present in the prereq if some package/script
      still use which.
      A utility script called command_all.sh is implemented that
      will just mimic the output of which -a.
      
      Signed-off-by: default avatarAnsuel Smith <ansuelsmth@gmail.com>
      88204bfa
  11. Dec 29, 2021
    • Paul Spooren's avatar
      scripts: dump-target-info print kernel versions · 02de391b
      Paul Spooren authored
      
      This commits adds the ability to print Kernel versions of all
      targets/subtargets. If a testing Kernel is set print that version as
      well.
      
      Example output:
      
          apm821xx/nand 5.10
          apm821xx/sata 5.10
          arc770/generic 5.4
          archs38/generic 5.4
          armvirt/32 5.10
          armvirt/64 5.10
          at91/sam9x 5.10
          at91/sama5 5.10
          ath25/generic 5.4
          ath79/generic 5.4 5.10
          ath79/mikrotik 5.4 5.10
          --- %< ---
      
      This should help to get a quick update on the state of Kernels.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      02de391b
  12. Dec 02, 2021
    • Enrico Mioso's avatar
      base-files: add eMMC sysupgrade support · 57c1f3f9
      Enrico Mioso authored
      
      Adds generic support for sysupgrading on eMMC-based devices.
      
      Provide function emmc_do_upgrade and emmc_copy_config to be used in
      /lib/upgrade/platform.sh instead of redundantly implementing the same
      logic over and over again.
      Similar to generic sysupgrade on NAND, use environment variables
      CI_KERNPART, CI_ROOTPART and newly introduce CI_DATAPART to indicate
      GPT partition names to be used. On devices with more than one MMC
      block device, CI_ROOTDEV can be used to specify the MMC device for
      partition name lookups.
      
      Also allow to select block devices directly using EMMC_KERN_DEV,
      EMMC_ROOT_DEV and EMMC_DATA_DEV, as using GPT partition names is not
      always an option (e.g. when forced to use MBR).
      
      To easily handle writing kernel and rootfs make use of sysupgrade.tar
      format convention which is also already used for generic NAND support.
      
      Signed-off-by: default avatarEnrico Mioso <mrkiko.rs@gmail.com>
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      CC: Li Zhang <li.zhang@gl-inet.com>
      CC: TruongSinh Tran-Nguyen <i@truongsinh.pro>
      57c1f3f9
  13. Nov 28, 2021
  14. Nov 16, 2021
  15. Nov 13, 2021
  16. Oct 31, 2021
  17. Oct 30, 2021
  18. Oct 28, 2021
  19. Oct 23, 2021
  20. Oct 11, 2021
  21. Sep 24, 2021
  22. Sep 23, 2021
  23. Sep 14, 2021
    • Paul Spooren's avatar
      build: store artifacts in JSON · 5ef4608c
      Paul Spooren authored
      
      Multiple profiles create artifacts, these should be stored in the JSON
      file as well, allowing downstream tooling to show those files, too.
      
      Artifacts don't have specific filesystems so only the fields `name`,
      `type` and `sha256` are available.
      
      Rename env variable names from IMAGE_ to FILE_ prefixes to reflect that
      images, kernels and artifacts are added with the same command.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      5ef4608c
  24. Aug 16, 2021
    • Daniel Golle's avatar
      base-files: rename 'sdcard' to 'legacy-sdcard' · 98bccdaf
      Daniel Golle authored
      
      While an image layout based on MBR and 'bootfs' partition may be easy
      to understand for users who are very used to the IBM PC and always have
      the option to access the SD card outside of the device (and hence don't
      really depend on other recovery methods or dual-boot), in my opinion
      it's a dead end for many desirable features on embedded systems,
      especially when managed remotely (and hence without an easy option to
      access the SD card using another device in case things go wrong, for
      example).
      
      Let me explain:
      
      * using a MSDOS/VFAT filesystem to store kernel(s) is problematic, as a
        single corruption of the bootfs can render the system into a state
        that it no longer boots at all. This makes dual-boot useless, or at
        least very tedious to setup with then 2 independent boot partitions
        to avoid the single point of failure on a "hot" block (the FAT index
        of the boot partition, written every time a file is changed in
        bootfs). And well: most targets even store the bootloader environment
        in a file in that very same FAT filesystem, hence it cannot be used
        to script a reliable dual-boot method (as loading the environment
        itself will already fail if the filesystem is corrupted).
      
      * loading the kernel uImage from bootfs and using rootfs inside an
        additional partition means the bootloader can only validate the
        kernel -- if rootfs is broken or corrupted, this can lead to a reboot
        loop, which is often a quite costly thing to happen in terms of
        hardware lifetime.
      
      * imitating MBR-boot behavior with a FAT-formatted bootfs partition
        (like IBM PC in the 80s and 90s) is just one of many choices on
        embedded targets. There are much better options with modern U-Boot
        (which is what we use and build from source for all targets booting
        off SD cards), see examples in mediatek/mt7622 and mediatek/mt7623.
      
      Hence rename the 'sdcard' feature to 'legacy-sdcard', and prefix
      functions with 'legacy_sdcard_' instead of 'sdcard_'.
      
      Tested-by: default avatarStijn Tintel <stijn@linux-ipv6.be>
      Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
      98bccdaf
  25. Aug 06, 2021
  26. Jul 18, 2021
  27. Jul 06, 2021
  28. Jun 21, 2021
  29. Jun 17, 2021
  30. Jun 07, 2021
    • Karel Kočí's avatar
      scripts/feeds: generate index after all feeds are updated · 1aa80ce3
      Karel Kočí authored
      
      This separates index update from feed update. The result is that all
      requested feeds are first updated and only then indexed.
      
      The reason for this change is to prevent errors being reported and
      potentially invalid index being generated thanks to cross feeds
      dependency.
      The feeds script pulls in default all feeds as they come and on install
      prefers packages from first feeds (unless special feed is requested).
      Thus order of feeds in some way specifies preferences. This is handy for
      downstream distributions as they can simply override any package from
      upstream feeds by placing their feed before them. This removes need to
      patch or fork upstream feeds.
      The problem is that such feed most likely depends in some way also on
      subsequent feeds. The most likely feeds are 'packages' or 'luci'. The
      example would be Python package that needs 'python.mk' from 'packages'
      feed. Ordering custom feed after dependent feeds is sometimes just not
      possible because of preference requirement described before.
      The solution is to just first pull all feeds and generate indexes only
      after that. In the end this ensures that index is generated correctly at
      first try without any error.
      
      In terms of code this removes 'perform_update' argument from
      'update_feed' as with index update removal the update is the only action
      performed in that subroutine. Thus this moves condition to 'update'
      subroutine.
      
      Signed-off-by: default avatarKarel Kočí <karel.koci@nic.cz>
      1aa80ce3
  31. May 29, 2021
Loading