diff options
-rw-r--r-- | TODO | 7 | ||||
-rw-r--r-- | tools/adk/pt.c | 17 |
2 files changed, 4 insertions, 20 deletions
@@ -1,13 +1,10 @@ -- adkinstall with NTP and hwclock support - relocatable gcc -- quiet option for the kernel as menu option +- adkinstall with NTP and hwclock support +- newtarget simplify and make target like newpackage - PKG_CONFLICTS for python/python2, is this possible with Kconfig? - mirror only option, no internet access -- fix python build, use mk/python.mk for python modules... - vim tabbing for split command - terminal issue - fix install.sh for MacOS X host, use pbr+core.img from grub2-bin -- rmmodall script -- newtarget simplify and make target like newpackage - check alsa on foxg20 target - add mkimage to tools build - fix ARM OABI support diff --git a/tools/adk/pt.c b/tools/adk/pt.c index e98550b31..6f2e7ce25 100644 --- a/tools/adk/pt.c +++ b/tools/adk/pt.c @@ -42,19 +42,6 @@ #define BLKGETSIZE DKIOCGETBLOCKCOUNT #endif -#define bswap16(x) ( \ - ((((x) )&(unsigned int)0xff)<< 8) \ - |((((x)>> 8)&(unsigned int)0xff) ) \ -) - -#if __BYTE_ORDER == __BIG_ENDIAN -#define cpu_to_le16(x) bswap16(x) -#elif __BYTE_ORDER == __LITTLE_ENDIAN -#define cpu_to_le16(x) (x) -#else -#error unknown endianness! -#endif - /* Partition table entry */ struct pte { unsigned char active; @@ -166,9 +153,9 @@ static int gen_ptable(int nr) } pte[i].active = ((i + 1) == active) ? 0x80 : 0; pte[i].type = parts[i].type; - pte[i].start = cpu_to_le16(start = sect + sectors); + pte[i].start = start = sect + sectors; sect = round_to_cyl(start + parts[i].size * 2); - pte[i].length = cpu_to_le16(len = sect - start); + pte[i].length = len = sect - start; to_chs(start, pte[i].chs_start); to_chs(start + len - 1, pte[i].chs_end); if (verbose) |