Skip to content
Snippets Groups Projects
  1. May 24, 2020
  2. May 21, 2020
  3. May 20, 2020
    • Eneas U de Queiroz's avatar
      build: have config-clean deal with old temp files · 80b350f5
      Eneas U de Queiroz authored
      
      This is a temporary commit to have 'make config-clean' remove
      temporary files from the previous scripts/config version.
      
      The .gitignore file is updated to deal with the old files as well.
      
      Cc: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      80b350f5
    • Eneas U de Queiroz's avatar
      build: scripts/config - update to kconfig-v5.6 · 9f843b1d
      Eneas U de Queiroz authored
      
      Major changes include:
       - Much more readable reverse dependencies separated in groups
       - Improved recursive dependency report
       - More readable .config files: add comments to signal end of menus
       - More warnings for incorrect Config.in entries, such as a 'choice'
         default not contained in the 'choice'
       - Hability to properly display pseudographics with non-latin locales
       - Recursive dependencies can optionally be treated as errors
      
      Changes from failed dcf3e63a attempt:
       - Recursive dependencies are treated as warnings by default
       - The option to treat them as errors is implemented as a command-line
         flag to scripts/config/conf instead of a compile-time definition
       - fixed handling of select with umnet dependencies
      
      Cc: Petr Štetiar <ynezz@true.cz>
      Cc: Jo-Philip Wich <jow@mein.io>
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      9f843b1d
  4. May 19, 2020
  5. May 18, 2020
  6. Apr 14, 2020
    • Paul Spooren's avatar
      scripts/download: add sources CDN as first mirror · c737a9ee
      Paul Spooren authored
      
      OpenWrt now has a CDN for sources at sources.cdn.openwrt.org which
      mirrors sources.openwrt.org.
      
      Downloading sources outside Europe or US (mainland) could
      result in low throughput, extremely slowing down the first compilation of
      the build system.
      
      This patch adds sources.cdn.openwrt.org as the first mirror to offer
      worldwide fast download speeds by default. If the CDN goes down for
      whatever reason, the script jumps to the next available mirror and
      downloads requested files as before (in regional varying speed).
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      Acked-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      c737a9ee
    • Paul Spooren's avatar
      scripts: JSON merge don't crash if no JSON found · 14cbd8fb
      Paul Spooren authored
      
      The JSON `WORK_DIR` ($(KDIR)/json_info_files) is only created if the new
      image generation methods from `image.mk` are used. However some targets
      like `armvirt` do not use it yet, so the folder is never created.
      
      The `json_overview_image_info.py` script used to raise an error if the
      given `WORK_DIR` isn't a folder, however it should just notify about
      missing JSON files.
      
      This patch removes the Python assert and exists with code 0 even if no
      JSON files were found, as this is not necessarily an error but simply
      not yet implemented. Using `glob` on an not existing `Path` results in
      an empty list, therefore the for loop won't run.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      CC: Petr Štetiar <ynezz@true.cz>
      14cbd8fb
  7. Apr 11, 2020
  8. Apr 09, 2020
    • Eneas U de Queiroz's avatar
      build: add option to warn on recursive dependency · 3204430e
      Eneas U de Queiroz authored
      
      This addes the option to treat recursive dependencies as warnings
      instead of errors, by running make with WARN_RECURSIVE_DEP=1.
      
      Note that the script/config targets will not get rebuilt when you add or
      remove WARN_RECURSIVE_DEP while running make.  One must run
      'make config-clean' before building config with a different setting.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      3204430e
    • Eneas U de Queiroz's avatar
      build: scripts/config - update to kconfig-v5.6 · dcf3e63a
      Eneas U de Queiroz authored
      
      Major changes include:
       - Much more readable reverse dependencies separated in groups
       - Improved recursive dependency report
       - More readable .config files: add comments to signal end of menus
       - More warnings for incorrect Config.in entries, such as a 'choice'
         default not contained in the 'choice'
       - Hability to properly display pseudographics with non-latin locales
       - Recursive dependencies are now treated as errors - this should make
         it harder for them to creep in.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      dcf3e63a
    • Eneas U de Queiroz's avatar
      build: simplify building *config targets · 8636a172
      Eneas U de Queiroz authored
      
      Instead of passing pkg-config location through a variable when building
      qconf (make xconfig), prepend its parent directory to the PATH, as it is
      being done for other conf targets.
      
      Use a Makefile pattern rule to group all 'scripts/config/%onf'
      (currently conf, mconf, qconf) targets in a single rule.  Add -O2 to
      CFLAGS when building them as well.
      
      Signed-off-by: default avatarEneas U de Queiroz <cotequeiroz@gmail.com>
      8636a172
  9. Apr 03, 2020
    • Paul Spooren's avatar
      build: refactor JSON info files to `profiles.json` · 07449f69
      Paul Spooren authored
      
      JSON info files contain machine readable information of built profiles
      and resulting images. These files were added in commit 881ed09e
      ("build: create JSON files containing image info").
      
      They are useful for firmware wizards and script checking for
      reproducibility.
      
      Currently all JSON files are stored next to the built images, resulting
      in up to 168 individual files for the ath79/generic target.
      
      This patch refactors the JSON creation to store individual per image
      (not per profile) files in $(BUILD_DIR)/json_info_files and create an
      single overview file called `profiles.json` in the target directory.
      
      Storing per image files and not per profile solves the problem of
      parallel file writes. If a profiles sysupgrade and factory image are
      finished at the same time both processes would write to the same JSON
      file, resulting in randomly broken outputs.
      
      Some target like x86/64 do not use the image code yet, resulting in
      missing JSON files. If no JSON info files were created, no
      `profiles.json` files is created as it would be empty anyway.
      
      As before, this creation is enabled by default only if `BUILDBOT` is set.
      
      Tested via buildroot & ImageBuilder on ath79/generic, imx6 and x86/64.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      [json_info_files dir handling in Make, if case refactoring]
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      07449f69
  10. Mar 31, 2020
    • 李国's avatar
      x86: generate EFI platform bootable images · a6b7c3e6
      李国 authored
      
      Add EFI platform bootable images for x86 platforms. These images can
      also boot from legacy BIOS platform.
      
      EFI System Partition need to be fat12/fat16/fat32 (not need to load
      filesystem drivers), so the first partition of EFI images are not ext4
      filesystem any more.
      
      GPT partition table has an alternate partition table, we did not
      generate it. This may cause problems when use these images as qemu disk
      (kernel can not find rootfs), we pad enough sectors will be ok.
      
      Signed-off-by: default avatar李国 <uxgood.org@gmail.com>
      [part_magic_* refactoring, removed genisoimage checks]
      Signed-off-by: default avatarPetr Štetiar <ynezz@true.cz>
      a6b7c3e6
  11. Mar 21, 2020
    • Paul Spooren's avatar
      scripts: fixup qemustart for new x86 image names · 2cb6d471
      Paul Spooren authored
      
      qemustart allows easy testing of created images via `qemu`. The script
      automatically selects created images and can setup e.g. networks.
      
      As the x86 target now uses the generic image.mk the profile appears also
      in the image name, this is *generic*.
      
      Add the profile name to the qemustart script so it still finds the file.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      2cb6d471
  12. Mar 01, 2020
    • Jeffery To's avatar
      build: Fix directory symlinks not removed when cleaning STAGING_DIR · f96cfe01
      Jeffery To authored
      
      Currently, a symbolic link whose target is a directory will not be
      removed when cleaning packages from STAGING_DIR.
      
      In the first cleaning pass in scripts/clean-package.sh, the -f test for
      a directory symlink returns false (because the link target is a
      directory) and so the symlink is not removed.
      
      In the second pass, the -d test returns true for a directory symlink,
      but the symlink is not removed by rmdir because rmdir only removes
      (real) directories.
      
      This updates clean-package.sh to remove all non-directories (including
      symbolic links) in the first pass.
      
      Signed-off-by: default avatarJeffery To <jeffery.to@gmail.com>
      f96cfe01
  13. Jan 02, 2020
  14. Jan 01, 2020
  15. Dec 31, 2019
  16. Dec 22, 2019
  17. Nov 04, 2019
  18. Nov 03, 2019
  19. Oct 21, 2019
    • Paul Spooren's avatar
      build: add script to sign packages · 2ae5100d
      Paul Spooren authored
      
      This script allows image signing indipendend of the actual build
      process, to run on a master server after receiving freshly backed
      images. Idea is to avoid storying private keys on third party builders
      while still beeing to be able to sign packages.
      
      Run ./scripts/sign_images.sh with the following env vars:
      
      * TOP_DIR where to search for sysupgrade.bin images
      * BUILD_KEY place of key-build{,.pub,.ucert}
      * REMOVE_OTHER_SIGNATURES removes signatures added by e.g. buildbots
      
      Only sysupgrade.bin files are touched as factory.bin signatures wouldn't
      be evaluated on stock from.
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      2ae5100d
  20. Sep 29, 2019
    • Paul Spooren's avatar
      build: create JSON files containing image info · 881ed09e
      Paul Spooren authored
      
      The JSON info files contain details about the created firmware images
      per device and are stored next to the created images.
      
      The JSON files are stored as "$(IMAGE_PREFIX).json" and contain some
      device/image meta data as well as a list of created firmware images.
      
      An example of openwrt-ramips-rt305x-aztech_hw550-3g.json
      
          {
            "id": "aztech_hw550-3g",
            "image_prefix": "openwrt-ramips-rt305x-aztech_hw550-3g",
            "images": [
              {
                "name": "openwrt-ramips-rt305x-aztech_hw550-3g-squashfs-sysupgrade.bin",
                "sha256": "db2b34b0ec4a83d9bf612cf66fab0dc3722b191cb9bedf111e5627a4298baf20",
                "type": "sysupgrade"
              }
            ],
            "metadata_version": 1,
            "supported_devices": [
              "aztech,hw550-3g",
              "hw550-3g"
            ],
            "target": "ramips/rt305x",
            "titles": [
              {
                "model": "HW550-3G",
                "vendor": "Aztech"
              },
              {
                "model": "ALL0239-3G",
                "vendor": "Allnet"
              }
            ],
            "version_commit": "r10920+123-0cc87b3b",
            "version_number": "SNAPSHOT"
          }
      
      Signed-off-by: default avatarPaul Spooren <mail@aparcar.org>
      881ed09e
Loading