build_patch.sh 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/bash
  2. ###
  3. # @Author: your name
  4. # @Date: 2022-03-18 15:35:25
  5. # @LastEditTime: 2022-03-18 15:48:04
  6. # @LastEditors: your name
  7. # @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. # @FilePath: \v3_0_2\device\bossay\hi3861_l0\sdk_liteos\build_patch.sh
  9. ###
  10. #
  11. # Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
  12. # Licensed under the Apache License, Version 2.0 (the "License");
  13. # you may not use this file except in compliance with the License.
  14. # You may obtain a copy of the License at
  15. #
  16. # http://www.apache.org/licenses/LICENSE-2.0
  17. #
  18. # Unless required by applicable law or agreed to in writing, software
  19. # distributed under the License is distributed on an "AS IS" BASIS,
  20. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. # See the License for the specific language governing permissions and
  22. # limitations under the License.
  23. #
  24. # Description: Menuconfig entry
  25. #
  26. set -e
  27. CROOT=$(pwd)
  28. build_uboot_patch() {
  29. if [ ! -d $CROOT/third_party/u-boot-v2019.07/u-boot-v2019.07/ ]; then
  30. tar -zxf u-boot-v2019.07.tar.gz
  31. cd u-boot-v2019.07
  32. patch -p1 < ./../patch/CVE-2019-13103.patch
  33. patch -p1 < ./../patch/CVE-2019-13104.patch
  34. patch -p1 < ./../patch/CVE-2019-13105.patch
  35. patch -p1 < ./../patch/CVE-2019-13106.patch
  36. patch -p1 < ./../patch/CVE-2019-14192-14193-14199.patch
  37. patch -p1 < ./../patch/CVE-2019-14194-14198.patch
  38. patch -p1 < ./../patch/CVE-2019-14195.patch
  39. patch -p1 < ./../patch/CVE-2019-14196.patch
  40. patch -p1 < ./../patch/CVE-2019-14197-14200-14201-14202-14203-14204.patch
  41. patch -p1 < ./../hisilicon_patch/bossay-u-boot-v2019.07.patch
  42. fi
  43. }