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;
2021-03-21 15:09:42 +03:00
# only for grub allowed multiple kernels, for other a single kernel
# might be needed (STAGE1_KFLAVOURS sets explicitly);
# kernel image copied from instrumental chroot into .work/boot/
i f e q ( g r u b p c b o o t , $( BOOTLOADER ) )
STAGE1_KFLAVOURS ?= $( KFLAVOURS)
e n d i f
i f e q ( g r u b - e f i , $( EFI_BOOTLOADER ) )
STAGE1_KFLAVOURS ?= $( KFLAVOURS)
e n d i f
i f e q ( i e e e 1 2 7 5 b o o t , $( BOOTLOADER ) )
STAGE1_KFLAVOURS ?= $( KFLAVOURS)
e n d i f
STAGE1_KFLAVOURS ?= $( 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)
2021-03-21 15:09:42 +03:00
i f n e q "$(STAGE1_KFLAVOURS)" ""
GLOBAL_STAGE1_KFLAVOURS := $( STAGE1_KFLAVOURS)
2014-09-18 05:15:14 +04:00
CHROOT_PACKAGES_REGEXP := $( call kpackages, \
2021-03-21 15:09:42 +03:00
$( STAGE1_KFLAVOURS) ,$( STAGE1_KMODULES) ,$( STAGE1_KMODULES_REGEXP) )
2014-09-18 20:08:08 +04:00
i f n e q "$(findstring stage2,$(SUBPROFILES))" "" ### assumes stage2 ~ propagator
2021-02-08 20:44:02 +03:00
LIST_MODULES = .work/chroot/.in/modules
PREPARE_MODULES = prepare-modules
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
2015-02-23 23:17:12 +03:00
prepare-modules :
@echo $( foreach V,$( STAGE1_MODLISTS) ,$( wildcard modules.d/??-$( V) ) ) \
2021-03-21 15:09:42 +03:00
| xargs -r -- cat >> $( LIST_MODULES)
2015-02-23 23:17:12 +03: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
2021-02-08 20:44:02 +03:00
all : | debug prepare -workdir copy -tree $( PREPARE_MODULES ) run -scripts \
$( 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