[d7fd195] | 1 | BRW= "[0;1m"
|
---|
| 2 | RED= "[0;31m"
|
---|
| 3 | GREEN= "[0;32m"
|
---|
| 4 | ORANGE= "[0;33m"
|
---|
| 5 | BLUE= "[1;34m"
|
---|
| 6 | WHITE= "[00m"
|
---|
[47e0a38] | 7 |
|
---|
| 8 | define echo_message
|
---|
[4c62c61] | 9 | @echo $(BRW)
|
---|
| 10 | @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 11 | @echo $(BRW)$(1) target $(BLUE)$@$(BRW)
|
---|
| 12 | @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$(WHITE)
|
---|
[47e0a38] | 13 | endef
|
---|
| 14 |
|
---|
| 15 | define unpack
|
---|
[be9970b] | 16 | @if [ -f $(LFS)$(SRC)/$(1).bz2 ] ; then \
|
---|
| 17 | cd $(LFS)$(SRC) ; tar -xvjf $(1).bz2 > /tmp/unpacked ; \
|
---|
| 18 | else \
|
---|
| 19 | cd $(LFS)$(SRC) ; tar -xvzf $(1).gz > /tmp/unpacked ; \
|
---|
| 20 | fi ;
|
---|
| 21 | endef
|
---|
| 22 |
|
---|
| 23 | define unpack2
|
---|
| 24 | @cd $(LFS)$(SRC) ; /tools/bin/tar -xvf $(1) > /tmp/unpacked
|
---|
[47e0a38] | 25 | endef
|
---|
[898f47a] | 26 |
|
---|
| 27 | define echo_finished
|
---|
| 28 | @echo $(BRW)
|
---|
| 29 | @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
[299b7e0] | 30 | @echo $(BRW) Finished the build of $(BLUE)LFS-$(1)$(BRW)
|
---|
[898f47a] | 31 | @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 32 | @echo -e \\t\\t$(RED)W A R N I N G$(BRW)
|
---|
| 33 | @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 34 | @echo
|
---|
| 35 | @echo To be able to boot your new LFS system you need to follow
|
---|
| 36 | @echo the next steps:$(WHITE)
|
---|
| 37 | @echo
|
---|
[7990087] | 38 | @echo -e \\t- Enter to the chroot using the command found
|
---|
[898f47a] | 39 | @echo -e \\tin chapter06/revisedchroot.html
|
---|
| 40 | @echo
|
---|
| 41 | @echo -e \\t- Set a password for the root user
|
---|
| 42 | @echo
|
---|
| 43 | @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
---|
| 44 | @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
---|
[6480c2b] | 45 | @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
|
---|
| 46 | @echo -e \\tany other configuration file required to suit your needs.
|
---|
[898f47a] | 47 | @echo
|
---|
| 48 | @echo -e \\t- Set-up Grub. See chapter08/grub.html
|
---|
| 49 | @echo
|
---|
| 50 | @echo -e \\t- Unmount the filesystems. See chapter09/reboot.html
|
---|
[7990087] | 51 | @echo
|
---|
[bf1c3ba] | 52 | @echo If you are an experienced LFS user, several of those steps can be
|
---|
[7990087] | 53 | @echo skipped or done in a different way. But then, that is something
|
---|
| 54 | @echo that you already know and there is no need to discuss it here.
|
---|
[6480c2b] | 55 | @echo $(BRW)
|
---|
[898f47a] | 56 | @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 57 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BRW)
|
---|
| 58 | @echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$(WHITE)
|
---|
| 59 | endef
|
---|