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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
generate.mk
features.in/syslinux/generate.mk
+11
-10
No files found.
features.in/syslinux/generate.mk
View file @
4d0ae3af
...
@@ -29,6 +29,7 @@ SYSLINUX_CFG := $(SYSLINUX_CFG) $(SUBPROFILE_DIRS) defaults
...
@@ -29,6 +29,7 @@ SYSLINUX_CFG := $(SYSLINUX_CFG) $(SUBPROFILE_DIRS) defaults
endif
endif
DSTDIR := $(BUILDDIR)/stage1/files/syslinux/.in
DSTDIR := $(BUILDDIR)/stage1/files/syslinux/.in
DSTCFGS := $(DSTDIR)/*.cfg
# we can do SYSLINUX_{CFG,MODULES,FILES}
# we can do SYSLINUX_{CFG,MODULES,FILES}
# CFG have only cfg snippet
# CFG have only cfg snippet
...
@@ -56,7 +57,7 @@ all: debug timeout
...
@@ -56,7 +57,7 @@ all: debug timeout
@sed -i \
@sed -i \
-e 's,@mkimage-profiles@,$(IMAGE_NAME),' \
-e 's,@mkimage-profiles@,$(IMAGE_NAME),' \
-e 's,@relname@,$(RELNAME),' \
-e 's,@relname@,$(RELNAME),' \
$(DST
DIR)/*.cfg
$(DST
CFGS)
# integerity check
# integerity check
timeout: distro
timeout: distro
...
@@ -65,7 +66,7 @@ timeout: distro
...
@@ -65,7 +66,7 @@ timeout: distro
else \
else \
TIMEOUT="$(DEFAULT_TIMEOUT)"; \
TIMEOUT="$(DEFAULT_TIMEOUT)"; \
fi; \
fi; \
sed -i "s,@timeout@,$$TIMEOUT," $(DST
DIR)/*.cfg
sed -i "s,@timeout@,$$TIMEOUT," $(DST
CFGS)
distro: bootargs
distro: bootargs
@if [ -n "$(META_VOL_SET)" ]; then \
@if [ -n "$(META_VOL_SET)" ]; then \
...
@@ -73,26 +74,26 @@ distro: bootargs
...
@@ -73,26 +74,26 @@ distro: bootargs
else \
else \
DISTRO="ALT"; \
DISTRO="ALT"; \
fi; \
fi; \
sed -i "s,@distro@,$$DISTRO," $(DST
DIR)/*.cfg
sed -i "s,@distro@,$$DISTRO," $(DST
CFGS)
# pass over additional parameters, if any
# pass over additional parameters, if any
bootargs: clean
bootargs: clean
@if [ -n "$(STAGE2_BOOTARGS)" ]; then \
@if [ -n "$(STAGE2_BOOTARGS)" ]; then \
sed -i "s,@bootargs@,$(STAGE2_BOOTARGS)," $(DST
DIR)/*.cfg
; \
sed -i "s,@bootargs@,$(STAGE2_BOOTARGS)," $(DST
CFGS)
; \
fi; \
fi; \
sed -i "s,@bootargs@,," $(DST
DIR)/*.cfg
sed -i "s,@bootargs@,," $(DST
CFGS)
@if [ -n "$(RESCUE_BOOTARGS)" ]; then \
@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; \
fi; \
sed -i "s,@rescue_bootargs@,," $(DST
DIR)/*.cfg
sed -i "s,@rescue_bootargs@,," $(DST
CFGS)
@if [ -n "$(BOOTVGA)" ]; then \
@if [ -n "$(BOOTVGA)" ]; then \
sed -i "s,@bootvga@,$(BOOTVGA)," $(DST
DIR)/*.cfg
; \
sed -i "s,@bootvga@,$(BOOTVGA)," $(DST
CFGS)
; \
fi; \
fi; \
sed -i "s,@bootvga@,,;s,vga= ,," $(DST
DIR)/*.cfg
sed -i "s,@bootvga@,,;s,vga= ,," $(DST
CFGS)
clean: copy
clean: copy
@if [ "$(SYSLINUX_UI)" = gfxboot ]; then \
@if [ "$(SYSLINUX_UI)" = gfxboot ]; then \
sed -i "s/\^//;/menu label /d" $(DST
DIR)/*.cfg
; \
sed -i "s/\^//;/menu label /d" $(DST
CFGS)
; \
fi
fi
copy: prep
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