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
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
61f66b08
Commit
61f66b08
authored
Sep 01, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed conditions with variable BRANCH
This allows you to reset the BRANCH variable by specifying the 'BRANCH=' argument on the command line.
parent
86349d9d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
mixin.mk
conf.d/mixin.mk
+1
-1
regular.mk
conf.d/regular.mk
+2
-2
profiles.mk.sample
doc/profiles.mk.sample
+1
-1
main.mk
main.mk
+1
-1
No files found.
conf.d/mixin.mk
View file @
61f66b08
### various mixins with their origin
### various mixins with their origin
# for stable branch base kits
# for stable branch base kits
if
def BRANCH
if
neq (,$(BRANCH))
STARTERKIT := mixin/starterkit
STARTERKIT := mixin/starterkit
mixin/starterkit: use/browser/firefox/esr
mixin/starterkit: use/browser/firefox/esr
@$(call set,BRANDING,alt-starterkit)
@$(call set,BRANDING,alt-starterkit)
...
...
conf.d/regular.mk
View file @
61f66b08
...
@@ -8,7 +8,7 @@ distro/.regular-bare: distro/.base use/kernel/net use/docs/license \
...
@@ -8,7 +8,7 @@ distro/.regular-bare: distro/.base use/kernel/net use/docs/license \
use/stage2/rtc use/stage2/sbc use/stage2/scsi use/stage2/usb \
use/stage2/rtc use/stage2/sbc use/stage2/scsi use/stage2/usb \
$(STARTERKIT)
$(STARTERKIT)
@$(call try,SAVE_PROFILE,yes)
@$(call try,SAVE_PROFILE,yes)
if
ndef BRANCH
if
eq (,$(BRANCH))
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
@$(call set,BOOTLOADER,grubpcboot)
@$(call set,BOOTLOADER,grubpcboot)
endif
endif
...
@@ -138,7 +138,7 @@ distro/regular-gnustep-systemd: distro/.regular-wm +systemd \
...
@@ -138,7 +138,7 @@ distro/regular-gnustep-systemd: distro/.regular-wm +systemd \
mixin/regular-wmaker mixin/regular-gnustep; @:
mixin/regular-wmaker mixin/regular-gnustep; @:
distro/regular-xfce: distro/.regular-gtk mixin/regular-xfce; @:
distro/regular-xfce: distro/.regular-gtk mixin/regular-xfce; @:
if
ndef BRANCH
if
eq (,$(BRANCH))
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
ifeq (,$(filter-out i586 x86_64,$(ARCH)))
@$(call set,KFLAVOURS,std-def un-def)
@$(call set,KFLAVOURS,std-def un-def)
endif
endif
...
...
doc/profiles.mk.sample
View file @
61f66b08
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# NB: REPORT doesn't work here, it's somewhat special
# NB: REPORT doesn't work here, it's somewhat special
# where to look for apt.conf; system one used by default
# where to look for apt.conf; system one used by default
if
def BRANCH
if
neq (,$(BRANCH))
APTCONF = ~/apt/apt.conf.$(BRANCH).$(ARCH)
APTCONF = ~/apt/apt.conf.$(BRANCH).$(ARCH)
else
else
APTCONF = ~/apt/apt.conf.sisyphus.$(ARCH)
APTCONF = ~/apt/apt.conf.sisyphus.$(ARCH)
...
...
main.mk
View file @
61f66b08
...
@@ -17,7 +17,7 @@ endif
...
@@ -17,7 +17,7 @@ endif
IMAGE_CONF := $(firstword $(subst ., ,$(IMAGE_TARGET)))# ve/generic
IMAGE_CONF := $(firstword $(subst ., ,$(IMAGE_TARGET)))# ve/generic
IMAGE_CLASS := $(firstword $(subst /, ,$(IMAGE_TARGET)))# ve
IMAGE_CLASS := $(firstword $(subst /, ,$(IMAGE_TARGET)))# ve
IMAGE_FILE := $(lastword $(subst /, ,$(IMAGE_TARGET)))# generic.tar.gz
IMAGE_FILE := $(lastword $(subst /, ,$(IMAGE_TARGET)))# generic.tar.gz
if
def BRANCH
if
neq (,$(BRANCH))
IMAGE_FILE := $(subst regular,alt-$(BRANCH),$(IMAGE_FILE))
IMAGE_FILE := $(subst regular,alt-$(BRANCH),$(IMAGE_FILE))
endif
endif
IMAGE_NAME := $(firstword $(subst ., ,$(IMAGE_FILE)))# generic
IMAGE_NAME := $(firstword $(subst ., ,$(IMAGE_FILE)))# generic
...
...
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