Use BB endianness macro.
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -158,8 +158,7 @@ int add_simple_option(uint8_t *optionptr, uint8_t code, uint32_t data) | |
| option[OPT_CODE] = code; | |
| len = option_lengths[dh->flags & TYPE_MASK]; | |
| option[OPT_LEN] = len; | |
| - | if (__BYTE_ORDER == __BIG_ENDIAN) |
| - | data <<= 8 * (4 - len); |
| + | if (BB_BIG_ENDIAN) data <<= 8 * (4 - len); |
| /* This memcpy is for broken processors which can't | |
| * handle a simple unaligned 32-bit assignment */ | |
| memcpy(&option[OPT_DATA], &data, 4); | |