Changeset 6e490ae in rtems-source-builder


Ignore:
Timestamp:
Mar 14, 2016, 5:23:19 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.9, master
Children:
8d0e377
Parents:
e8f3519
Message:

sb: Update download to check the config file for release URL control.

Provide without_release_url support in the configuration file so
the release tarball download of the kernel and tools uses the
release's top level directory and not the sources directory.

Closes #2481.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtems/config/tools/rtems-kernel-4-1.cfg

    re8f3519 r6e490ae  
    2222 %endif
    2323 %source set rtems %{rtems_release_url}/%{rtems_kernel_version}/rtems-%{rtems_kernel_version}.tar.%{rtems_kernel_compression}
    24   %define rtems_bootstrap 0
     24 %define rtems_bootstrap 0
     25 %define without_release_url
    2526%else
    2627 %if ! %{defined rtems_kernel_version}
  • rtems/config/tools/rtems-tools-1.cfg

    re8f3519 r6e490ae  
    2626 %if %{rsb_released}
    2727  %source set rtems-tools %{rtems_release_url}/%{rtems_tools_version}/rtems-tools-%{rtems_tools_version}.tar.xz
     28  %define without_release_url
    2829 %else
    2930  #
  • source-builder/sb/download.py

    re8f3519 r6e490ae  
    567567        rtems_release_url = rtems_release_url_value
    568568    with_rel_url = opts.with_arg('release-url')
     569    if with_rel_url[1] == 'not-found':
     570        if config.defined('without_release_url'):
     571            with_rel_url = ('without_release-url', 'yes')
    569572    if with_rel_url[0] == 'with_release-url':
    570573        if with_rel_url[1] == 'yes':
Note: See TracChangeset for help on using the changeset viewer.