Skip to content

Commit 3f78dc1

Browse files
committed
final tunnings before 2.12 release
1 parent bfe55a3 commit 3f78dc1

File tree

8 files changed

+42
-26
lines changed

8 files changed

+42
-26
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ There are currently no changes from the official BusyBox distribution.
1212
Build
1313
=====
1414

15+
[2019-04-22]
16+
17+
- v2.12 released
18+
1519
[2019-04-06]
1620

1721
- prepare v2.12

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ Before starting a multi-platform build, check if Docker is started:
6060
$ docker info
6161
```
6262

63-
To build both the 32/64-bits Windows use `--all`; to build selectively, use `--win64` or `--win32`.
63+
To build both the 32/64-bits Windows use `--all`.
6464

6565
```console
66-
$ bash ~/Downloads/windows-build-tools.git/scripts/build.sh
66+
$ bash ~/Downloads/windows-build-tools.git/scripts/build.sh --all
6767
```
6868

6969
Several minutes later, the output of the build script is a set of 2 files and their SHA signatures, created in the `deploy` folder:

scripts/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ host_show_sha
119119

120120
host_stop_timer
121121

122+
host_notify_completed
123+
122124
echo
123125
echo "Use --date ${DISTRIBUTION_FILE_DATE} if needed to resume a build."
124126

scripts/container-app-functions-source.sh renamed to scripts/container-apps-functions-source.sh

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function do_make()
4242
MAKE_FOLDER_NAME="make-${MAKE_VERSION}"
4343
local make_archive="${MAKE_FOLDER_NAME}.tar.bz2"
4444

45-
local make_stamp_file_path="${INSTALL_FOLDER_PATH}/stamp-make-installed"
45+
local make_stamp_file_path="${INSTALL_FOLDER_PATH}/stamp-make-${MSYS2_MAKE_VERSION_RELEASE}-installed"
4646
if [ ! -f "${make_stamp_file_path}" -o ! -d "${BUILD_FOLDER_PATH}/${MAKE_FOLDER_NAME}" ]
4747
then
4848

@@ -154,7 +154,7 @@ function do_busybox()
154154

155155
download_and_extract "${BUSYBOX_URL}" "${BUSYBOX_ARCHIVE}" "${BUSYBOX_SRC_FOLDER}"
156156

157-
local busybox_stamp_file_path="${INSTALL_FOLDER_PATH}/stamp-busybox-installed"
157+
local busybox_stamp_file_path="${INSTALL_FOLDER_PATH}/stamp-busybox-${BUSYBOX_COMMIT}-installed"
158158
if [ ! -f "${busybox_stamp_file_path}" ]
159159
then
160160
(
@@ -273,28 +273,31 @@ function check_binaries()
273273
done
274274
}
275275

276-
function copy_gme_files()
276+
function copy_distro_files()
277277
{
278-
rm -rf "${APP_PREFIX}/${DISTRO_LC_NAME}"
279-
mkdir -p "${APP_PREFIX}/${DISTRO_LC_NAME}"
278+
(
279+
xbb_activate
280280

281-
echo
282-
echo "Copying license files..."
281+
rm -rf "${APP_PREFIX}/${DISTRO_LC_NAME}"
282+
mkdir -p "${APP_PREFIX}/${DISTRO_LC_NAME}"
283+
284+
echo
285+
echo "Copying license files..."
283286

284-
copy_license \
285-
"${SOURCES_FOLDER_PATH}/${MAKE_FOLDER_NAME}" \
286-
"${MAKE_FOLDER_NAME}"
287+
copy_license \
288+
"${SOURCES_FOLDER_PATH}/${MAKE_FOLDER_NAME}" \
289+
"${MAKE_FOLDER_NAME}"
287290

288-
copy_license \
289-
"${BUILD_FOLDER_PATH}/${BUSYBOX_SRC_FOLDER}" \
290-
"busybox-w32"
291+
copy_license \
292+
"${BUILD_FOLDER_PATH}/${BUSYBOX_SRC_FOLDER}" \
293+
"busybox-w32"
291294

292-
copy_build_files
295+
copy_build_files
293296

294-
echo
295-
echo "Copying GME files..."
297+
echo
298+
echo "Copying distro files..."
296299

297-
cd "${WORK_FOLDER_PATH}/build.git"
298-
/usr/bin/install -v -c -m 644 "README-out.md" \
299-
"${APP_PREFIX}/README.md"
300+
cd "${WORK_FOLDER_PATH}/build.git"
301+
install -v -c -m 644 "README-out.md" "${APP_PREFIX}/README.md"
302+
)
300303
}

scripts/container-build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ container_libs_functions_script_path="${script_folder_path}/${CONTAINER_LIBS_FUN
6464
echo "Container lib functions source script: \"${container_libs_functions_script_path}\"."
6565
source "${container_libs_functions_script_path}"
6666

67-
container_app_functions_script_path="${script_folder_path}/${CONTAINER_APP_FUNCTIONS_SCRIPT_NAME}"
67+
container_app_functions_script_path="${script_folder_path}/${CONTAINER_APPS_FUNCTIONS_SCRIPT_NAME}"
6868
echo "Container app functions source script: \"${container_app_functions_script_path}\"."
6969
source "${container_app_functions_script_path}"
7070

@@ -178,8 +178,12 @@ do_busybox
178178
# -----------------------------------------------------------------------------
179179

180180
copy_binaries
181+
182+
# -----------------------------------------------------------------------------
183+
181184
check_binaries
182-
copy_gme_files
185+
186+
copy_distro_files
183187

184188
create_archive
185189

File renamed without changes.

scripts/defs-source.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ APP_LC_NAME=${APP_LC_NAME:-"windows-build-tools"}
2525
DISTRO_UC_NAME=${DISTRO_UC_NAME:-"GNU MCU Eclipse"}
2626
DISTRO_LC_NAME=${DISTRO_LC_NAME:-"gnu-mcu-eclipse"}
2727

28+
# TODO: remove it.
29+
DISTRO_INFO_NAME=${DISTRO_INFO_NAME:-"${DISTRO_LC_NAME}"}
30+
2831
CONTAINER_SCRIPT_NAME=${CONTAINER_SCRIPT_NAME:-"container-build.sh"}
29-
CONTAINER_LIBS_FUNCTIONS_SCRIPT_NAME=${CONTAINER_LIBS_FUNCTIONS_SCRIPT_NAME:-"container-lib-functions-source.sh"}
30-
CONTAINER_APP_FUNCTIONS_SCRIPT_NAME=${CONTAINER_APP_FUNCTIONS_SCRIPT_NAME:-"container-app-functions-source.sh"}
32+
CONTAINER_LIBS_FUNCTIONS_SCRIPT_NAME=${CONTAINER_LIBS_FUNCTIONS_SCRIPT_NAME:-"container-libs-functions-source.sh"}
33+
CONTAINER_APPS_FUNCTIONS_SCRIPT_NAME=${CONTAINER_APPS_FUNCTIONS_SCRIPT_NAME:-"container-apps-functions-source.sh"}
3134

3235
# -----------------------------------------------------------------------------

scripts/helper

0 commit comments

Comments
 (0)