diff --git a/.drone.yml b/.drone.yml index 3a2db4834db0..35ec6c276feb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,7 +20,7 @@ steps: from_secret: bot_api_key PD_API_KEY: from_secret: pd_api_key - TYPE: "STGNG-0.2.1" + TYPE: "REL-1.0.0" DEVICE: alioth KBUILD_BUILD_USER: UtsavTheCunt KBUILD_BUILD_HOST: CuntsSpace diff --git a/README.md b/README.md new file mode 100644 index 000000000000..0aa2ac1f869c --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +[![Build Status](https://cloud.drone.io/api/badges/UtsavBalar1231/kernel_xiaomi_sm8250/status.svg?ref=refs/heads/android12-stable)](https://cloud.drone.io/UtsavBalar1231/kernel_xiaomi_sm8250) +![Commits Count](https://img.shields.io/github/commits-since/UtsavBalar1231/kernel_xiaomi_sm8250/0.4.j/android12-stable) +[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FUtsavBalar1231%2Fkernel_xiaomi_sm8250&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com) +![Downloads](https://img.shields.io/github/downloads/UtsavBalar1231/kernel_xiaomi_sm8250/0.4.j/total) + +![logo](https://github.com/UtsavBalar1231/xda-stuff/raw/master/banner.png "logo was here") + +## Technical Information +![poggers](https://github.com/UtsavBalar1231/xda-stuff/raw/master/alioth-github.png "imformation image was here") +- [XDA Thread](https://utsavbalar.netlify.app/community/#xda) +- [Telegram Support](https://utsavbalar.netlify.app/community/#telegram-groups) +- [Donate](https://utsavbalar.netlify.app/donate) diff --git a/scripts/setlocalversion b/scripts/setlocalversion index 5ca29cbf2fa1..17c2f708eee7 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -71,56 +71,14 @@ scm_version() printf '%s' "-$android_release" fi - # If we are at a tagged commit (like "v2.6.30-rc6"), we ignore - # it, because this version is defined in the top level Makefile. - if [ -z "`git describe --exact-match 2>/dev/null`" ]; then - - # If only the short version is requested, don't bother - # running further git commands - if $short; then - echo "+" - return - fi - # If we are past a tagged commit (like - # "v2.6.30-rc5-302-g72357d5"), we pretty print it. - # - # Ensure the abbreviated sha1 has exactly 12 - # hex characters, to make the output - # independent of git version, local - # core.abbrev settings and/or total number of - # objects in the current repository - passing - # --abbrev=12 ensures a minimum of 12, and the - # awk substr() then picks the 'g' and first 12 - # hex chars. - if atag="$(git describe --abbrev=12 2>/dev/null)"; then - echo "$atag" | awk -F- '{printf("-%05d-%s", $(NF-1),substr($(NF),0,13))}' - - # If we don't have a tag at all we print -g{commitish}, - # again using exactly 12 hex chars. - else - head="$(echo $head | cut -c1-12)" - printf '%s%s' -g $head - fi - fi + commit=$(git rev-parse --verify --short=12 HEAD) + printf '%s' "//$commit" # Is this git on svn? if git config --get svn-remote.svn.url >/dev/null; then printf -- '-svn%s' "`git svn find-rev $head`" fi - # Check for uncommitted changes. - # First, with git-status, but --no-optional-locks is only - # supported in git >= 2.14, so fall back to git-diff-index if - # it fails. Note that git-diff-index does not refresh the - # index, so it may give misleading results. See - # git-update-index(1), git-diff-index(1), and git-status(1). - if { - git --no-optional-locks status -uno --porcelain 2>/dev/null || - git diff-index --name-only HEAD - } | grep -qvE '^(.. )?scripts/package'; then - printf '%s' -dirty - fi - # All done with git return fi @@ -204,15 +162,6 @@ res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}" if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then # full scm version string res="$res$(scm_version)" -else - # append a plus sign if the repository is not in a clean - # annotated or signed tagged state (as git describe only - # looks at signed or annotated tags - git tag -a/-s) and - # LOCALVERSION= is not specified - if test "${LOCALVERSION+set}" != "set"; then - scm=$(scm_version --short) - res="$res${scm:++}" - fi fi echo "$res" diff --git a/scripts/update_subtrees b/scripts/update_subtrees new file mode 100755 index 000000000000..08f1e4759e33 --- /dev/null +++ b/scripts/update_subtrees @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# shellcheck source=/dev/null + +# SPDX-License-Identifier: MIT +# Copyright (C) 2020-22 Utsav Balar + +export TAG=$1 +for p in qcacld-3.0 fw-api qca-wifi-host-cmn; + do git subtree pull --prefix=drivers/staging/$p https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/$p $TAG; +done +git subtree pull --prefix=techpack/audio https://source.codeaurora.org/quic/la/platform/vendor/opensource/audio-kernel $TAG; +git subtree pull --prefix=techpack/camera https://source.codeaurora.org/quic/la/platform/vendor/opensource/camera-kernel $TAG; +git subtree pull --prefix=techpack/data https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/data-kernel $TAG; +git subtree pull --prefix=techpack/display https://source.codeaurora.org/quic/la/platform/vendor/opensource/display-drivers $TAG; +git subtree pull --prefix=techpack/video https://source.codeaurora.org/quic/la/platform/vendor/opensource/video-driver $TAG;