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
4d0ae3af
Commit
4d0ae3af
authored
Mar 03, 2018
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syslinux: dedup generate.mk
Should be a (slightly cleaner) no-op.
parent
5cfcd809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
generate.mk
features.in/syslinux/generate.mk
+12
-11
No files found.
features.in/syslinux/generate.mk
View file @
4d0ae3af
...
...
@@ -28,7 +28,8 @@ ifndef SYSLINUX_DIRECT
SYSLINUX_CFG := $(SYSLINUX_CFG) $(SUBPROFILE_DIRS) defaults
endif
DSTDIR := $(BUILDDIR)/stage1/files/syslinux/.in
DSTDIR := $(BUILDDIR)/stage1/files/syslinux/.in
DSTCFGS := $(DSTDIR)/*.cfg
# we can do SYSLINUX_{CFG,MODULES,FILES}
# CFG have only cfg snippet
...
...
@@ -56,7 +57,7 @@ all: debug timeout
@sed -i \
-e 's,@mkimage-profiles@,$(IMAGE_NAME),' \
-e 's,@relname@,$(RELNAME),' \
$(DST
DIR)/*.cfg
$(DST
CFGS)
# integerity check
timeout: distro
...
...
@@ -65,7 +66,7 @@ timeout: distro
else \
TIMEOUT="$(DEFAULT_TIMEOUT)"; \
fi; \
sed -i "s,@timeout@,$$TIMEOUT," $(DST
DIR)/*.cfg
sed -i "s,@timeout@,$$TIMEOUT," $(DST
CFGS)
distro: bootargs
@if [ -n "$(META_VOL_SET)" ]; then \
...
...
@@ -73,26 +74,26 @@ distro: bootargs
else \
DISTRO="ALT"; \
fi; \
sed -i "s,@distro@,$$DISTRO," $(DST
DIR)/*.cfg
sed -i "s,@distro@,$$DISTRO," $(DST
CFGS)
# pass over additional parameters, if any
bootargs: clean
@if [ -n "$(STAGE2_BOOTARGS)" ]; then \
sed -i "s,@bootargs@,$(STAGE2_BOOTARGS)," $(DST
DIR)/*.cfg
; \
sed -i "s,@bootargs@,$(STAGE2_BOOTARGS)," $(DST
CFGS)
; \
fi; \
sed -i "s,@bootargs@,," $(DST
DIR)/*.cfg
sed -i "s,@bootargs@,," $(DST
CFGS)
@if [ -n "$(RESCUE_BOOTARGS)" ]; then \
sed -i "s,@rescue_bootargs@,$(RESCUE_BOOTARGS)," $(DST
DIR)/*.cfg
; \
sed -i "s,@rescue_bootargs@,$(RESCUE_BOOTARGS)," $(DST
CFGS)
; \
fi; \
sed -i "s,@rescue_bootargs@,," $(DST
DIR)/*.cfg
sed -i "s,@rescue_bootargs@,," $(DST
CFGS)
@if [ -n "$(BOOTVGA)" ]; then \
sed -i "s,@bootvga@,$(BOOTVGA)," $(DST
DIR)/*.cfg
; \
sed -i "s,@bootvga@,$(BOOTVGA)," $(DST
CFGS)
; \
fi; \
sed -i "s,@bootvga@,,;s,vga= ,," $(DST
DIR)/*.cfg
sed -i "s,@bootvga@,,;s,vga= ,," $(DST
CFGS)
clean: copy
@if [ "$(SYSLINUX_UI)" = gfxboot ]; then \
sed -i "s/\^//;/menu label /d" $(DST
DIR)/*.cfg
; \
sed -i "s/\^//;/menu label /d" $(DST
CFGS)
; \
fi
copy: prep
...
...
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