Skip to content
Snippets Groups Projects
  1. Mar 09, 2020
    • 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.
      Verified
      76dc51bb
  2. Feb 18, 2020
  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 ensures that for other boards kernel compiles as it
      knows how to set this option. The default for Turris Omnia board is yes
      and that inserts correct "CONFIG_LEDS_OMNIA=y" to kernel config.
      Verified
      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 were dropped as they are setting default for symbol
      and are intended to be set from target but all of them are overruled by
      setting that all packages should be build (CONFIG_ALL).
      Verified
      4994f202
  4. Jan 29, 2020
  5. Jan 08, 2020
  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.
      Verified
      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.
      Verified
      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.
      Verified
      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.
      Verified
      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.
      Verified
      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.
      Verified
      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.
      Verified
      ba159dad
  13. May 30, 2019
  14. May 16, 2019
  15. Apr 28, 2019
  16. Apr 24, 2019
  17. Apr 23, 2019
  18. Mar 14, 2019
  19. Mar 13, 2019