2010-12-03 17:53:02 +03:00
# step 4: build stage1 subprofile (installer bootstrap)
2011-06-12 19:06:36 +04:00
i f n d e f G L O B A L _ B U I L D D I R
$( error GLOBAL_BUILDDIR not defined )
e n d i f
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
i n c l u d e $( GLOBAL_BUILDDIR ) / d i s t c f g . m k
2010-09-27 23:02:57 +04:00
i n c l u d e $( GLOBAL_BUILDDIR ) / f u n c t i o n s . m k
i n c l u d e $( MKIMAGE_PREFIX ) / c o n f i g . m k
2010-09-09 13:50:29 +04:00
2011-06-12 19:06:36 +04:00
i f n d e f B O O T L O A D E R
$( error BOOTLOADER not defined )
e n d i f
2012-01-04 16:17:04 +04:00
GLOBAL_BOOTLOADER := $( BOOTLOADER)
2010-09-09 13:50:29 +04:00
MKI_PACK_RESULTS = data
2010-09-14 14:18:53 +04:00
COPY_TREE = ./files
2010-09-09 13:50:29 +04:00
i n c l u d e $( MKIMAGE_PREFIX ) / t a r g e t s . m k
2011-06-12 19:06:36 +04:00
# here we try and come up with the installer kernel/modules, if any;
2011-08-18 19:18:46 +04:00
# only a single kernel might be needed (STAGE1_KFLAVOUR sets explicitly);
2011-06-12 19:06:36 +04:00
# kernel image copied from instrumental chroot into .work/syslinux/alt0/
2011-08-18 19:18:46 +04:00
STAGE1_KFLAVOUR ?= $( lastword $( KFLAVOURS) )
2011-06-12 19:06:36 +04:00
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
# propagator needed iff stage1 kernel installed (not for e.g. syslinux.iso)
2011-08-22 19:31:45 +04:00
i f n e q "$(STAGE1_KFLAVOUR)" ""
2014-09-18 20:08:08 +04:00
GLOBAL_STAGE1_KFLAVOUR := $( STAGE1_KFLAVOUR)
2014-09-18 05:15:14 +04:00
CHROOT_PACKAGES_REGEXP := $( call kpackages, \
2014-09-18 20:08:08 +04:00
$( STAGE1_KFLAVOUR) ,$( STAGE1_KMODULES_REGEXP) )
i f n e q "$(findstring stage2,$(SUBPROFILES))" "" ### assumes stage2 ~ propagator
2012-12-12 00:00:35 +04:00
PROPAGATOR_VERSION = ALT Linux
PROPAGATOR_MAR_MODULES = ./modules
PROPAGATOR_INITFS = ./initfs
2011-08-22 19:31:45 +04:00
BUILD_PROPAGATOR = build-propagator
2014-09-18 05:15:14 +04:00
e n d i f
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
e n d i f
2011-06-13 00:08:42 +04:00
CHROOT_PACKAGES_REGEXP += $( STAGE1_PACKAGES_REGEXP)
2011-09-03 13:34:53 +04:00
CHROOT_PACKAGES = $( STAGE1_PACKAGES) $( SYSTEM_PACKAGES)
2011-06-13 00:08:42 +04:00
2012-04-08 20:25:18 +04:00
# pass for use/stage2
GLOBAL_SQUASHFS := $( SQUASHFS)
2012-10-10 17:18:32 +04:00
- i n c l u d e $( sort $ ( wildcard lib /*.mk ) )
2012-04-25 15:08:36 +04:00
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
# scripts prepare bootloader configuration, too
2014-03-05 18:09:56 +04:00
# NB: we pass tested squashfs options for sub.in/stage2/Makefile to include
2011-08-22 19:31:45 +04:00
all : | debug prepare -workdir copy -tree run -scripts $( BUILD_PROPAGATOR ) \
2011-08-21 21:45:50 +04:00
copy-$( BOOTLOADER) $( COPY_SQUASHCFG) pack-image $( GLOBAL_CLEAN_WORKDIR)
2011-12-21 14:14:03 +04:00
@if [ -s $( OUTDIR) /squashcfg.mk ] ; then \
2011-08-21 21:45:50 +04:00
cp $( OUTDIR) /squashcfg.mk $( GLOBAL_BUILDDIR) /; \
fi
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
debug :
2011-12-21 14:14:03 +04:00
@if [ -n " $( GLOBAL_VERBOSE) " ] ; then \
2011-08-20 13:55:05 +04:00
echo " ** BRANDING: $( BRANDING) " ; \
echo " ** IMAGE_INIT_LIST: $( IMAGE_INIT_LIST) " ; \
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
echo " ** STAGE1_PACKAGES: $( STAGE1_PACKAGES) " ; \
2011-06-13 00:08:42 +04:00
echo " ** STAGE1_PACKAGES_REGEXP: $( STAGE1_PACKAGES_REGEXP) " ; \
server-ovz; KDEFAULT; syslinux features reworked
Renamed server-light.iso into server-ovz.iso to avoid brand dilution
and confusion (rider@'s server-light rather favours kvm, anyways).
Introduced KDEFAULT: a reliable default kernel chooser knob
since apt's regex ordering proved pretty unreliable.
Spelling things explicitly is better anyways.
SYSLINUX related features undergone pretty major rewrite
(that includes syslinux, hdt and memtest).
The problem to tackle was features.in/syslinux/generate.mk
assuming syslinux and pciids available in build *host* system;
this well might not be the case (or worse yet, those can be
just different). So now we're a bit less elegant and a bit
more enterprise, stuffing things into chroot and working there.
Bunch of other fixes along the road, including ; to name a few:
- fixed memtest entry (overlooked while renaming SYSLINUX_ITEMS)
- new and shiny doc/CodingStyle
- gfxboot, stage1 target chain, hdt tweaks
- distro.mk rehashed
- README++
- TODO: dropped (integer overflow anyways)
+ actually moved off-tree to reduce commit spam
- s,\.config\.mk,distcfg.mk,g
- doc/profiles.mk.sample: sample ~/.mkimage/profiles.mk
- ...and assorted fixups/additions
Sorry for convoluted commit, this would have been pretty hard to
rework into some really readable shape (and you might be interested
in the original repo's history horrors then, anyways).
2011-05-31 02:05:33 +04:00
echo " ** CHROOT_PACKAGES: $( CHROOT_PACKAGES) " ; \
echo " ** CHROOT_PACKAGES_REGEXP: $( CHROOT_PACKAGES_REGEXP) " ; \
echo " ** BOOTLOADER: $( BOOTLOADER) " ; \
fi