diff options
author | Alexey Neyman <stilor@att.net> | 2020-02-17 13:00:49 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2020-02-26 11:05:19 -0800 |
commit | cd2e3276b60494bb97954355fe30d88c70bd0e69 (patch) | |
tree | 32e20e03c83bfbef7ae2e00c92c67ce6a099a3c9 /maintainer | |
parent | db980376cdf74ada7b085e422c52c36a2ce85cd3 (diff) | |
download | crosstool-ng-cd2e3276b60494bb97954355fe30d88c70bd0e69.tar.gz crosstool-ng-cd2e3276b60494bb97954355fe30d88c70bd0e69.tar.bz2 crosstool-ng-cd2e3276b60494bb97954355fe30d88c70bd0e69.zip |
Slide the checked out tag of elf2flt
Also, add an ability to download rolling releases to manage-packages.sh.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'maintainer')
-rwxr-xr-x | maintainer/manage-packages.sh | 59 | ||||
-rw-r--r-- | maintainer/package-versions.template | 13 |
2 files changed, 58 insertions, 14 deletions
diff --git a/maintainer/manage-packages.sh b/maintainer/manage-packages.sh index 08412446..c370719b 100755 --- a/maintainer/manage-packages.sh +++ b/maintainer/manage-packages.sh @@ -91,10 +91,11 @@ CT_LIB_DIR=`pwd` CT_TOP_DIR=`pwd` CT_TARBALLS_DIR=`pwd`/temp.tarballs CT_COMMON_SRC_DIR=`pwd`/temp.src +CT_WORK_DIR=`pwd`/temp.work CT_SRC_DIR=`pwd`/temp.src CT_LOG_LEVEL_MAX=EXTRA CT_TEMP_PATCH_DIR=`pwd`/temp.patches -mkdir -p ${CT_TARBALLS_DIR} +mkdir -p "${CT_TARBALLS_DIR}" "${CT_WORK_DIR}" # Does not matter, just to make the scripts load CT_ARCH=arm @@ -223,6 +224,8 @@ matched=0 run_pkgversion() { + local descr + while [ -n "${1}" ]; do eval "local ${1}" shift @@ -237,8 +240,13 @@ run_pkgversion() ;; esac fi + if [ -n "${ver}" ]; then + descr="${pkg_name}-${ver}" + else + descr="${pkg_name} revision ${repository_cset}" + fi - CT_DoStep INFO "Handling ${pkg_name}-${ver}" + CT_DoStep INFO "Handling ${descr}" matched=$[matched+1] # Create a temporary configuration head file @@ -268,30 +276,53 @@ source "config/global/build-behave.in" source "config/versions/${master}.in" EOF + # Common part of the config file cat >temp.defconfig <<EOF CT_${masterpfx}_USE_${originpfx}=y -CT_${pfx}_SRC_RELEASE=y -CT_${pfx}_V_${kcfg}=y CT_SAVE_TARBALLS=y +CT_WORK_DIR="${CT_WORK_DIR}" +# CT_OVERRIDE_CONFIG_GUESS_SUB is not set # CT_VERIFY_DOWNLOAD_DIGEST is not set ${signature+CT_VERIFY_DOWNLOAD_SIGNATURE=y} -# CT_OVERRIDE_CONFIG_GUESS_SUB is not set EOF + if [ -n "${kcfg}" ]; then + # Regular tarball + cat >>temp.defconfig <<EOF +CT_${pfx}_SRC_RELEASE=y +CT_${pfx}_V_${kcfg}=y +EOF + else + # VCS-based release + cat >>temp.defconfig <<EOF +CT_${pfx}_SRC_DEVEL=y +CT_${pfx}_DEVEL_VCS="${vcs}" +CT_${pfx}_DEVEL_URL="${repository_url}" +CT_${pfx}_DEVEL_BRANCH="${repository_branch}" +CT_${pfx}_DEVEL_REVISION="${repository_cset}" +CT_${pfx}_DEVEL_SUBDIR="${repository_subdir}" +EOF + fi + ./kconfig/conf --defconfig=temp.defconfig temp.in >/dev/null CT_LoadConfig + CT_DoExecLog ALL mkdir -p "${CT_BUILD_DIR}" rm -f .config .config.old temp.defconfig temp.in - if [ -n "${verify_urls}" ]; then - CT_DoLog EXTRA "Verifying URLs for ${pkg_name}-${ver}" - CT_PackageRun "${masterpfx}" check_pkg_urls - fi - if [ -n "${create_digests}" ]; then - CT_DoLog EXTRA "Creating digests for ${pkg_name}-${ver}" - CT_PackageRun "${masterpfx}" create_digests + if [ -n "${ver}" ]; then + if [ -n "${verify_urls}" ]; then + CT_DoLog EXTRA "Verifying URLs for ${descr}" + CT_PackageRun "${masterpfx}" check_pkg_urls + fi + if [ -n "${create_digests}" ]; then + CT_DoLog EXTRA "Creating digests for ${descr}" + CT_PackageRun "${masterpfx}" create_digests + fi + else + CT_DoLog EXTRA "Not verifying URLs or creating digests for ${descr} (devel release)" fi if [ -n "${download_pkgs}" ]; then - CT_DoLog EXTRA "Downloading ${pkg_name}-${ver}" + CT_DoLog EXTRA "Downloading ${descr}" CT_Fetch "${masterpfx}" fi if [ -n "${apply_patches}" ]; then @@ -315,4 +346,4 @@ CT_EndStep CT_DoLog INFO "Handled ${matched} packages/versions" [ -r .config-saved ] && mv .config-saved .config -CT_DoExecLog ALL rm -rf ${CT_TARBALLS_DIR} ${CT_COMMON_SRC_DIR} ${CT_TEMP_PATCH_DIR} +CT_DoExecLog ALL rm -rf "${CT_TARBALLS_DIR}" "${CT_COMMON_SRC_DIR}" "${CT_TEMP_PATCH_DIR}" "${CT_WORK_DIR}" diff --git a/maintainer/package-versions.template b/maintainer/package-versions.template index 61f938f6..ea78417a 100644 --- a/maintainer/package-versions.template +++ b/maintainer/package-versions.template @@ -10,4 +10,17 @@ run_pkgversion \ ver=@@ver@@ \ kcfg=@@ver_sel|@@ #!end-foreach +#!if [ -n "@@repository_cset@@" ] +run_pkgversion \ + master=@@master@@ \ + masterpfx=@@master|@@ \ + originpfx=@@origin|@@ \ + pkg_name=@@pkg_name@@ \ + pfx=@@fork|@@ \ + vcs=@@vcs@@ \ + repository_url=@@repository_url@@ \ + repository_branch=@@repository_branch@@ \ + repository_cset=@@repository_cset@@ \ + repository_subdir=@@repository_subdir@@ +#!end-if #!end-foreach |