]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: sei510/sei610: don't use hard-coded gpt uuids
authorMattijs Korpershoek <mkorpershoek@baylibre.com>
Thu, 5 Aug 2021 15:17:27 +0000 (17:17 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 10 Aug 2021 08:43:54 +0000 (10:43 +0200)
doc/README.gpt states:

> The fields 'uuid' and 'uuid_disk' are optional if CONFIG_RANDOM_UUID is
> enabled. A random uuid will be used if omitted or they point to an empty/
> non-existent environment variable. The environment variable will be
> set to the generated UUID.  The 'gpt guid' command reads the current
> value of the uuid_disk from the GPT.

Since we have CONFIG_RANDOM_UUID=y, remove the hard-coded uuids
and use meaningful variable names instead.

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
include/configs/sei510.h
include/configs/sei610.h

index 16a34c717ded0bb2d859751195401bc1238532df..5bf266880317f82f0c62edb5ab9b421dc19c2078 100644 (file)
 #define __CONFIG_H
 
 #define LOGO_UUID "43a3305d-150f-4cc9-bd3b-38fca8693846;"
-#define CACHE_UUID "99207ae6-5207-11e9-999e-6f77a3612069;"
-#define SYSTEM_UUID "99f9b7ac-5207-11e9-8507-c3c037e393f3;"
-#define VENDOR_UUID "9d082802-5207-11e9-954c-cbbce08ba108;"
-#define USERDATA_UUID "9b976e42-5207-11e9-8f16-ff47ac594b22;"
 #define ROOT_UUID "ddb8c3f6-d94d-4394-b633-3134139cc2e0;"
 
 #define PARTS_DEFAULT \
        "uuid_disk=${uuid_gpt_disk};" \
        "name=boot,size=64M,bootable,uuid=${uuid_gpt_boot};" \
        "name=logo,size=2M,uuid=" LOGO_UUID \
-       "name=cache,size=256M,uuid=" CACHE_UUID \
-       "name=system,size=1536M,uuid=" SYSTEM_UUID \
-       "name=vendor,size=256M,uuid=" VENDOR_UUID \
-       "name=userdata,size=5341M,uuid=" USERDATA_UUID \
+       "name=cache,size=256M,uuid=${uuid_gpt_cache};" \
+       "name=system,size=1536M,uuid=${uuid_gpt_system};" \
+       "name=vendor,size=256M,uuid=${uuid_gpt_vendor};" \
+       "name=userdata,size=5341M,uuid={uuid_gpt_userdata};" \
        "name=rootfs,size=-,uuid=" ROOT_UUID
 
 
index 6d13fd143b53b386729ae1675a1c025946c01cb7..baace75a020163424f4d86b433afffd81f80e048 100644 (file)
 #define __CONFIG_H
 
 #define LOGO_UUID "43a3305d-150f-4cc9-bd3b-38fca8693846;"
-#define CACHE_UUID "99207ae6-5207-11e9-999e-6f77a3612069;"
-#define SYSTEM_UUID "99f9b7ac-5207-11e9-8507-c3c037e393f3;"
-#define VENDOR_UUID "9d082802-5207-11e9-954c-cbbce08ba108;"
-#define USERDATA_UUID "9b976e42-5207-11e9-8f16-ff47ac594b22;"
 #define ROOT_UUID "ddb8c3f6-d94d-4394-b633-3134139cc2e0;"
 
 #define PARTS_DEFAULT \
        "uuid_disk=${uuid_gpt_disk};" \
        "name=boot,size=64M,bootable,uuid=${uuid_gpt_boot};" \
        "name=logo,size=2M,uuid=" LOGO_UUID \
-       "name=cache,size=256M,uuid=" CACHE_UUID \
-       "name=system,size=1536M,uuid=" SYSTEM_UUID \
-       "name=vendor,size=256M,uuid=" VENDOR_UUID \
-       "name=userdata,size=12795M,uuid=" USERDATA_UUID \
+       "name=cache,size=256M,uuid=${uuid_gpt_cache};" \
+       "name=system,size=1536M,uuid=${uuid_gpt_system};" \
+       "name=vendor,size=256M,uuid=${uuid_gpt_vendor};" \
+       "name=userdata,size=12795M,uuid=${uuid_gpt_userdata};" \
        "name=rootfs,size=-,uuid=" ROOT_UUID
 
 #include <configs/meson64_android.h>