summaryrefslogtreecommitdiffstats
path: root/rules/images.in
blob: c582d1b2a5331c3a488dc80277be893c000b75f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
##############################################################################
comment "Image Creation for Target"
##############################################################################

config IMAGE_TGZ
	bool
	default n
	prompt "Generate images/root.tgz"
	help
	  Build a tar.gz archive of the root filesystem, containing the
	  right owner/group and access permissions.

config IMAGE_HD
	bool
	default n
	prompt "Generate images/hd.img"
	help
	  Build a harddisk root image

config IMAGE_HD_CONF
	string
	prompt "Geometry file for hd image"
	depends on IMAGE_HD
	help
	  FIXME

	  Usually your hd geometry file lives in $(PROJECTDIR), so enter
	  something like "$(PROJECTDIR)/your-filename" here. 

config IMAGE_IPKG
	bool
	prompt "Create ipkg packets"
	select HOST_IPKG_UTILS
	select HOST_IPKG
	help
	  When this option is selected, the install_* macros build 
	  ipkg packets in $(IMAGEDIR) for each software component. 

config IMAGE_IPKG_IMAGE_FROM_REPOSITORY
	bool
	default N
	prompt "make images: use packets from repository"
	help
	  Usually 'make images' packages the files from $(IMAGEDIR)
	  into $(IMAGEDIR)/root.[filesystem]. If this option is checked the 
	  packet files from the IPKG update site (to be specified in 
	  .ptxdistrc) are taken instead. 

config IMAGE_IPKG_EXTRA_ARGS
	string
	default ""
	prompt "extra arguments passed to ipkg-build"
	depends on IMAGE_IPKG
	help
	  If needed you can add extra arguments for ipkg-build here
	  (e.g. -c if you want ipkg-build to use tar instead of ar.)

config IMAGE_IPKG_ARCH
	string
	default "$(PTXCONF_ARCH)"
	prompt "Name for ipkg field 'Architecture:'"
	depends on IMAGE_IPKG
	help
	  You can specify an architecture name for your ipkg packets here, e.g. 
	  $(PTXCONF_PROJECT). Default is $(PTXCONF_ARCH). Another option would 
	  be to fix this to the PTXdist version you are using; think of 
	  PTXdist being a distro development tool ("Build with ptxdist-0.8.15"). 

config IMAGE_JFFS2
	bool
	default n
	select HOST_MTD_MKJFFS2
	select HOST_MTD
	prompt "Generate images/root.jffs2"
	help
	  Build a jffs2 image of the root filesystem

config IMAGE_JFFS2_BLOCKSIZE
	int
	default -1
	prompt "Erase Block Size"
	depends on IMAGE_JFFS2

config IMAGE_JFFS2_EXTRA_ARGS
	string
	default ""
	prompt "extra arguments passed to mkfs.jffs2"
	depends on IMAGE_JFFS2
	help
	  If needed you can add extra arguments for mkfs.jffs2 here
	  (e.g. --devtable=$(PROJECTDIR)/device_table.txt)

config IMAGE_UIMAGE
	bool
	default n
	prompt "Generate images/uRamdisk"
	select HOST_UMKIMAGE
	select IMAGE_EXT2
	select IMAGE_EXT2_GZIP
	help
	  The file images/uRamdisk can be loaded by the bootloader U-Boot

config IMAGE_UIMAGE_NAME
	string
	default "Application Ramdisk"
	prompt "name of the ramdisk image"
	depends IMAGE_UIMAGE

config IMAGE_UIMAGE_EXTRA_ARGS
	string
	default ""
	prompt "extra arguments passed to umkimage"
	depends on IMAGE_UIMAGE
	help
	  If needed you can add extra arguments for umkimage here
          (e.g. -a 0xaa00000 -e 0xaa00000 )

config IMAGE_EXT2
	bool
	default n
	select HOST_GENEXT2FS
	prompt "Generate images/root.ext2 (initrd)"
	help
	  Build an ext2 image of the root filesystem that can be used as an initrd

config IMAGE_EXT2_SIZE
	int
	default -1
	prompt "Size in blocks"
	depends on IMAGE_EXT2

config IMAGE_EXT2_EXTRA_ARGS
	string
	default ""
	prompt "extra arguments passed to genext2fs"
	depends on IMAGE_EXT2
	help
	  If needed you can add extra arguments for genext2fs here
	  (e.g. -U -r 0 -D=$(PROJECTDIR)/device_table.txt)

config IMAGE_EXT2_GZIP
	bool
	default n
	prompt "Compress the image using gzip"
	depends on IMAGE_EXT2

config IMAGE_MKNBI
	bool
	default n
	select HOST_MKNBI
	depends on IMAGE_EXT2
	prompt "Generate images/$(PROJECTNAME).{elf|nbi}"
	help
	  Generate an image suitable for netboot

choice
	prompt "Image type"
	default IMAGE_MKNBI_ELF
	depends on IMAGE_MKNBI

config IMAGE_MKNBI_NBI
	bool "nbi"

config IMAGE_MKNBI_ELF
	bool "elf"

endchoice

config IMAGE_MKNBI_EXT_KERNEL
	string
	default "$(PTXCONF_KERNEL_DIR)/arch/i386/boot/bzImage"
	prompt "Path to kernel image"
	depends on IMAGE_MKNBI && USE_EXTERNAL_KERNEL

config IMAGE_MKNBI_APPEND
	string
	default "root=/dev/ram0 ramdisk_size=24000"
	prompt "bootprompt append string"
	depends on IMAGE_MKNBI
	help
	  If needed you can add extra arguments for mkelf-linux here
	  (e.g. root=/dev/ram0)

##############################################################################
comment "Image Creation for Host"
##############################################################################

config IMAGE_HOST_DEB
	bool
	default n
	prompt "Create Debian packets for host components"
	help
	  Usually the host side code is being installed during the
	  "install" stages with "make install". If this option is
	  checked, Debian .deb packets are created.