source: common/makefile-functions@ 4845f38

experimental
Last change on this file since 4845f38 was 0170229, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Added base files from George's jhalfs-experimental-2 POC.
WARNING: This code is broken due files renaming.

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[0170229]1BOLD= "[0;1m"
2RED= "[1;31m"
3GREEN= "[0;32m"
4ORANGE= "[0;33m"
5BLUE= "[1;34m"
6WHITE= "[00m"
7
8define echo_message
9 @echo $(BOLD)
10 @echo --------------------------------------------------------------------------------
11 @echo $(BOLD)$(1) target $(BLUE)$@$(BOLD)
12 @echo --------------------------------------------------------------------------------$(WHITE)
13endef
14
15define unpack
16 @if [ -f $(MOUNT_PT)$(SRC)/$(1).bz2 ] ; then \
17 cd $(MOUNT_PT)$(SRC) ; tar -xvjf $(1).bz2 > /tmp/unpacked ; \
18 else \
19 cd $(MOUNT_PT)$(SRC) ; tar -xvzf $(1).gz > /tmp/unpacked ; \
20 fi ;
21endef
22
23define unpack2
24 @cd $(MOUNT_PT)$(SRC) ; /tools/bin/tar -xvf $(1) > /tmp/unpacked
25endef
26
27define unpack3
28 @cd $(MOUNT_PT)$(SRC) ; tar -xvf $(1) > /tmp/unpacked
29endef
30
31define unpack4
32 @cd $(SRC) ; tar -xvf $(1) > /tmp/unpacked
33endef
34
35define echo_finished
36 @echo $(BOLD)
37 @echo --------------------------------------------------------------------------------
38 @echo $(BOLD) Finished the build of $(BLUE)$(1)$(BOLD)
39 @echo --------------------------------------------------------------------------------
40 @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
41 @echo --------------------------------------------------------------------------------
42 @echo
43 @echo To be able to boot your new LFS system you need to follow
44 @echo the next steps:$(WHITE)
45 @echo
46 @echo -e \\t- Enter to the chroot using the command found
47 @echo -e \\tin 8.4 Entering the Chroot Environment
48 @echo
49 @echo -e \\t- Set a password for the root user
50 @echo
51 @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
52 @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
53 @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
54 @echo -e \\tany other configuration file required to suit your needs.
55 @echo
56 @echo -e \\t- Set-up Grub. See chapter08/grub.html
57 @echo
58 @echo -e \\t- Unmount the filesystems.
59 @echo
60 @echo If you are an experienced LFS user, several of those steps can be
61 @echo skipped or done in a different way. But then, that is something
62 @echo that you already know and there is no need to discuss it here.
63 @echo $(BOLD)
64 @echo --------------------------------------------------------------------------------
65 @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
66 @echo --------------------------------------------------------------------------------$(WHITE)
67endef
68
69define echo_boot_finished
70 @echo $(BOLD)
71 @echo --------------------------------------------------------------------------------
72 @echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD)
73 @echo --------------------------------------------------------------------------------
74 @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
75 @echo --------------------------------------------------------------------------------
76 @echo
77 @echo The build is not complete. Follow the next steps:$(WHITE)
78 @echo
79 @echo -e \\t- Enter to the chroot using the command found
80 @echo -e \\tin 8.4 Entering the Chroot Environment
81 @echo
82 @echo -e \\t- Set a password for the root user
83 @echo
84 @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
85 @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
86 @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
87 @echo -e \\tany other configuration file required to suit your needs.
88 @echo
89 @echo -e \\t- Set-up Grub.
90 @echo
91 @echo -e \\t- Unmount the filesystems.
92 @echo
93 @echo If you are an experienced LFS user, several of those steps can be
94 @echo skipped or done in a different way. But then, that is something
95 @echo that you already know and there is no need to discuss it here.
96 @echo $(BOLD)
97 @echo $(BOLD)$(YELLOW)
98 @echo Boot the new partition. Once you are logged in issue the following cmds
99 @echo -e \\t cd /jhahlfs
100 @echo -e \\t make XXXXXXXX
101 @echo The build process should resume. Follow any instructions that appear.
102 @echo --------------------------------------------------------------------------------
103 @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
104 @echo --------------------------------------------------------------------------------$(WHITE)
105endef
Note: See TracBrowser for help on using the repository browser.