Skip to content

Commit fc8f1a8

Browse files
authored
Merge pull request #29 from arduino/update-for-7.2
Update for 7.2
2 parents 5f3032e + 96f12a2 commit fc8f1a8

File tree

4 files changed

+17
-56
lines changed

4 files changed

+17
-56
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
uses: actions/checkout@v3
6666
with:
6767
repository: avrdudes/avrdude
68-
ref: ${{ steps.get_tag_name.outputs.AVRDUDE_TAG }} # pay attention, the pathches could not apply to newer version than 7.0
68+
ref: ${{ steps.get_tag_name.outputs.AVRDUDE_TAG }} # pay attention, the pathches could need updating
6969
path: ${{ env.PROJECT_NAME }}
7070

7171
- name: Set the version

patches/0006-Cmake-add-libtinfo-and-libncurses-as-dependencies.patch

Lines changed: 0 additions & 48 deletions
This file was deleted.

patches/0007-Cmake-fix-build-not-working-with-mingw-toolchain.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2-
index ca6cb64..2ccf4af 100644
2+
index c10a77eb..b7769c5b 100644
33
--- a/src/CMakeLists.txt
44
+++ b/src/CMakeLists.txt
55
@@ -50,7 +50,7 @@ endif()
@@ -9,9 +9,9 @@ index ca6cb64..2ccf4af 100644
99
-if(WIN32)
1010
+if(WIN32 OR MINGW)
1111
set(EXTRA_WINDOWS_RESOURCES "${PROJECT_BINARY_DIR}/src/windows.rc")
12-
set(EXTRA_WINDOWS_LIBRARIES setupapi ws2_32)
12+
set(EXTRA_WINDOWS_LIBRARIES setupapi hid ws2_32)
1313
endif()
14-
@@ -108,7 +108,7 @@ endif()
14+
@@ -112,7 +112,7 @@ endif()
1515

1616
configure_file(cmake_config.h.in ac_cfg.h)
1717
configure_file(avrdude.spec.in avrdude.spec)

patches/0008-Append-arduino-to-version-string.patch

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/CMakeLists.txt b/CMakeLists.txt
2-
index 95c89d2..4b8c739 100644
2+
index 9ab5a832..c3b5d8a8 100644
33
--- a/CMakeLists.txt
44
+++ b/CMakeLists.txt
5-
@@ -42,7 +42,7 @@ include(FindPackageMessage)
5+
@@ -49,7 +49,7 @@ include(FindPackageMessage)
66
include(GNUInstallDirs)
77

88
set(CONFIG_DIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}")
@@ -11,15 +11,24 @@ index 95c89d2..4b8c739 100644
1111

1212
# =====================================
1313
# Get Git commit info
14+
@@ -91,7 +91,7 @@ if(Git_FOUND)
15+
16+
# If the commit is not tagged, include the date and commit hash in the full version string.
17+
if(NOT GIT_COMMIT_HASH STREQUAL GIT_TAG_HASH)
18+
- set(AVRDUDE_FULL_VERSION "${CMAKE_PROJECT_VERSION}-${GIT_COMMIT_DATE} (${GIT_COMMIT_HASH})")
19+
+ set(AVRDUDE_FULL_VERSION "ARDUINO_VERSION_PLACEHOLDER-${GIT_COMMIT_DATE} (${GIT_COMMIT_HASH})")
20+
endif()
21+
endif()
22+
1423
diff --git a/src/configure.ac b/src/configure.ac
15-
index ae60e3f..32fb196 100644
24+
index 4b8425f0..2282ed74 100644
1625
--- a/src/configure.ac
1726
+++ b/src/configure.ac
1827
@@ -23,7 +23,7 @@
1928
# Process this file with autoconf to produce a configure script.
2029

2130
AC_PREREQ(2.60)
22-
-AC_INIT(avrdude, 7.1, [email protected])
31+
-AC_INIT(avrdude, 7.2, [email protected])
2332
+AC_INIT(avrdude, ARDUINO_VERSION_PLACEHOLDER, [email protected])
2433

2534
AC_CANONICAL_BUILD

0 commit comments

Comments
 (0)