Skip to content
Snippets Groups Projects
  1. Mar 09, 2020
    • Karel Koci's avatar
      compile_pkgs: move set -e from hashbang · ea309f68
      Karel Koci authored
      Setting -e in hashbang is not a good idea as users might just run it by
      some other interpreter and that way removing (without noticing it) that
      option.
      ea309f68
    • Karel Koci's avatar
      compile_pkgs: verify generated config against our preferences · 76dc51bb
      Karel Koci authored
      This checks generated config after Kconfig pass if it still contains
      preferences we have in files in configs directory.
      
      This also drops some of the options in our config that are obsolete or
      invalid.
      
      CONFIG_VERSION_REPO is overwritten by setting pushed dynamically in
      config by compile_pkgs so it makes no sense to have it here.
      
      CONFIG_BUSYBOX_DEFAULT_CROND seems to be impossible to change and is
      also default value that we later override with
      CONFIG_BUSYBOX_CONFIG_CROND.
      
      All PACKAGE options are not necessary. They are all enabled to 'm' but
      getting them to 'y' would require a lot of works with gain that build
      would in some cases failed instead of passed without that package. Not
      worth it.
      
      CONFIG_DEFAULT_TARGET_OPTIMIZATION is not applies so it is dropped here
      without replacement. Same as one occurrence of CONFIG_CPU_TYPE.
      76dc51bb
  2. Feb 18, 2020
    • Karel Koci's avatar
      compile_pkgs: fix invalid _report function call · 9227d3ef
      Karel Koci authored
      This was renamed in HBL to report.
      9227d3ef
    • Karel Koci's avatar
      compile_pkgs: use flock to not colide in git mirrors · a621a7d7
      Karel Koci authored and Karel Koci's avatar Karel Koci committed
      This locks git mirror directory when we are updating mirrors. This
      should solve race condition with multiple builds failing to update
      mirrors and failing that way completely.
      
      Only update is protected. The expectation is that initialization is
      happenning only once and is protected by non-existence of directory. If
      there is going to be problem with initialization as well then we can add
      locking as well.
      a621a7d7
  3. Feb 17, 2020
    • Karel Koci's avatar
      compile_pkgs: drop kernel config push · 2bdb79f8
      Karel Koci authored
      This was colliding with OpenWrt's own configuration push and was kind of
      hack. Replacement is to use OpenWrt's approach. That is same but in
      OpenWrt configuration. To ensure that configuration is used by OpenWrt
      KConfig in OWrt tree has to be added.
      The new approach also simplifies some stuff because we can let KConfig
      to do configuration for us. There is no need to specify specific
      options to configuration in this repository. An example can be Turris
      Omnia LEDS support (file target/linux/mvebu/image/Config.in):
      
      config KERNEL_LEDS_OMNIA
      	bool "Build Turris Omnia LEDS support to kernel"
      	depends TARGET_mvebu
      	default y if TARGET_mvebu_cortexa9_DEVICE_cznic_turris-omnia
      	default n
      
      This adds option CONFIG_KERNEL_LEDS_OMNIA that is copied to kernel
      configuration as CONFIG_LEDS_OMNIA. It is available only for
      TARGET_mvebu as it is part of patch for that target. In default it is
      set to no. No is copied to kernel configuration as "# CONFIG_LEDS_OMNIA
      is not set" and that e...
      2bdb79f8
    • Karel Koci's avatar
      configs: clean and rework · 4994f202
      Karel Koci authored
      There are various changes done to configuration on top of just general
      cleanup.
      
      All constants from compile_pkgs were moved to configs as it makes sense
      that they are in one location not in script.
      
      The settings to use specific version of toolchain was removed. Now we
      use upstream default toolchain version which prevents problems with some
      packages not being compiled because of old toolchain is used.
      
      All options settings support and capabilities of target were dropped as
      they are overriden by target setting non the less so they make no sense.
      These should be modified in OpenWrt target not in configuration.
      
      All package settings were dropped with exception of essential packages
      and package disablements.
      The reason why essential packages were not dropped is to ensure that all
      failed build won't be deployed. With future tests done as part of build
      this file can be dropped.
      And lastly we have to preserve disablement of packages to not build
      them as intended.
      
      All DEFAULT options wer...
      4994f202
  4. Jan 29, 2020
  5. Jan 08, 2020
    • Karel Koci's avatar
      compile_pkgs: report correct git revision/version for OpenWrt · 5dd6dc8e
      Karel Koci authored
      This moves version file generation right after clean. This ensures that
      we really report OpenWrt hash and not our patch commit that is created
      to extend ignore list.
      
      This also uses different git command that has lower overhead and is
      intended more for this kind of operation.
      5dd6dc8e
  6. Dec 17, 2019
    • Karel Koci's avatar
      compile_pkgs: set version code to remote hash · 75f00c4b
      Karel Koci authored
      This replaces automatic hash insertion by our hash. The reason is that
      default is hash of tip but we patch our feed so that hash is
      effectively nonsense. This uses remote hash instead.
      75f00c4b
    • Karel Koci's avatar
      compile_pkgs: rework how we detect remote hash · 5c2a4b70
      Karel Koci authored
      This does the same thing as git status but is safe for script usage. It
      just goes from tip (HEAD) trough all commit hashes and requests git to
      name them using symbolic link. We limit that to only references from
      origin so default remote references. This is to get commit that is in
      upstream instead of commit hash of tip that is patch.
      5c2a4b70
  7. Nov 20, 2019
  8. Nov 13, 2019
  9. Nov 09, 2019
    • Karel Koci's avatar
      compile_pkgs: drop disabled packages · 3df40624
      Karel Koci authored
      Disabled packages add unnecessary complexity and introduce no big gain.
      Furthermore they might and do hide if package is fixed by upstream.
      
      There are two reason why package can be disabled. Either id does not
      compile because it is broken and in that case we should build it in hope
      that it will be fixed. Or it might be because it just does not apply on
      given board or architecture and in that case that package should be
      marked as incompatible with that architecture in package itself not
      somewhere outside.
      3df40624
  10. Oct 08, 2019
  11. Sep 13, 2019
  12. Jul 29, 2019
    • Karel Koci's avatar
      compile_pkgs: rename secondary options section · 5f65b791
      Karel Koci authored
      Configuration override options was misleading. In reality those are
      options you most probably don't want to mess too much with so let's call
      them rather advanced options.
      
      This also moves PUBLISH_BRANCH in example configuration file to
      section: don't mess with. This is because now we provide it from
      defaults and user just should not mess with it unless he know what he is
      doing.
      5f65b791
    • Karel Koci's avatar
      compile_pkgs: drop confusing option to specify OpenWRT branch · 44fff123
      Karel Koci authored
      OpenWRT commit to be used is specified in feeds.conf file with rest of
      feeds now so it makes not sense to overwrite it. This is just confusing
      without any real gain in here. You can always modify feeds.conf file to
      achieve the same.
      44fff123
    • Karel Koci's avatar
      compile_pkgs: rename secondary options section · 1135576d
      Karel Koci authored
      Configuration override options was misleading. In reality those are
      options you most probably don't want to mess too much with so let's call
      them rather advanced options.
      
      This also moves PUBLISH_BRANCH in example configuration file to
      section: don't mess with. This is because now we provide it from
      defaults and user just should not mess with it unless he know what he is
      doing.
      1135576d
    • Karel Koci's avatar
      compile_pkgs: drop confusing option to specify OpenWRT branch · ba159dad
      Karel Koci authored
      OpenWRT commit to be used is specified in feeds.conf file with rest of
      feeds now so it makes not sense to overwrite it. This is just confusing
      without any real gain in here. You can always modify feeds.conf file to
      achieve the same.
      ba159dad
  13. May 30, 2019
    • Josef Schlehofer's avatar
      compile_pkgs: git option is depth not deep · a7758417
      Josef Schlehofer authored
      Thanks to midnightmagic, who pointed out it on IRC channel #turris on Freenode
      a7758417
    • Karel Koci's avatar
      compile_pkgs: don't run it under sudo and build everything · c0bb6791
      Karel Koci authored and Josef Schlehofer's avatar Josef Schlehofer committed
      Parameter -e is now obsolete and by default, we want to build everything.
      Removed it from turris-build.conf.example
      
      Because of that we or users don't need to select packages in make
      menuconfig which we or they want to build. Now each package will be selected
      but not compiled which depends on user choice.
      
      Also, compile_pkgs shouldn't be run under root or with sudo. Do it as
      normal user.
      c0bb6791
    • Josef Schlehofer's avatar
      compile_pkgs: git option is depth not deep · a4c2494a
      Josef Schlehofer authored
      Thanks to midnightmagic, who pointed out it on IRC channel #turris on Freenode
      a4c2494a
    • Karel Koci's avatar
      compile_pkgs: don't run it under sudo and build everything · ab58a519
      Karel Koci authored and Josef Schlehofer's avatar Josef Schlehofer committed
      Parameter -e is now obsolete and by default, we want to build everything.
      Removed it from turris-build.conf.example
      
      Because of that we or users don't need to select packages in make
      menuconfig which we or they want to build. Now each package will be selected
      but not compiled which depends on user choice.
      
      Also, compile_pkgs shouldn't be run under root or with sudo. Do it as
      normal user.
      ab58a519
  14. May 16, 2019
  15. Apr 28, 2019
  16. Apr 24, 2019
  17. Apr 23, 2019
  18. Mar 14, 2019