From patchwork Wed Apr 24 17:08:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 162800 Delivered-To: patches@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp903923jan; Wed, 24 Apr 2019 10:08:48 -0700 (PDT) X-Received: by 2002:a63:6503:: with SMTP id z3mr32319254pgb.113.1556125728337; Wed, 24 Apr 2019 10:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556125728; cv=none; d=google.com; s=arc-20160816; b=BSHLjeG+Uh7t8ubVBzEDkkG8Beed+EVYFPExxVyepo5RZKG9C4+xPbJ/USi9v0Eurt F2mJcGhO0tQ6Oy9B8QksR1NhinFdAkMYgYVq0gXDCqxQZhpwiU+NEd2k2KveruVo5rqw rbic0i9+ww74UucuEVMBDQrls/kVkGA/Zjkek7VudIb8dd9cOUsLZVZIFRipAUFELWLH 1QwgJRApMg9X0vFhL3V/3oBjpOwdWAwaQDhKssDy8uJHnVWBlg9lueND52hW1tUq5ptp wMuAJ2mtOg8hVcPskhlbRswxovXS0Il0kAJHlqsijOZO1gSxtXbZj+bPFykxU0hi4wlH ONlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9+iz4QZevRRvfzFdoUmhGoUHh5WLuHlapt5scL4pmOw=; b=x4e7y/I4qGR7URlDqGe2yfl3w8YdjceznKzeLispe13y9PC3mg6My1iFjZKbA+xNtu Rdf9XOgfmqqUlWI/E/GoVzaTMrruKs7FnHe0bpvEoowvCKBfEsW5bzWv2tez51jm7YpL NYjWtes23/By9P6n1rPQEPc7ENOW//40VuFNqt0FpLfN+ajqWIWafiNYXLvDV0o/4WpX JkMAKlrSxrcYOJ1RyYDVNnP1YMv7jopkTg7rWX76P5r2rxufIAzbNEQc+c1a9U6gXp3f KiuJ5cba/LwxHMhwodcDRhAtK11zRkXWCMDqzHKKFnjOok6YKJ4qfj281F2MNipFYtlS 9j5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qiQEVXc/"; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id f21sor3745137pfa.5.2019.04.24.10.08.48 for (Google Transport Security); Wed, 24 Apr 2019 10:08:48 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qiQEVXc/"; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9+iz4QZevRRvfzFdoUmhGoUHh5WLuHlapt5scL4pmOw=; b=qiQEVXc/IIWj5EPnUcpbIg2Xt17LgxJLF7Ic2O4l/TR4u/53yLL+w4q8T9+/ioFnTV +a4rCye6EFaVtO6Yh08+D3jw8AMkGvpi+COHzoxwAxTY4fNjD/9jIyUeRVDP/yteaijK xRGnQC+48DWBOkUSyTsAY6+6MaOqaSA7ZCZUv4NsQUXsaUQbE00Fj4qAnrD6p/P87LtE Q875N5DZLUu0PGEnNnTS0/S889HH2EtAbjyiiGDPZHbAYdJmcF3IB5KzrViH3lXIidy1 /eDVtbjwnosQhHlxKAjfF2On4rB+8Fg2NDW+2TjEJb/I76WC+H+wZlmbtxNYfeT4HBLd EFEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9+iz4QZevRRvfzFdoUmhGoUHh5WLuHlapt5scL4pmOw=; b=pluDjEVjFDvO1A1FsUOtuDteiq8Ajqm1P1dGro9kxEkT2KSr7KhWTfvg7PsQx1G6Wb 60ULjqDJYmkuc0ccJch+8T4MALTRif56dX2eohLAJELW2vFUMpQULogxodfha2+V5XLd lrPRDYEyFCRv7LKtrf5tjDOZWjm32QKHdbO7Kj69Ksdo9O5prBcdUpd80Wd8Sw/kp7xf KsSO3E3CLJtqGT4oGAMzZvwQ44GhPF+7SKSC9VfFpxvuynGElfjqkxW7sPnNZitvUauB dTZPj5kJf5+hYBXPqyAc/fdUbPlh6OmONh24nJs0LBmbvRb3jAFVAv+pA2Xlc+QSssf5 3n1A== X-Gm-Message-State: APjAAAV1upEVqmadkN3pKu37dp8+EDLi1vG6yqIlORPJ0t7sP5+gb2yC 3PwYKCWb5SaxAO9pe+f77AVVejtl X-Google-Smtp-Source: APXvYqwfJwe0mW0WdFHM57DN2+iaUGNul2Tmeau4PwrtLWc/kKpXw0oDKSPMFZbHf64dHQxmD0lMjQ== X-Received: by 2002:a62:4e86:: with SMTP id c128mr34190550pfb.39.1556125727926; Wed, 24 Apr 2019 10:08:47 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:4e72:b9ff:fe99:466a]) by smtp.gmail.com with ESMTPSA id e4sm4425073pfn.185.2019.04.24.10.08.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Apr 2019 10:08:46 -0700 (PDT) From: John Stultz To: dri-devel Cc: John Stultz , Emil Velikov , Sean Paul , Alistair Strachan , Marissa Wall Subject: [PATCH 2/6 v2] libdrm: Android.mk: Add minimal Android platform check Date: Wed, 24 Apr 2019 10:08:37 -0700 Message-Id: <1556125721-32145-3-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556125721-32145-1-git-send-email-john.stultz@linaro.org> References: <1556125721-32145-1-git-send-email-john.stultz@linaro.org> Add a check to error out on Android version K(4.4) or lower. This is due to dependency added in a previous commit on mmap64, which was introduced with Android L. Cc: Emil Velikov Cc: Sean Paul Cc: Alistair Strachan Cc: Marissa Wall Suggested-by: Emil Velikov Signed-off-by: John Stultz --- NOTE: This change was suggested by Emil, and I've implemented it as suggested, but due to the fact that the Android.mk files are no longer usable with AOSP/master, I'm not able to test this change. Help in validating would be appreciated. --- Android.mk | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.4 diff --git a/Android.mk b/Android.mk index 1b77c53..0ab6f0f 100644 --- a/Android.mk +++ b/Android.mk @@ -21,6 +21,11 @@ # IN THE SOFTWARE. # +LIBDRM_ANDROID_MAJOR_VERSION := $(word 1, $(subst ., , $(PLATFORM_VERSION))) +ifneq ($(filter 2 4, $(LIBDRM_ANDROID_MAJOR_VERSION)),) +$(error "Android 4.4 and earlier not supported") +endif + LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk LOCAL_PATH := $(call my-dir)