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
1
Issues
1
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
426c985d
Commit
426c985d
authored
Jan 04, 2012
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syslinux: piggybacking cleanups
Avoid extra files where a variable would suffice; and use the more specific "syslinux.list" rather than a "files.list".
parent
8fbf3585
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
generate.mk
features.in/syslinux/generate.mk
+1
-2
01-syslinux
features.in/syslinux/stage1/scripts.d/01-syslinux
+6
-6
Makefile
sub.in/stage1/Makefile
+1
-0
No files found.
features.in/syslinux/generate.mk
View file @
426c985d
...
@@ -51,8 +51,7 @@ all: prep debug
...
@@ -51,8 +51,7 @@ all: prep debug
@### proper text branding should be implemented
@### proper text branding should be implemented
@sed -i 's,@mkimage-profiles@,$(IMAGE_NAME),' $(DSTDIR)/*.cfg
@sed -i 's,@mkimage-profiles@,$(IMAGE_NAME),' $(DSTDIR)/*.cfg
@echo $(SYSLINUX_MODULES) > $(DSTDIR)/modules.list
@echo $(SYSLINUX_MODULES) > $(DSTDIR)/modules.list
@echo $(SYSLINUX_FILES) > $(DSTDIR)/files.list
@echo $(SYSLINUX_FILES) > $(DSTDIR)/syslinux.list
@echo $(BOOTLOADER) > $(DSTDIR)/bootloader
prep:
prep:
@mkdir -p $(DSTDIR)
@mkdir -p $(DSTDIR)
...
...
features.in/syslinux/stage1/scripts.d/01-syslinux
View file @
426c985d
...
@@ -7,15 +7,15 @@ MODDIR="/usr/lib/syslinux"
...
@@ -7,15 +7,15 @@ MODDIR="/usr/lib/syslinux"
mkdir
-p
"
$WORKDIR
/syslinux"
mkdir
-p
"
$WORKDIR
/syslinux"
cd
"
$WORKDIR
/syslinux"
cd
"
$WORKDIR
/syslinux"
# validate just in case (written by ../../generate.mk)
# validate just in case (see also stage1 Makefile)
BOOTLOADER
=
"
$(
cat
.in/bootloader
)
"
case
"
$GLOBAL_BOOTLOADER
"
in
case
"
$BOOTLOADER
"
in
isolinux|syslinux
)
;;
isolinux|syslinux
)
;;
*
)
echo
"
$0
: error: weird BOOTLOADER:
$BOOTLOADER
"
>
&2
;
exit
1
;;
*
)
echo
"error: weird GLOBAL_BOOTLOADER:
\`
$GLOBAL_BOOTLOADER
'"
>
&2
;
exit
1
;;
esac
esac
# copy extra files, if any
# copy extra files, if any
SYSLINUX_FILES
=
"
$(
cat
.in/
files
.list
)
"
SYSLINUX_FILES
=
"
$(
cat
.in/
syslinux
.list
)
"
if
[
-n
"
${
SYSLINUX_FILES
%
}
"
]
;
then
if
[
-n
"
${
SYSLINUX_FILES
%
}
"
]
;
then
cp
-a
$SYSLINUX_FILES
.
cp
-a
$SYSLINUX_FILES
.
fi
fi
...
@@ -30,7 +30,7 @@ if [ -n "$SYSLINUX_MODULES" ]; then
...
@@ -30,7 +30,7 @@ if [ -n "$SYSLINUX_MODULES" ]; then
fi
fi
# number ordering sponsored by shell's pathname expansion
# number ordering sponsored by shell's pathname expansion
grep
-hv
'^#'
.in/[0-9][0-9]
*
.cfg
>
"
$BOOTLOADER
.cfg"
grep
-hv
'^#'
.in/[0-9][0-9]
*
.cfg
>
"
$
GLOBAL_
BOOTLOADER
.cfg"
# snippets are not going into the actual image
# snippets are not going into the actual image
if
[
"
$DEBUG
"
!=
2
]
;
then
rm
-r
.in/
;
fi
if
[
"
$DEBUG
"
!=
2
]
;
then
rm
-r
.in/
;
fi
...
...
sub.in/stage1/Makefile
View file @
426c985d
...
@@ -11,6 +11,7 @@ include $(MKIMAGE_PREFIX)/config.mk
...
@@ -11,6 +11,7 @@ include $(MKIMAGE_PREFIX)/config.mk
ifndef
BOOTLOADER
ifndef
BOOTLOADER
$(error
BOOTLOADER
not
defined)
$(error
BOOTLOADER
not
defined)
endif
endif
GLOBAL_BOOTLOADER
:=
$(BOOTLOADER)
MKI_PACK_RESULTS
=
data
MKI_PACK_RESULTS
=
data
PROPAGATOR_VERSION
=
ALT Linux
PROPAGATOR_VERSION
=
ALT Linux
...
...
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