diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-11-07 13:00:10 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2008-11-07 13:00:10 +0000 |
commit | 104c5425294501cfa4290a2b6739b0edf4c25321 (patch) | |
tree | b1f36c7fba5ae0609dd5758b560141952d389d91 | |
parent | 1f1508f257996d446050296b11491e57a33845d8 (diff) | |
download | ptxdist-104c5425294501cfa4290a2b6739b0edf4c25321.tar.gz ptxdist-104c5425294501cfa4290a2b6739b0edf4c25321.tar.xz |
* platforms/images.in, platforms/image_*.in:
split image options into seperate files
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9086 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r-- | platforms/image_cpio.in | 6 | ||||
-rw-r--r-- | platforms/image_ext2.in | 31 | ||||
-rw-r--r-- | platforms/image_hd.in | 149 | ||||
-rw-r--r-- | platforms/image_ipkg.in | 20 | ||||
-rw-r--r-- | platforms/image_jffs2.in | 32 | ||||
-rw-r--r-- | platforms/image_tgz.in | 6 | ||||
-rw-r--r-- | platforms/image_uimage.in | 39 | ||||
-rw-r--r-- | platforms/images.in | 305 |
8 files changed, 291 insertions, 297 deletions
diff --git a/platforms/image_cpio.in b/platforms/image_cpio.in new file mode 100644 index 000000000..4fcff07cf --- /dev/null +++ b/platforms/image_cpio.in @@ -0,0 +1,6 @@ +config IMAGE_CPIO + bool + prompt "Generate images/initrd.gz" + help + Build the traditionally initrd RAM disk to be used + as initramfs by the kernel. diff --git a/platforms/image_ext2.in b/platforms/image_ext2.in new file mode 100644 index 000000000..061362844 --- /dev/null +++ b/platforms/image_ext2.in @@ -0,0 +1,31 @@ +menuconfig IMAGE_EXT2 + bool + select HOST_GENEXT2FS + prompt "Generate images/root.ext2 " + help + Build an ext2 image of the root filesystem + +if IMAGE_EXT2 + +config IMAGE_EXT2_SIZE + int + default 20480 + prompt "Size in kilobytes" + help + FIXME: This item needs to be documented + +config IMAGE_EXT2_EXTRA_ARGS + string + default "" + prompt "extra arguments passed to genext2fs" + help + If needed you can add extra arguments for genext2fs here + (e.g. -U -r 0 -D=${PTXDIST_WORKSPACE}/device_table.txt) + +config IMAGE_EXT2_GZIP + bool + prompt "Compress the image using gzip" + help + FIXME: This item needs to be documented + +endif diff --git a/platforms/image_hd.in b/platforms/image_hd.in new file mode 100644 index 000000000..8217aad07 --- /dev/null +++ b/platforms/image_hd.in @@ -0,0 +1,149 @@ +menuconfig IMAGE_HD + bool + select IMAGE_EXT2 + select HOST_GENPART + prompt "Generate images/hd.img " + help + General + ------- + + Build a harddisk root image. The image will contain a partition + table defined by the following entries. Note that the resulting + partition table does not have CHS entries but only LBA entries, so + you need to switch your (x86-) Bios to LBA. Also note that fdisk will + complain about inconsistent CHS/LBA entries. You can ignore these warnings. + The ptxdist image will be put into the first partition. + + Partition sizes + --------------- + + You can define a partition by giving the first and the last sector of + each partition. Sectors are units of 512 bytes. The first sector (sector 0) + is reserved for the MBR and the partition table. + Sectors can be given either decimal or in hex prefixed with 0x. + Beware that a 256MB flash card does not have exactly 256 * 1024 * 2 sectors + but slightly less. + + Partition types + --------------- + + You can give the partition types as a decimal or hex (prefixed with 0x) value + See at the output of "sfdisk -T" for a list of valid types. No extended + partitions are supported at the moment. + + grub + ---- + + If you select grub in your config, it will be installed on the image and thus + give a bootable image for x86 PCs. The grub stage2 file will be installed right + after the MBR before the first partition, so you need to leave a hole before the + first partition. Starting the partition on sector 300 should be a safe value. + +if IMAGE_HD + +config IMAGE_HD_PART1 + bool + default y + +config IMAGE_HD_PART1_START + string + prompt "partition 1 start sector" + help + see Generate images/hd.img + +config IMAGE_HD_PART1_END + string + prompt "partition 1 end sector" + help + see Generate images/hd.img + +config IMAGE_HD_PART1_TYPE + string + default "0x83" + depends on IMAGE_HD_PART1 + prompt "partition 1 type" + help + see Generate images/hd.img + +config IMAGE_HD_PART2 + bool + depends on IMAGE_HD + prompt "Create partition 2" + +config IMAGE_HD_PART2_START + string + depends on IMAGE_HD_PART2 + prompt "partition 2 start sector" + help + see Generate images/hd.img + +config IMAGE_HD_PART2_END + string + depends on IMAGE_HD_PART2 + prompt "partition 2 end sector" + help + see Generate images/hd.img + +config IMAGE_HD_PART2_TYPE + string + default "0x83" + depends on IMAGE_HD_PART2 + prompt "partition 2 type" + help + see Generate images/hd.img + +config IMAGE_HD_PART3 + bool + depends on IMAGE_HD_PART2 + prompt "Create partition 3" + +config IMAGE_HD_PART3_START + string + depends on IMAGE_HD_PART3 + prompt "partition 3 start sector" + help + see Generate images/hd.img + +config IMAGE_HD_PART3_END + string + depends on IMAGE_HD_PART3 + prompt "partition 3 end sector" + help + see Generate images/hd.img + +config IMAGE_HD_PART3_TYPE + string + default "0x83" + depends on IMAGE_HD_PART3 + prompt "partition 3 type" + help + see Generate images/hd.img + +config IMAGE_HD_PART4 + bool + depends on IMAGE_HD_PART3 + prompt "Create partition 4" + +config IMAGE_HD_PART4_START + string + depends on IMAGE_HD_PART4 + prompt "partition 4 start sector" + help + see Generate images/hd.img + +config IMAGE_HD_PART4_END + string + depends on IMAGE_HD_PART4 + prompt "partition 4 end sector" + help + see Generate images/hd.img + +config IMAGE_HD_PART4_TYPE + string + default "0x83" + depends on IMAGE_HD_PART4 + prompt "partition 4 type" + help + see Generate images/hd.img + +endif diff --git a/platforms/image_ipkg.in b/platforms/image_ipkg.in new file mode 100644 index 000000000..7871660fb --- /dev/null +++ b/platforms/image_ipkg.in @@ -0,0 +1,20 @@ +menu "ipkg options " + +config IMAGE_IPKG_IMAGE_FROM_REPOSITORY + bool + 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" + 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.) + +endmenu diff --git a/platforms/image_jffs2.in b/platforms/image_jffs2.in new file mode 100644 index 000000000..603eee54e --- /dev/null +++ b/platforms/image_jffs2.in @@ -0,0 +1,32 @@ +menuconfig IMAGE_JFFS2 + bool + select HOST_MTD_UTILS + prompt "Generate images/root.jffs2 " + help + Build a jffs2 image of the root filesystem. This image can be stored + linearly into target's flash device at the start of the desired + partition. You should erase the whole partition first if the image + is smaller than partition's size. If not, garbage data in the remaining + space could confuse the filesystem driver. + +if IMAGE_JFFS2 + +config IMAGE_JFFS2_BLOCKSIZE + int + default -1 + prompt "Erase Block Size" + help + Enter here the size of each (sector) block in target's flash device. + The image must use the same blocksize as the real JFFS2 filesystem + running on the target. + +config IMAGE_JFFS2_EXTRA_ARGS + string + default "" + prompt "extra arguments passed to mkfs.jffs2" + help + If needed you can add extra arguments for mkfs.jffs2 here + (e.g. --devtable=${PTXDIST_WORKSPACE}/device_table.txt or + -b to create a big endian filesystem on a little endian host) + +endif diff --git a/platforms/image_tgz.in b/platforms/image_tgz.in new file mode 100644 index 000000000..656839f58 --- /dev/null +++ b/platforms/image_tgz.in @@ -0,0 +1,6 @@ +config IMAGE_TGZ + bool + prompt "Generate images/root.tgz" + help + Build a tar.gz archive of the root filesystem, containing the + right owner/group and access permissions. diff --git a/platforms/image_uimage.in b/platforms/image_uimage.in new file mode 100644 index 000000000..f974a452d --- /dev/null +++ b/platforms/image_uimage.in @@ -0,0 +1,39 @@ +menuconfig IMAGE_UIMAGE + bool + prompt "Generate images/uRamdisk " + select HOST_UMKIMAGE + select IMAGE_EXT2 + select IMAGE_EXT2_GZIP + help + The file images/uRamdisk can be loaded separatly by the bootloader U-Boot + +if IMAGE_UIMAGE + +config IMAGE_UIMAGE_NAME + string + default "Application Ramdisk" + prompt "name of the ramdisk image" + help + FIXME: This item needs to be documented + +config IMAGE_UIMAGE_EXTRA_ARGS + string + default "" + prompt "extra arguments passed to umkimage" + help + If needed you can add extra arguments for umkimage here + (e.g. -a 0xaa00000 -e 0xaa00000 ) + +# TODO: See comment in rules/post/images.make for this topic +#config IMAGE_UIMAGE_MULTI +# bool +# prompt "Generate a multi image images/muimage" +# select HOST_UMKIMAGE +# select KERNEL +# select IMAGE_CPIO +# help +# This generates a multi content image to be loaded by +# the bootloader U-Boot. It contains the kernel and the +# RAM disk in one image. + +endif diff --git a/platforms/images.in b/platforms/images.in index c0fd09c0d..af79fdaab 100644 --- a/platforms/images.in +++ b/platforms/images.in @@ -1,302 +1,13 @@ menu "image creation options " -config IMAGE_TGZ - bool - prompt "Generate images/root.tgz" - help - Build a tar.gz archive of the root filesystem, containing the - right owner/group and access permissions. - - -menuconfig IMAGE_HD - bool - select IMAGE_EXT2 - select HOST_GENPART - prompt "Generate images/hd.img" - help - General - ------- - - Build a harddisk root image. The image will contain a partition - table defined by the following entries. Note that the resulting - partition table does not have CHS entries but only LBA entries, so - you need to switch your (x86-) Bios to LBA. Also note that fdisk will - complain about inconsistent CHS/LBA entries. You can ignore these warnings. - The ptxdist image will be put into the first partition. - - Partition sizes - --------------- - - You can define a partition by giving the first and the last sector of - each partition. Sectors are units of 512 bytes. The first sector (sector 0) - is reserved for the MBR and the partition table. - Sectors can be given either decimal or in hex prefixed with 0x. - Beware that a 256MB flash card does not have exactly 256 * 1024 * 2 sectors - but slightly less. - - Partition types - --------------- - - You can give the partition types as a decimal or hex (prefixed with 0x) value - See at the output of "sfdisk -T" for a list of valid types. No extended - partitions are supported at the moment. - - grub - ---- - - If you select grub in your config, it will be installed on the image and thus - give a bootable image for x86 PCs. The grub stage2 file will be installed right - after the MBR before the first partition, so you need to leave a hole before the - first partition. Starting the partition on sector 300 should be a safe value. - -config IMAGE_HD_PART1 - bool - default y - depends on IMAGE_HD - -config IMAGE_HD_PART1_START - string - depends on IMAGE_HD - prompt "partition 1 start sector" - help - see Generate images/hd.img - -config IMAGE_HD_PART1_END - string - depends on IMAGE_HD - prompt "partition 1 end sector" - help - see Generate images/hd.img - -config IMAGE_HD_PART1_TYPE - string - default "0x83" - depends on IMAGE_HD - depends on IMAGE_HD_PART1 - prompt "partition 1 type" - help - see Generate images/hd.img - -config IMAGE_HD_PART2 - bool - depends on IMAGE_HD - prompt "Create partition 2" - -config IMAGE_HD_PART2_START - string - depends on IMAGE_HD - depends on IMAGE_HD_PART2 - prompt "partition 2 start sector" - help - see Generate images/hd.img - -config IMAGE_HD_PART2_END - string - depends on IMAGE_HD - depends on IMAGE_HD_PART2 - prompt "partition 2 end sector" - help - see Generate images/hd.img - -config IMAGE_HD_PART2_TYPE - string - default "0x83" - depends on IMAGE_HD - depends on IMAGE_HD_PART2 - prompt "partition 2 type" - help - see Generate images/hd.img - -config IMAGE_HD_PART3 - bool - depends on IMAGE_HD - depends on IMAGE_HD_PART2 - prompt "Create partition 3" - -config IMAGE_HD_PART3_START - string - depends on IMAGE_HD - depends on IMAGE_HD_PART3 - prompt "partition 3 start sector" - help - see Generate images/hd.img - -config IMAGE_HD_PART3_END - string - depends on IMAGE_HD - depends on IMAGE_HD_PART3 - prompt "partition 3 end sector" - help - see Generate images/hd.img - -config IMAGE_HD_PART3_TYPE - string - default "0x83" - depends on IMAGE_HD - depends on IMAGE_HD_PART3 - prompt "partition 3 type" - help - see Generate images/hd.img - -config IMAGE_HD_PART4 - bool - depends on IMAGE_HD - depends on IMAGE_HD_PART3 - prompt "Create partition 4" - -config IMAGE_HD_PART4_START - string - depends on IMAGE_HD - depends on IMAGE_HD_PART4 - prompt "partition 4 start sector" - help - see Generate images/hd.img - -config IMAGE_HD_PART4_END - string - depends on IMAGE_HD - depends on IMAGE_HD_PART4 - prompt "partition 4 end sector" - help - see Generate images/hd.img - -config IMAGE_HD_PART4_TYPE - string - default "0x83" - depends on IMAGE_HD - depends on IMAGE_HD_PART4 - prompt "partition 4 type" - help - see Generate images/hd.img - - -config IMAGE_IPKG_IMAGE_FROM_REPOSITORY - bool - 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" - 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.) - - -menuconfig IMAGE_JFFS2 - bool - select HOST_MTD_UTILS - prompt "Generate images/root.jffs2" - help - Build a jffs2 image of the root filesystem. This image can be stored - linearly into target's flash device at the start of the desired - partition. You should erase the whole partition first if the image - is smaller than partition's size. If not, garbage data in the remaining - space could confuse the filesystem driver. - -if IMAGE_JFFS2 - -config IMAGE_JFFS2_BLOCKSIZE - int - default -1 - prompt "Erase Block Size" - help - Enter here the size of each (sector) block in target's flash device. - The image must use the same blocksize as the real JFFS2 filesystem - running on the target. - -config IMAGE_JFFS2_EXTRA_ARGS - string - default "" - prompt "extra arguments passed to mkfs.jffs2" - help - If needed you can add extra arguments for mkfs.jffs2 here - (e.g. --devtable=${PTXDIST_WORKSPACE}/device_table.txt or - -b to create a big endian filesystem on a little endian host) - -endif - -menuconfig IMAGE_UIMAGE - bool - prompt "Generate images/uRamdisk" - select HOST_UMKIMAGE - select IMAGE_EXT2 - select IMAGE_EXT2_GZIP - help - The file images/uRamdisk can be loaded separatly by the bootloader U-Boot - -config IMAGE_UIMAGE_NAME - string - default "Application Ramdisk" - prompt "name of the ramdisk image" - depends on IMAGE_UIMAGE - help - FIXME: This item needs to be documented - -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_CPIO - bool - prompt "Generate images/initrd.gz" - help - Build the traditionally initrd RAM disk to be used - as initramfs by the kernel. - -# TODO: See comment in rules/other/Toplevel.make for this topic -#config IMAGE_MULTI_UIMAGE -# bool -# prompt "Generate a multi image images/muimage" -# select HOST_UMKIMAGE -# select KERNEL -# select IMAGE_CPIO -# help -# This generates a multi content image to be loaded by -# the bootloader U-Boot. It contains the kernel and the -# RAM disk in one image. - -menuconfig IMAGE_EXT2 - bool - select HOST_GENEXT2FS - prompt "Generate images/root.ext2" - help - Build an ext2 image of the root filesystem - -config IMAGE_EXT2_SIZE - int - default 20480 - prompt "Size in kilobytes" - depends on IMAGE_EXT2 - help - FIXME: This item needs to be documented - -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=${PTXDIST_WORKSPACE}/device_table.txt) - -config IMAGE_EXT2_GZIP - bool - prompt "Compress the image using gzip" - depends on IMAGE_EXT2 - help - FIXME: This item needs to be documented +source "platforms/image_ipkg.in" + +source "platforms/image_tgz.in" +source "platforms/image_hd.in" +source "platforms/image_jffs2.in" +source "platforms/image_uimage.in" +source "platforms/image_cpio.in" +source "platforms/image_ext2.in" endmenu |