2005-10-03 05:33:19 +02:00
|
|
|
|
BRW= "[0;1m"
|
|
|
|
|
RED= "[0;31m"
|
|
|
|
|
GREEN= "[0;32m"
|
|
|
|
|
ORANGE= "[0;33m"
|
|
|
|
|
BLUE= "[1;34m"
|
|
|
|
|
WHITE= "[00m"
|
2005-10-03 03:01:28 +02:00
|
|
|
|
|
|
|
|
|
define echo_message
|
2005-10-04 00:00:09 +02:00
|
|
|
|
@echo $(BRW)
|
|
|
|
|
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
@echo $(BRW)$(1) target $(BLUE)$@$(BRW)
|
|
|
|
|
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$(WHITE)
|
2005-10-03 03:01:28 +02:00
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define unpack
|
2005-10-28 20:48:53 +02:00
|
|
|
|
@if [ -f $(LFS)$(SRC)/$(1).bz2 ] ; then \
|
|
|
|
|
cd $(LFS)$(SRC) ; tar -xvjf $(1).bz2 > /tmp/unpacked ; \
|
|
|
|
|
else \
|
|
|
|
|
cd $(LFS)$(SRC) ; tar -xvzf $(1).gz > /tmp/unpacked ; \
|
|
|
|
|
fi ;
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
define unpack2
|
|
|
|
|
@cd $(LFS)$(SRC) ; /tools/bin/tar -xvf $(1) > /tmp/unpacked
|
2005-10-03 03:01:28 +02:00
|
|
|
|
endef
|
2005-10-09 12:20:10 +02:00
|
|
|
|
|
|
|
|
|
define echo_finished
|
|
|
|
|
@echo $(BRW)
|
|
|
|
|
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2005-11-02 04:09:44 +01:00
|
|
|
|
@echo $(BRW) Finished the build of $(BLUE)LFS-$(1)$(BRW)
|
2005-10-09 12:20:10 +02:00
|
|
|
|
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
@echo -e \\t\\t$(RED)W A R N I N G$(BRW)
|
|
|
|
|
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
@echo
|
|
|
|
|
@echo To be able to boot your new LFS system you need to follow
|
|
|
|
|
@echo the next steps:$(WHITE)
|
|
|
|
|
@echo
|
2005-10-15 00:17:05 +02:00
|
|
|
|
@echo -e \\t- Enter to the chroot using the command found
|
2005-10-09 12:20:10 +02:00
|
|
|
|
@echo -e \\tin chapter06/revisedchroot.html
|
|
|
|
|
@echo
|
|
|
|
|
@echo -e \\t- Set a password for the root user
|
|
|
|
|
@echo
|
|
|
|
|
@echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
|
|
|
|
@echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
2005-11-13 11:09:40 +01:00
|
|
|
|
@echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
|
|
|
|
|
@echo -e \\tany other configuration file required to suit your needs.
|
2005-10-09 12:20:10 +02:00
|
|
|
|
@echo
|
|
|
|
|
@echo -e \\t- Set-up Grub. See chapter08/grub.html
|
|
|
|
|
@echo
|
|
|
|
|
@echo -e \\t- Unmount the filesystems. See chapter09/reboot.html
|
2005-10-15 00:17:05 +02:00
|
|
|
|
@echo
|
2005-10-26 20:42:48 +02:00
|
|
|
|
@echo If you are an experienced LFS user, several of those steps can be
|
2005-10-15 00:17:05 +02:00
|
|
|
|
@echo skipped or done in a different way. But then, that is something
|
|
|
|
|
@echo that you already know and there is no need to discuss it here.
|
2005-11-13 11:09:40 +01:00
|
|
|
|
@echo $(BRW)
|
2005-10-09 12:20:10 +02:00
|
|
|
|
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
@echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BRW)
|
|
|
|
|
@echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$(WHITE)
|
|
|
|
|
endef
|