mirror of
https://github.com/dgibson/dtc.git
synced 2026-07-10 13:29:48 -04:00
Switch the build system to use treegen instead of trees.S + dumptrees for generating the test DTB files. treegen produces byte-identical output without requiring a GNU assembler. Remove the old tree.S, dumptrees.c and associated pieces. This also removes the need for the ASM_CONST_LL macro and separated values for the high and low halves of 64-bit values: those only existed so the same constants could be embedded in both C and assembly. Remove those from testdata.h, and the copies in pylibfdt_tests.py. Assisted-by: Claude:claude-opus-4-6 Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
31 lines
864 B
C
31 lines
864 B
C
#define TEST_ADDR_1 0xdeadbeef00000000ULL
|
|
#define TEST_SIZE_1 0x0000000000100000ULL
|
|
#define TEST_ADDR_2 123456789ULL
|
|
#define TEST_SIZE_2 010000ULL
|
|
|
|
#define TEST_VALUE_1 0xdeadbeef
|
|
#define TEST_VALUE_2 123456789
|
|
|
|
#define TEST_VALUE64_1 0xdeadbeef01abcdefULL
|
|
|
|
#define PHANDLE_1 0x2000
|
|
#define PHANDLE_2 0x2001
|
|
|
|
#define TEST_STRING_1 "hello world"
|
|
#define TEST_STRING_2 "nastystring: \a\b\t\n\v\f\r\\\""
|
|
#define TEST_STRING_3 "\xde\xad\xbe\xef"
|
|
|
|
#define TEST_STRING_4_PARTIAL "foobar"
|
|
#define TEST_STRING_4_RESULT "testfoobar"
|
|
|
|
#define TEST_CHAR1 '\r'
|
|
#define TEST_CHAR2 'b'
|
|
#define TEST_CHAR3 '\0'
|
|
#define TEST_CHAR4 '\''
|
|
#define TEST_CHAR5 '\xff'
|
|
|
|
#define TEST_MEMREGION_ADDR 0x12345678
|
|
#define TEST_MEMREGION_ADDR_HI 0x8765432100000000
|
|
#define TEST_MEMREGION_SIZE 0x9abcdef0
|
|
#define TEST_MEMREGION_SIZE_HI 0x0fedcba900000000
|
|
#define TEST_MEMREGION_SIZE_INC 0x1000
|