u-boot-brain/tools/binman/test
Simon Glass 3ab9598df7 binman: Rename 'position' to 'offset'
After some thought, I believe there is an unfortunate naming flaw in
binman. Entries have a position and size, but now that we support
hierarchical sections it is unclear whether a position should be an
absolute position within the image, or a relative position within its
parent section.

At present 'position' actually means the relative position. This indicates
a need for an 'image position' for code that wants to find the location of
an entry without having to do calculations back through parents to
discover this image position.

A better name for the current 'position' or 'pos' is 'offset'. It is not
always an absolute position, but it is always an offset from its parent
offset.

It is unfortunate to rename this concept now, 18 months after binman was
introduced. However I believe it is the right thing to do. The impact is
mostly limited to binman itself and a few changes to in-tree users to
binman:

   tegra
   sunxi
   x86

The change makes old binman definitions (e.g. downstream or out-of-tree)
incompatible if they use the 'pos = <...>' property. Later work will
adjust binman to generate an error when it is used.

Signed-off-by: Simon Glass <sjg@chromium.org>
2018-08-01 16:30:06 -06:00
..
01_invalid.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
02_missing_node.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
03_empty.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
04_invalid_entry.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
05_simple.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
06_dual_image.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
07_bad_align.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
08_pack.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
09_pack_extra.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
10_pack_align_power2.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
11_pack_align_size_power2.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
12_pack_inv_align.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
13_pack_inv_size_align.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
14_pack_overlap.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
15_pack_overflow.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
16_pack_image_overflow.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
17_pack_image_size.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
18_pack_image_align.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
19_pack_inv_image_align.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
20_pack_inv_image_align_power2.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
21_image_pad.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
22_image_name.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
23_blob.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
24_sorted.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
25_pack_zero_size.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
26_pack_u_boot_dtb.dts binman: Add basic entry types for U-Boot 2016-12-20 08:09:55 +13:00
27_pack_4gb_no_size.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
28_pack_4gb_outside.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
29_x86-rom.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
30_x86-rom-me-no-desc.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
31_x86-rom-me.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
32_intel-vga.dts tools: binman: Add missing filenames for various x86 rom tests 2017-04-10 10:02:03 +08:00
33_x86-start16.dts binman: Add support for building x86 ROMs 2016-12-20 08:09:55 +13:00
34_x86_ucode.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
35_x86_single_ucode.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
36_u_boot_img.dts binman: Add support for u-boot.img as an input binary 2016-12-20 08:09:55 +13:00
37_x86_no_ucode.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
38_x86_ucode_missing_node.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
39_x86_ucode_missing_node2.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
40_x86_ucode_not_in_image.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
41_unknown_pos_size.dts binman: Make the operation of Entry__testing explicit 2018-07-09 09:11:00 -06:00
42_intel-fsp.dts tools: binman: Add missing filenames for various x86 rom tests 2017-04-10 10:02:03 +08:00
43_intel-cmc.dts tools: binman: Add missing filenames for various x86 rom tests 2017-04-10 10:02:03 +08:00
44_x86_optional_ucode.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
45_prop_test.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
46_intel-vbt.dts tools: binman: Add a new entry type for Intel VBT 2017-09-16 14:57:44 +08:00
47_spl_bss_pad.dts binman: Add test for u-boot-spl-bss-pad 2017-11-22 18:05:38 -07:00
48_x86-start16-spl.dts binman: Add a test for x86-start16-spl 2017-11-22 18:05:38 -07:00
49_x86_ucode_spl.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
50_intel_mrc.dts binman: Add add test for using an Intel MRC binary 2017-11-22 18:05:38 -07:00
51_u_boot_spl_dtb.dts binman: Add support for including spl/u-boot-spl.dtb 2017-12-12 19:53:45 -07:00
52_u_boot_spl_nodtb.dts binman: Add support for including spl/u-boot-spl-nodtb.bin 2017-12-12 19:53:45 -07:00
53_symbols.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
54_unit_address.dts binman: Allow unit addresses for binaries 2018-06-07 11:25:07 -08:00
55_sections.dts binman: Add support for sections 2018-06-07 11:25:08 -08:00
56_name_prefix.dts binman: Add support for adding a name prefix to entries 2018-06-07 11:25:08 -08:00
57_unknown_contents.dts binman: Correct operation of ObtainContents() 2018-07-09 09:11:00 -06:00
58_x86_ucode_spl_needs_retry.dts binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
59_change_size.dts binman: Tidy up setting of entry contents 2018-07-09 09:11:00 -06:00
60_fdt_update.dts binman: Support updating the device tree with calc'd info 2018-07-09 09:11:00 -06:00
61_fdt_update_bad.dts binman: Support updating the device tree with calc'd info 2018-07-09 09:11:00 -06:00
bss_data binman: Add test for u-boot-spl-bss-pad 2017-11-22 18:05:38 -07:00
bss_data.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bss_data.lds SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
descriptor.bin binman: Add support for building x86 ROMs 2016-12-20 08:09:55 +13:00
Makefile binman: Add tests binaries with binman symbols 2017-12-12 19:53:45 -07:00
u_boot_binman_syms binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
u_boot_binman_syms_bad binman: Add tests binaries with binman symbols 2017-12-12 19:53:45 -07:00
u_boot_binman_syms_bad.c binman: Add tests binaries with binman symbols 2017-12-12 19:53:45 -07:00
u_boot_binman_syms_bad.lds SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u_boot_binman_syms_size binman: Add tests binaries with binman symbols 2017-12-12 19:53:45 -07:00
u_boot_binman_syms_size.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u_boot_binman_syms.c binman: Rename 'position' to 'offset' 2018-08-01 16:30:06 -06:00
u_boot_binman_syms.lds SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u_boot_no_ucode_ptr binman: Add support for building x86 ROMs with SPL 2016-12-20 08:09:55 +13:00
u_boot_no_ucode_ptr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u_boot_ucode_ptr binman: Add support for building x86 ROMs 2016-12-20 08:09:55 +13:00
u_boot_ucode_ptr.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u_boot_ucode_ptr.lds SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00