Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
9fba1797
Commit
9fba1797
authored
Jun 01, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile, params.txt: add new parametr NO_SYMLINK
NO_SYMLINK disables the creation of symlinks for the builded image.
parent
8dbd0a0f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
params.txt
doc/params.txt
+5
-0
Makefile
image.in/Makefile
+2
-0
No files found.
doc/params.txt
View file @
9fba1797
...
@@ -90,6 +90,11 @@
...
@@ -90,6 +90,11 @@
** значение: пусто (по умолчанию) либо любая строка
** значение: пусто (по умолчанию) либо любая строка
** см. lib/build.mk
** см. lib/build.mk
* NO_SYMLINK
** не создавать символические ссылки на собранный образ
** значение: пусто (по умолчанию) либо любая строка
** см. image.in/Makefile
* QUIET
* QUIET
** отключает поясняющие сообщения при сборке (например, под cron)
** отключает поясняющие сообщения при сборке (например, под cron)
** значение: пусто (по умолчанию) либо любая строка
** значение: пусто (по умолчанию) либо любая строка
...
...
image.in/Makefile
View file @
9fba1797
...
@@ -101,12 +101,14 @@ postprocess: | $(addprefix postprocess-,$(sort $(POSTPROCESS_TARGETS)))
...
@@ -101,12 +101,14 @@ postprocess: | $(addprefix postprocess-,$(sort $(POSTPROCESS_TARGETS)))
echo
"** image:
$(IMAGE_OUTPATH)
[
$$
OUTSIZE]"
>
&2
&&
\
echo
"** image:
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Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment