)]}'
{
  "commit": "69d09ba2898d4457acd5fe53a43beb927706c905",
  "tree": "116c280707ce77fda950a18f12b5254fa785f9d7",
  "parents": [
    "c24846407041eae3617e5480f62fcdad867fb0a2"
  ],
  "author": {
    "name": "Ivan V",
    "email": "root@pcm720.me",
    "time": "Thu May 27 01:04:38 2021 +0300"
  },
  "committer": {
    "name": "Nico Huber",
    "email": "nico.h@gmx.de",
    "time": "Thu Jan 05 16:15:22 2023 +0000"
  },
  "message": "platform: Fix endianness detection for Apple Silicon Macs\n\nBuilding flashrom on Apple Silicon Macs fails with\n\"Unable to determine endianness\" error. It seems that current\nendianness detection fails on macOS due to a combination of\nthree issues:\n1. On macOS, neither GCC nor Clang have __ARMEL__ macros used\nby architecture-specific detection;\n2. Generic detection fails because Apple uses LITTLE_ENDIAN,\nBIG_ENDIAN and BYTE_ORDER macros instead of __BYTE_ORDER and\n__LITTLE_ENDIAN;\n3. In platform.h, __LITTLE_ENDIAN__ and __BIG_ENDIAN__ macros\nare checked only for PowerPC architecture.\n\nThis error can be fixed by appending __LITTLE_ENDIAN__ and\n__BIG_ENDIAN__ to conditions in IS_ARM branch. I\u0027ve considered\nmultiple approaches, but this one seems the cleanest to me.\n\nSigned-off-by: Ivan V \u003croot@pcm720.me\u003e\nChange-Id: Ifdb1523ee2c7023e657cfd7b823b091d5deef513\nOriginal-Reviewed-on: https://review.coreboot.org/c/flashrom/+/54964\nOriginal-Reviewed-by: Angel Pons \u003cth3fanbus@gmail.com\u003e\nOriginal-Reviewed-by: Nico Huber \u003cnico.h@gmx.de\u003e\nReviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71364\nReviewed-by: Nico Huber \u003cnico.h@gmx.de\u003e\nReviewed-by: Angel Pons \u003cth3fanbus@gmail.com\u003e\nTested-by: build bot (Jenkins) \u003cno-reply@coreboot.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "751957cae4c2bdd9e47270f83062cd0b6aa96e8f",
      "old_mode": 33188,
      "old_path": "platform.h",
      "new_id": "04f1ab1b911f7af3db5a75d436a12243e41f183c",
      "new_mode": 33188,
      "new_path": "platform.h"
    }
  ]
}
