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
Ximper Linux
mkimage-profiles
Commits
5d37a0c5
Commit
5d37a0c5
authored
Sep 13, 2011
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid setting GLOBAL_* altogether
Applying set() and only set() to a GLOBAL_* is safe but still a potentially confusing example; so let's just do it right (and warn unsuspecting folks too).
parent
75fd7952
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
config.mk
features.in/bootloader/config.mk
+2
-2
stage2cfg.mk
features.in/install2/install2/stage2cfg.mk
+3
-0
functions.mk
functions.mk
+1
-0
No files found.
features.in/bootloader/config.mk
View file @
5d37a0c5
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# - remember .base if adding yet another *_PACKAGES
# - remember .base if adding yet another *_PACKAGES
use/bootloader: use/install2 sub/main
use/bootloader: use/install2 sub/main
@$(call add,BASE_PACKAGES,alterator-$$(
GLOBAL_
BASE_BOOTLOADER))
@$(call add,BASE_PACKAGES,alterator-$$(BASE_BOOTLOADER))
use/bootloader/grub use/bootloader/lilo: use/bootloader/%: use/bootloader
use/bootloader/grub use/bootloader/lilo: use/bootloader/%: use/bootloader
@$(call set,
GLOBAL_
BASE_BOOTLOADER,$*)
@$(call set,BASE_BOOTLOADER,$*)
features.in/install2/install2/stage2cfg.mk
View file @
5d37a0c5
...
@@ -8,6 +8,9 @@ MKI_PACK_RESULTS = squash:altinst
...
@@ -8,6 +8,9 @@ MKI_PACK_RESULTS = squash:altinst
# also removed in a cleanup hook but to spare a few cycles...
# also removed in a cleanup hook but to spare a few cycles...
HSH_EXCLUDE_DOCS = 1
HSH_EXCLUDE_DOCS = 1
# pass downstream
GLOBAL_BASE_BOOTLOADER := $(BASE_BOOTLOADER)
debug:
debug:
@echo "** install2: IMAGE_PACKAGES: $(IMAGE_PACKAGES)"
@echo "** install2: IMAGE_PACKAGES: $(IMAGE_PACKAGES)"
@echo "** install2: IMAGE_PACKAGES_REGEXP: $(IMAGE_PACKAGES_REGEXP)"
@echo "** install2: IMAGE_PACKAGES_REGEXP: $(IMAGE_PACKAGES_REGEXP)"
...
...
functions.mk
View file @
5d37a0c5
...
@@ -15,6 +15,7 @@ endef
...
@@ -15,6 +15,7 @@ endef
# add() just appends an additive rule...
# add() just appends an additive rule...
add = $(and $(1),$(2),$(add_body))
add = $(and $(1),$(2),$(add_body))
define add_body
define add_body
$(if $(filter GLOBAL_% INFO_%,$(1)),$(warning add,$(1) might be a problem)) \
{ $(log_body); \
{ $(log_body); \
printf '%s += %s\n' '$(1)' '$(2)' >> "$(CONFIG)"; }
printf '%s += %s\n' '$(1)' '$(2)' >> "$(CONFIG)"; }
endef
endef
...
...
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