1 |
|
---|
2 | # $Id$
|
---|
3 |
|
---|
4 | BOLD= "[0;1m"
|
---|
5 | RED= "[1;31m"
|
---|
6 | GREEN= "[0;32m"
|
---|
7 | ORANGE= "[0;33m"
|
---|
8 | BLUE= "[1;34m"
|
---|
9 | WHITE= "[00m"
|
---|
10 | CURSOR_ON= "[?25h"
|
---|
11 |
|
---|
12 | define echo_message
|
---|
13 | @echo $(BOLD)
|
---|
14 | @echo --------------------------------------------------------------------------------
|
---|
15 | @echo $(BOLD)$(1) target $(BLUE)$@$(BOLD)
|
---|
16 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
17 | endef
|
---|
18 |
|
---|
19 | define unpack
|
---|
20 | @cd $(MOUNT_PT)$(SRC) && \
|
---|
21 | tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
|
---|
22 | endef
|
---|
23 |
|
---|
24 | define unpack2
|
---|
25 | @cd $(MOUNT_PT)$(SRC) && \
|
---|
26 | /tools/bin/tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
|
---|
27 | endef
|
---|
28 |
|
---|
29 | define unpack3
|
---|
30 | @cd $(SRC) && \
|
---|
31 | tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
|
---|
32 | endef
|
---|
33 |
|
---|
34 | define echo_report
|
---|
35 | @echo
|
---|
36 | @echo $(BOLD) The report file $(BLUE)$(1)$(BOLD) has been created
|
---|
37 | @echo
|
---|
38 | @echo ${WHITE}Please send the $(BOLD)$(MOUNT_PT)/jhalfs/$(1)$(WHITE)
|
---|
39 | @echo file to $(BOLD)manuel@linuxfromscratch.org$(WHITE)
|
---|
40 | @echo
|
---|
41 | @echo That will help us to keep more accurate SBU and
|
---|
42 | @echo disk usage values into the book. Thanks.
|
---|
43 | endef
|
---|
44 |
|
---|
45 | define echo_finished
|
---|
46 | @echo $(BOLD)
|
---|
47 | @echo --------------------------------------------------------------------------------
|
---|
48 | @echo $(BOLD) Finished the build of $(BLUE)$(1)$(BOLD)
|
---|
49 | @echo --------------------------------------------------------------------------------
|
---|
50 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
51 | @echo --------------------------------------------------------------------------------
|
---|
52 | @echo
|
---|
53 | @echo To be able to boot your new system you need to follow
|
---|
54 | @echo the next steps:$(WHITE)
|
---|
55 | @echo
|
---|
56 | @echo -e \\t- Enter to the chroot using the command found
|
---|
57 | @echo -e \\tin the section -Entering the Chroot Environment-
|
---|
58 | @echo -e \\texcept if building CLFS with METHOO=boot.
|
---|
59 | @echo
|
---|
60 | @echo -e \\t- Set a password for the root user
|
---|
61 | @echo
|
---|
62 | @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
---|
63 | @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
---|
64 | @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
|
---|
65 | @echo -e \\tany other configuration file required to suit your needs.
|
---|
66 | @echo
|
---|
67 | @echo -e \\t- Set-up the boot loader. See the relevant book section.
|
---|
68 | @echo
|
---|
69 | @echo -e \\t- Unmount the filesystems.
|
---|
70 | @echo
|
---|
71 | @echo If you are an experienced LFS user, several of those steps can be
|
---|
72 | @echo skipped or done in a different way. But then, that is something
|
---|
73 | @echo that you already know and there is no need to discuss it here.
|
---|
74 | @echo $(BOLD)
|
---|
75 | @echo --------------------------------------------------------------------------------
|
---|
76 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)$(CURSOR_ON)
|
---|
77 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
78 | endef
|
---|
79 |
|
---|
80 | define echo_boot_finished
|
---|
81 | @echo $(BOLD)
|
---|
82 | @echo --------------------------------------------------------------------------------
|
---|
83 | @echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD)
|
---|
84 | @echo --------------------------------------------------------------------------------
|
---|
85 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
86 | @echo --------------------------------------------------------------------------------
|
---|
87 | @echo
|
---|
88 | @echo The build is not complete. Follow the next steps:$(WHITE)
|
---|
89 | @echo
|
---|
90 | @echo -e \\t- Edit $(MOUNT_PT)/etc/fstab
|
---|
91 | @echo -e \\t and any other configuration file required to suit your needs.
|
---|
92 | @echo $(BOLD)
|
---|
93 | @echo $(BOLD)$(YELLOW)
|
---|
94 | @echo 1.If it is necessary, transfer the newly created partition to the target machine
|
---|
95 | @echo 2.Boot the new partition.
|
---|
96 | @echo 3.Once you are logged in issue the following commands
|
---|
97 | @echo -e \\t $(BOLD})cd /jhalfs
|
---|
98 | @echo -e \\t $(BOLD)make makesys
|
---|
99 | @echo The build process should resume. Follow any instructions that appear.
|
---|
100 | @echo --------------------------------------------------------------------------------
|
---|
101 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)$(CURSOR_ON)
|
---|
102 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
103 | endef
|
---|