From fd06f809dbeccaf4318b587dbec69a56636e054b Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 17 Jan 2018 05:08:01 +0000 Subject: Create vendor-sys/libfdt from libfdt in vendor/dtc There are no plans at the moment to continue updating GPL dtc in the tree as BSDL dtc is slowly replacing it. We use libfdt in the kernel and loaders, so fork off the libfdt bits from vendor/dtc into vendor-sys/libfdt rather than continuing to update vendor/dtc when we have no intention of updating anything in userland as a result of these imports. This also leaves us with a vendor branch whose content has a consistent license- the entirety of libfdt is dual license, GPL/BSD, although that was not a primary concern. --- tests/boot-cpuid.c | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 tests/boot-cpuid.c (limited to 'tests/boot-cpuid.c') diff --git a/tests/boot-cpuid.c b/tests/boot-cpuid.c deleted file mode 100644 index ca39f4b692948..0000000000000 --- a/tests/boot-cpuid.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2008 David Gibson, IBM Corporation. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 2.1 of - * the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include -#include -#include -#include - -#include - -#include "tests.h" -#include "testdata.h" - -int main(int argc, char *argv[]) -{ - void *fdt; - uint32_t cpuid; - - test_init(argc, argv); - - if (argc != 3) - CONFIG("Usage: %s ", argv[0]); - - fdt = load_blob(argv[1]); - cpuid = strtoul(argv[2], NULL, 0); - - if (fdt_boot_cpuid_phys(fdt) != cpuid) - FAIL("Incorrect boot_cpuid_phys (0x%x instead of 0x%x)", - fdt_boot_cpuid_phys(fdt), cpuid); - - PASS(); -} -- cgit v1.3